From 162aff45958668ad9cf940c574f91d1d5bde22d1 Mon Sep 17 00:00:00 2001 From: dzaima Date: Sun, 10 Jul 2022 02:13:14 +0300 Subject: [PATCH] another moreCfgs.sh test, print message if not given path argument --- test/README.md | 2 +- test/moreCfgs.sh | 7 ++++++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/test/README.md b/test/README.md index 38f5fbab..c8b2af0e 100644 --- a/test/README.md +++ b/test/README.md @@ -5,7 +5,7 @@ Must be run from the projects root directory. ``` C test/mainCfgs.sh path/to/mlochbaum/BQN // run the test suite for a couple primary configurations test/x86Cfgs.sh path/to/mlochbaum/BQN // run the test suite for x86-64-specific configurations, including singeli; 32-bit build is "supposed" to fail one test involving ⋆⁼ -test/moreCfgs.sh path/to/mlochbaum/BQN // run "2+2" in a bunch of configurations +test/moreCfgs.sh path/to/mlochbaum/BQN // run "2+2" in a bunch of configurations; requires dzaima/BQN to be accessible as dbqn ./BQN test/cmp.bqn // fuzz-test scalar comparison functions =≠<≤>≥ ./BQN test/equal.bqn // fuzz-test 𝕨≡𝕩 ./BQN test/copy.bqn // fuzz-test creating new arrays with elements copied from another diff --git a/test/moreCfgs.sh b/test/moreCfgs.sh index 5d8e1c48..41a60261 100755 --- a/test/moreCfgs.sh +++ b/test/moreCfgs.sh @@ -1,4 +1,8 @@ #!/usr/bin/env bash +if [ "$#" -ne 1 ]; then + echo "Usage: $0 path/to/mlochbaum/BQN" + exit +fi make && ./BQN -p 2+2 || exit make single-debug && ./BQN -p 2+2 || exit make heapverify && ./BQN -p 2+2 || exit @@ -19,7 +23,6 @@ make f='-DVMPOS=0' c && ./BQN -p 2+2 || exit make f='-DDONT_FREE' c && ./BQN -p 2+2 || exit make f='-DOBJ_COUNTER' c && ./BQN -p 2+2 || exit make f='-DNO_RT' c || exit -test/precompiled.bqn "$1" "$PATH" '2+2' || exit make f='-DNO_RT -DPRECOMP' c && ./BQN || exit make f='-DLOG_GC' c && ./BQN -p 2+2 || exit make f='-DWRITE_ASM' c && ./BQN -p 2+2 || exit @@ -27,3 +30,5 @@ make f='-DUSE_PERF' c && ./BQN -p 2+2 || exit make f='-DUSZ_64' c && ./BQN -p 2+2 || exit make f='-DREPL_INTERRUPT=0' c && ./BQN -p 2+2 || exit make f='-DREPL_INTERRUPT=1' c && ./BQN -p 2+2 || exit +make FFI=0 c && ./BQN -p 2+2 || exit +dbqn test/precompiled.bqn "$1" "$PATH" '2+2' || exit