diff options
Diffstat (limited to 'test_all.sh')
-rwxr-xr-x | test_all.sh | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/test_all.sh b/test_all.sh index cb2aa87..fcf757c 100755 --- a/test_all.sh +++ b/test_all.sh @@ -1,5 +1,9 @@ #! /bin/bash -for file in testcases/*.c +dir=testcases/*.c +if [ "$#" != 0 ]; then + dir=$1 +fi +for file in $dir do gcc $file -o /dev/null &> /dev/null gcc_ret="$?" |