Put all test in their own directory; Add a script to run all tests

This commit is contained in:
Peter Wilmott
2015-07-22 19:06:58 +01:00
parent 222b630588
commit 39ebf616c4
3 changed files with 14 additions and 2 deletions
Executable
+12
View File
@@ -0,0 +1,12 @@
#!/usr/bin/env bash
exit_code=0
for t in test/test_*; do
bash "$t"
if [[ $? == 0 ]]; then
echo "PASSED: $t"
else
echo "FAILED: $t"
exit_code=1
fi
done
exit "$exit_code"
-2
View File
@@ -1,2 +0,0 @@
#!/bin/sh
[ `wc -l < bocker` -le 100 ]
+2
View File
@@ -0,0 +1,2 @@
#!/usr/bin/env bash
[ "$(wc -l < bocker)" -le 100 ]