ox

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

commit e40c7972195bdd8f1cbf7d81375004092aed71cd
parent e024c6033408b15d36e341c61d4e1a3b2a9faded
Author: citbl <citbl@citbl.org>
Date:   Sun, 16 Nov 2025 15:03:01 +1000

move tests

Diffstat:
Mmakefile | 4++--
Rex-assignment-1.ox -> tests/ex-assignment-1.ox | 0
Rex-binop-simple1.ox -> tests/ex-binop-simple1.ox | 0
Atests/ex-call-args-same-names.ox | 14++++++++++++++
Rex-call-args.ox -> tests/ex-call-args.ox | 0
Rex-call-simple.ox -> tests/ex-call-simple.ox | 0
Rex-cond-adv1.ox -> tests/ex-cond-adv1.ox | 0
Rex-cond-simple1.ox -> tests/ex-cond-simple1.ox | 0
Rex-cond-simple2.ox -> tests/ex-cond-simple2.ox | 0
Rex-decl-no-init.ox -> tests/ex-decl-no-init.ox | 0
Rex-decl-no-init2.ox -> tests/ex-decl-no-init2.ox | 0
Rex-for-advanced1.ox -> tests/ex-for-advanced1.ox | 0
Rex-for-advanced2.ox -> tests/ex-for-advanced2.ox | 0
Rex-for-simple1.ox -> tests/ex-for-simple1.ox | 0
Rex-for-simple2.ox -> tests/ex-for-simple2.ox | 0
Rex-for-simple3.ox -> tests/ex-for-simple3.ox | 0
Rex-subscript-simple.ox -> tests/ex-subscript-simple.ox | 0
Rex1.ox -> tests/ex1.ox | 0
Rex10.ox -> tests/ex10.ox | 0
Rex11.ox -> tests/ex11.ox | 0
Rex12.ox -> tests/ex12.ox | 0
Rex2.ox -> tests/ex2.ox | 0
Rex6.ox -> tests/ex6.ox | 0
Rex8.ox -> tests/ex8.ox | 0
24 files changed, 16 insertions(+), 2 deletions(-)

diff --git a/makefile b/makefile @@ -48,11 +48,11 @@ check: clean JOBS ?= $(shell nproc 2>/dev/null || sysctl -n hw.ncpu 2>/dev/null || echo 16) test: clean fast - +@find . -maxdepth 1 -name 'ex*.ox' -print0 \ + +@find . -maxdepth 3 -name 'ex*.ox' -print0 \ | xargs -0 -r -P$(JOBS) -n1 sh -c 'printf "%s\n" "$$1" 1>&2; exec ./$(BIN) --quiet "$$1" >/dev/null' sh test-slow: clean fast - +@find . -maxdepth 1 -name 'ex*.ox' -print0 \ + +@find . -maxdepth 3 -name 'ex*.ox' -print0 \ | xargs -0 -r -P1 -n1 sh -c 'printf "%s\n" "$$1" 1>&2; exec ./$(BIN) --quiet "$$1" >/dev/null' sh test-hmap: clean default diff --git a/ex-assignment-1.ox b/tests/ex-assignment-1.ox diff --git a/ex-binop-simple1.ox b/tests/ex-binop-simple1.ox diff --git a/tests/ex-call-args-same-names.ox b/tests/ex-call-args-same-names.ox @@ -0,0 +1,14 @@ +void func1(string message) { + print("message was:"); + print(message); +} + +void func2(string message) { + print("another message:"); + print(message); +} + +void main() { + func1("hello"); + func2("there"); +} diff --git a/ex-call-args.ox b/tests/ex-call-args.ox diff --git a/ex-call-simple.ox b/tests/ex-call-simple.ox diff --git a/ex-cond-adv1.ox b/tests/ex-cond-adv1.ox diff --git a/ex-cond-simple1.ox b/tests/ex-cond-simple1.ox diff --git a/ex-cond-simple2.ox b/tests/ex-cond-simple2.ox diff --git a/ex-decl-no-init.ox b/tests/ex-decl-no-init.ox diff --git a/ex-decl-no-init2.ox b/tests/ex-decl-no-init2.ox diff --git a/ex-for-advanced1.ox b/tests/ex-for-advanced1.ox diff --git a/ex-for-advanced2.ox b/tests/ex-for-advanced2.ox diff --git a/ex-for-simple1.ox b/tests/ex-for-simple1.ox diff --git a/ex-for-simple2.ox b/tests/ex-for-simple2.ox diff --git a/ex-for-simple3.ox b/tests/ex-for-simple3.ox diff --git a/ex-subscript-simple.ox b/tests/ex-subscript-simple.ox diff --git a/ex1.ox b/tests/ex1.ox diff --git a/ex10.ox b/tests/ex10.ox diff --git a/ex11.ox b/tests/ex11.ox diff --git a/ex12.ox b/tests/ex12.ox diff --git a/ex2.ox b/tests/ex2.ox diff --git a/ex6.ox b/tests/ex6.ox diff --git a/ex8.ox b/tests/ex8.ox