diff options
author | dan <[email protected]> | 2023-05-29 15:26:26 -0400 |
---|---|---|
committer | dan <[email protected]> | 2023-05-29 15:26:26 -0400 |
commit | c2138b3ba1d49ff93bdebe9b76aca7c356b46689 (patch) | |
tree | 4c53e16cca23852d8eef427edbffb1c0a43f70d2 /runtests.sh | |
parent | b72c271d8731e1f67fdef29cd64726dfce893fe7 (diff) | |
download | forth-c2138b3ba1d49ff93bdebe9b76aca7c356b46689.tar.gz forth-c2138b3ba1d49ff93bdebe9b76aca7c356b46689.tar.bz2 forth-c2138b3ba1d49ff93bdebe9b76aca7c356b46689.zip |
feat: add jit-compiled optype ; add more new commands
Diffstat (limited to 'runtests.sh')
-rwxr-xr-x | runtests.sh | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/runtests.sh b/runtests.sh index ae77797..b93a45a 100755 --- a/runtests.sh +++ b/runtests.sh @@ -4,6 +4,11 @@ if [ -z "$FORTH_CMD" ] ; then FORTH_CMD="./forth" fi +dir='./tests' +if [ "$#" -gt 0 ] ; then + dir="$1" +fi + n=0 failed=0 @@ -27,7 +32,7 @@ runtest () { fi } -for f in ./tests/*; do +for f in $dir/*.forth; do n="$(expr "$n" + 1)" runtest "$f" done |