aboutsummaryrefslogtreecommitdiffstats
path: root/runtests.sh
diff options
context:
space:
mode:
authordan <[email protected]>2023-05-29 15:26:26 -0400
committerdan <[email protected]>2023-05-29 15:26:26 -0400
commitc2138b3ba1d49ff93bdebe9b76aca7c356b46689 (patch)
tree4c53e16cca23852d8eef427edbffb1c0a43f70d2 /runtests.sh
parentb72c271d8731e1f67fdef29cd64726dfce893fe7 (diff)
downloadforth-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-xruntests.sh7
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