Created
July 2, 2014 13:29
-
-
Save joyeecheung/5572821279f267ba2212 to your computer and use it in GitHub Desktop.
Run the tests!
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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