Skip to content

Instantly share code, notes, and snippets.

@joyeecheung
Created July 2, 2014 13:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save joyeecheung/5572821279f267ba2212 to your computer and use it in GitHub Desktop.
Save joyeecheung/5572821279f267ba2212 to your computer and use it in GitHub Desktop.
Run the tests!
for z in *.zip; do
d=`basename $z .zip`
mkdir $d && unzip $z -d $d
if [ -d "$d/src" ]; then
cp ../_s1/* $d/src/
if [ -f "$d/src/makefile" ]; then
rm $d/src/makefile
fi
cd $d/src/
make
if [ -f "AGTS1.out" ]; then
timeout 10 ./AGTS1.out
{ basename $(dirname `pwd`); echo "---------------------"; cat report; } >> ../../result.txt
fi
cd ../../
fi
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment