17 TOTAL=`grep TESTS $NAME | sed 's/.*TESTS//'`
20 # Each test may have multiple variants.
22 for NUMBER in `echo $TOTAL`
27 # Add the name of the test, and the variant to the request
29 echo "Test-Name = \"$NAME\"," >> .request
30 echo 'Test-Number = ' $NUMBER >> .request
32 mv .request .cache/$NAME:$NUMBER
36 echo "Running tests..."
38 (cd .cache;ls -1 > ../.foo)
42 echo "-f .cache/$x" >> .bar
45 ../main/radclient `cat .bar` -xFd . 127.0.0.1:$PORT auth testing123 > radclient.log 2>&1
49 RESULT=`egrep ^\\.cache/$x radclient.log | sed 's/.* //'`
50 if [ "$RESULT" = "2" ]; then
61 rm -f radiusd.log radclient.log
62 echo "All tests succeeded"
64 echo "See radclient.log for more details"