17 TOTAL=`grep TESTS $NAME | sed 's/.*TESTS//'`
20 # Each test may have multiple variants.
22 for NUMBER in `echo $TOTAL`
25 BASE=`echo $NAME | sed 's,.*/,,'`
28 # Add the name of the test, and the variant to the request
30 echo "Test-Name = \"$BASE\"," >> .request
31 echo 'Test-Number = ' $NUMBER >> .request
33 mv .request .cache/$BASE:$NUMBER
37 echo "Running tests..."
39 (cd .cache;ls -1 > ../.foo)
43 echo "-f .cache/$x" >> .bar
46 ../main/radclient `cat .bar` -xFd . 127.0.0.1:$PORT auth testing123 > radclient.log 2>&1
50 RESULT=`egrep ^\\.cache/$x radclient.log | sed 's/.* //'`
51 if [ "$RESULT" = "2" ]; then
62 rm -f radiusd.log radclient.log
63 echo "All tests succeeded"
65 echo "See radclient.log for more details"