Script to run all tests added. Prep work on new computer before fixing the remaining major template class bug.

This commit is contained in:
Nathan Braswell
2014-06-02 00:19:44 -07:00
parent ae9e652f1e
commit 9bfbc7cdf6

14
tests/runTests.sh Executable file
View File

@@ -0,0 +1,14 @@
#!/bin/bash
krakenPath="../build/kraken"
testDir=${1:-"../tests"}
ext=${2:-"krak"}
fileList=""
for dir in `find ${testDir} -type f -name "*.${ext}"`; do
filename=$(basename ${dir})
filename="${filename%.*}"
fileList+=\ \.\/$filename
done
${krakenPath} "--test" ${fileList}