mirror of
https://github.com/p8952/bocker.git
synced 2025-11-08 16:13:59 +01:00
Put all test in their own directory; Add a script to run all tests
This commit is contained in:
parent
222b630588
commit
39ebf616c4
12
run-tests
Executable file
12
run-tests
Executable 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
test/test_length
Normal file
2
test/test_length
Normal file
@ -0,0 +1,2 @@
|
||||
#!/usr/bin/env bash
|
||||
[ "$(wc -l < bocker)" -le 100 ]
|
||||
Loading…
x
Reference in New Issue
Block a user