blob: fcf757c7358e0c61a386633e2d7a3c6d09023ebb (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
#! /bin/bash
dir=testcases/*.c
if [ "$#" != 0 ]; then
dir=$1
fi
for file in $dir
do
gcc $file -o /dev/null &> /dev/null
gcc_ret="$?"
./cibic $file &> /dev/null
if [ $? -ne $gcc_ret ]; then
echo "Failed on $file"
else
echo "ok $file"
fi
done
|