14 TOTAL=`grep TESTS $NAME | sed 's/.*TESTS//'`
17 # Each test may have multiple variants.
19 for NUMBER in `echo $TOTAL`
22 BASE=`echo $NAME | sed 's,.*/,,'`
25 # Add the name of the test, and the variant to the request
27 echo "Test-Name = \"$BASE\"," >> .request
28 echo 'Test-Number = ' $NUMBER >> .request
30 rm ./radclient.log > /dev/null 2>&1
31 $BIN_PATH/radclient -f .request -xF -D ./ 127.0.0.1:$PORT auth $SECRET 1> ./radclient.log
32 if [ "$?" = "0" ]; then
33 echo "${BASE}_${NUMBER} : Success"
35 echo "${BASE}_${NUMBER} : FAILED"
45 rm -f radiusd.log radclient.log
46 echo "All tests succeeded"
48 echo "See radclient.log for more details"