bldc/tests/test_n_times.sh

37 lines
591 B
Bash
Raw Normal View History

#!/bin/bash
echo "BUILDING"
make clean
make
n=$1
Squashed 'lispBM/lispBM/' changes from 6a448aa3..c097f5c6 c097f5c6 cleaning pass and refactoring 5384d522 refactoring application experiment 087ede4e refactor: readability, clearity and in some places - to a small degree - correctness 89575d8b small change to one event test ba6e7fa7 logged change 16ac6bd1 logged change 089468b3 removing make-env. in-env in the interest of keeping core language small f18015f7 Merge branch 'master' of github.com:svenssonjoel/lispbm 5b19dfda simplification and readability refactoring. 8c492889 Update gotchas.md 754221b9 Update gotchas.md a0931bac bump version e49071dc Changed behavior closure application to zero args. Application of a continuation (call-cc) with 0 args still uses the old approach where 0 args is equivalent to application to nil 35f495f3 mini tweak readme fdd01ff1 update README b21a3fa7 Update gotchas.md 92d9f561 update gotchas 0d708de7 bugfix in incremental reader and addition of a gotchas.md file for edge-case behaviors d9a38456 updated lbmref with take and drop 86b1cc1b take, drop, change to make-env returned result ea29f5ec added take and drop as built-in primitives and change to result env for make-env 55a5b1f5 added some tests and a small amount of doc e2d2f745 tweaks bccdee1f make-env and in-env 3a03232a added make-env and in-env for library-encapsulation e5b5ba66 mini tweak dce87812 removed extra ; 190b4d9e mini tweak 6864fa32 fix repl after removal of reading_done callback ea3aba39 removed reading_done_callback and made the nonsense default variants for all remaining callback 427cb37c bugfix read-program, tightening up, cleaning 119d9fd3 refactoring and tightening up 10573404 cleaning and readability 63b750b5 small tweaks d44c8bdc bug fix related to row numbers in error messages while doing incremental read. Now more precise. d0125bd1 refactoring for readability. setjmp/longjmp for escape from deeply nested errors. git-subtree-dir: lispBM/lispBM git-subtree-split: c097f5c66bd539442a48d41a66da1c657af502a1
2023-05-21 23:17:23 -07:00
h=$2
test=$3
result=0
success_count=0
fail_count=0
for ((i=0; i<n; i++));
do
Squashed 'lispBM/lispBM/' changes from 6a448aa3..c097f5c6 c097f5c6 cleaning pass and refactoring 5384d522 refactoring application experiment 087ede4e refactor: readability, clearity and in some places - to a small degree - correctness 89575d8b small change to one event test ba6e7fa7 logged change 16ac6bd1 logged change 089468b3 removing make-env. in-env in the interest of keeping core language small f18015f7 Merge branch 'master' of github.com:svenssonjoel/lispbm 5b19dfda simplification and readability refactoring. 8c492889 Update gotchas.md 754221b9 Update gotchas.md a0931bac bump version e49071dc Changed behavior closure application to zero args. Application of a continuation (call-cc) with 0 args still uses the old approach where 0 args is equivalent to application to nil 35f495f3 mini tweak readme fdd01ff1 update README b21a3fa7 Update gotchas.md 92d9f561 update gotchas 0d708de7 bugfix in incremental reader and addition of a gotchas.md file for edge-case behaviors d9a38456 updated lbmref with take and drop 86b1cc1b take, drop, change to make-env returned result ea29f5ec added take and drop as built-in primitives and change to result env for make-env 55a5b1f5 added some tests and a small amount of doc e2d2f745 tweaks bccdee1f make-env and in-env 3a03232a added make-env and in-env for library-encapsulation e5b5ba66 mini tweak dce87812 removed extra ; 190b4d9e mini tweak 6864fa32 fix repl after removal of reading_done callback ea3aba39 removed reading_done_callback and made the nonsense default variants for all remaining callback 427cb37c bugfix read-program, tightening up, cleaning 119d9fd3 refactoring and tightening up 10573404 cleaning and readability 63b750b5 small tweaks d44c8bdc bug fix related to row numbers in error messages while doing incremental read. Now more precise. d0125bd1 refactoring for readability. setjmp/longjmp for escape from deeply nested errors. git-subtree-dir: lispBM/lispBM git-subtree-split: c097f5c66bd539442a48d41a66da1c657af502a1
2023-05-21 23:17:23 -07:00
./test_lisp_code_cps -i -s -h $h $test
result=$?
echo "------------------------------------------------------------"
echo Test: $i
if [ $result -eq 1 ]
then
success_count=$((success_count+1))
echo SUCCESS
else
fail_count=$((fail_count+1))
echo FAILED
break
fi
echo "------------------------------------------------------------"
done
echo OK: $success_count
echo FAILED: $fail_count