for test in $testdir/*.c; do
out=$outdir/${test##*/}.out
- printf "Testing $test... > $out ($test.expected) "
+ printf "Testing `basename $test`... "
$glcpp $(test_specific_args $test) < $test > $out 2>&1
total=$((total+1))
if cmp $test.expected $out >/dev/null 2>&1; then
if [ "$do_valgrind" = "yes" ]; then
echo "====== Testing for valgrind cleanliness ======"
for test in $testdir/*.c; do
- printf "Testing $test with valgrind..."
+ printf "Testing `basename $test` with valgrind..."
valgrind --error-exitcode=31 --log-file=$test.valgrind-errors $glcpp $(test_specific_args $test) < $test >/dev/null 2>&1
if [ "$?" = "31" ]; then
echo "ERRORS"