ox

The Ox programming language, compiler and tools (WIP)
Log | Files | Refs | README | LICENSE

commit 0bda74cf854d0753b794290063322b35a8d2bb6a
parent b1397ecf38cef8fd371d4fb51b45a273b230b2c0
Author: citbl <citbl@citbl.org>
Date:   Thu, 23 Oct 2025 21:53:11 +1000

make test faster

Diffstat:
Mmakefile | 11+++++------
1 file changed, 5 insertions(+), 6 deletions(-)

diff --git a/makefile b/makefile @@ -42,12 +42,11 @@ check: clean cc ${STD} -g -Wall -Wextra -fsanitize=address -fsanitize=undefined -o ${BIN} ${SRC} ${LIB} test: clean fast - @for f in ex*.ox; do \ - ./${BIN} --quiet $$f > /dev/null 2>err.log || { echo "FAIL: $$f"; cat err.log; exit 1; }; \ - echo $$f; \ - if [ -s err.log ]; then echo "FAIL: $$f"; cat err.log; exit 1; fi; \ - done; \ - rm -f err.log + @printf "%s\n" ex*.ox | xargs -P0 -n20 -I{} bash -c '\ + err=$$(mktemp); \ + ./$(BIN) --quiet "$$1" >/dev/null 2>$$err || { echo "FAIL: $$1"; cat $$err; rm -f $$err; exit 1; }; \ + if [ -s $$err ]; then echo "FAIL: $$1"; cat $$err; rm -f $$err; exit 1; fi; \ + echo "$$1"; rm -f $$err' sh {} test-hmap: clean default MallocNanoZone=0 ./oxc --test-hmap