This repository has been archived on 2022-08-01. You can view files and clone it, but cannot push or open issues or pull requests.
EmerGen-e-tic/dat/runTests.sh

25 lines
414 B
Bash
Raw Normal View History

2017-04-14 07:29:38 +00:00
#!/bin/bash
# Runs Emergen(e)tic with a series of scripts
GEN="30"
CAN="20"
dnc "emergenetic.dn"
for FILE in ./scripts/*; do
FILE=${FILE##*/}
FILE=${FILE%.script}
dana "emergenetic" $FILE $GEN $CAN
for DIR in ./cache/*; do
(cd "$DIR" && rm *.o)
done
cd results/ && rm *.txt && cd ..
tar -jcvf ./archives/$FILE.bz2 cache
rm -R cache
cp -a ./cachebackup ./cache
done
echo 'Complete.' >complete.txt