blob: 03ff5d08e09fab8fd84ed0db7b2f460e1ec98755 (
plain) (
tree)
|
|
#! /bin/bash
dir=testcases/*.c
if [ "$#" != 0 ]; then
dir=$1
fi
res=0
for file in $dir
do
gcc $file -o /dev/null &> /dev/null
gcc_ret="$?"
./cibic $file &> /dev/null
ret=$?
if [ $ret -ne $gcc_ret ]; then
echo "Failed on $file"
res=1
else
echo "ok $file: $ret"
fi
done
exit $res
|