Add an arg to test.sh, for the style number

Now you can do `./test/test.sh 18` or `./test.sh 18`.
This commit is contained in:
Chad Whitacre
2013-09-25 20:14:03 -04:00
parent 19f91cd6a2
commit 7f28c7e434

View File

@@ -10,8 +10,15 @@ cd $(dirname $0)
failures=0
total=0
mydir=$(pwd)
if [ -z "$1" ]; then
styles_to_test=$(echo ../[0-9][0-9]-*)
else
styles_to_test=../$1-*
fi
files=$(echo *.txt)
for dir in ../[0-9][0-9]-* ; do
for dir in $styles_to_test ; do
cd $dir
for file in $files ; do
for exe in * ; do