take every program in tests/sex-programs as a test
A program left out of the hand-kept list was never run, and nothing said so; the one module the tests import moves to lib/ instead.
This commit is contained in:
30
Makefile
30
Makefile
@@ -88,35 +88,13 @@ sex-tests: $(wildcard tests/*.scm) $(OBJ)
|
|||||||
sextest: tools/sextest/sextest.scm reader.o utils.o
|
sextest: tools/sextest/sextest.scm reader.o utils.o
|
||||||
$(CHICKEN_C) $(CSC_FLAGS) $< -o $@ -link reader,utils
|
$(CHICKEN_C) $(CSC_FLAGS) $< -o $@ -link reader,utils
|
||||||
|
|
||||||
SEX_TEST_PROGRAMS = c11 \
|
# A program directly in tests/sex-programs is a test; lib/ holds what
|
||||||
closure-signatures \
|
# they import
|
||||||
closures \
|
SEX_TEST_PROGRAMS = $(wildcard tests/sex-programs/*.sex)
|
||||||
comments \
|
|
||||||
compound-literals \
|
|
||||||
encapsulation \
|
|
||||||
feature-flags \
|
|
||||||
features \
|
|
||||||
fixpoint \
|
|
||||||
hello-world \
|
|
||||||
inference \
|
|
||||||
lambdas \
|
|
||||||
lists \
|
|
||||||
operators \
|
|
||||||
ops \
|
|
||||||
precedence \
|
|
||||||
records \
|
|
||||||
serialize \
|
|
||||||
specs \
|
|
||||||
sums \
|
|
||||||
threading \
|
|
||||||
type-shapes \
|
|
||||||
unicode \
|
|
||||||
unnamed-params \
|
|
||||||
wildcards
|
|
||||||
|
|
||||||
check run-tests: sexc sex-tests sextest
|
check run-tests: sexc sex-tests sextest
|
||||||
./sex-tests
|
./sex-tests
|
||||||
./sextest --sexc=./sexc $(SEX_TEST_PROGRAMS:%=./tests/sex-programs/%.sex)
|
./sextest --sexc=./sexc $(SEX_TEST_PROGRAMS)
|
||||||
@$(MAKE) --no-print-directory check-modules
|
@$(MAKE) --no-print-directory check-modules
|
||||||
@$(MAKE) --no-print-directory check-exit-code
|
@$(MAKE) --no-print-directory check-exit-code
|
||||||
|
|
||||||
|
|||||||
@@ -9,7 +9,7 @@
|
|||||||
(include stddef.h)
|
(include stddef.h)
|
||||||
(include stdio.h)
|
(include stdio.h)
|
||||||
|
|
||||||
(import list-macros)
|
(import lib/list-macros)
|
||||||
|
|
||||||
(struct foo
|
(struct foo
|
||||||
((a-field float)
|
((a-field float)
|
||||||
|
|||||||
Reference in New Issue
Block a user