check modules and exit codes with the test egg
Written as shell inside make, a check said only that it failed and left the reason to rerunning it by hand; now each says what it expected.
This commit is contained in:
18
Makefile
18
Makefile
@@ -104,16 +104,11 @@ SEX_TEST_PROGRAMS = c11 \
|
||||
unnamed-params \
|
||||
wildcards
|
||||
|
||||
# Multi-module linking is checked end to end; see tests/modules/Makefile.
|
||||
check-modules: sexc
|
||||
@$(MAKE) --no-print-directory -C ./tests/modules check SEXC=../../sexc
|
||||
|
||||
# The failure paths are checked end to end; see tests/exit-code/Makefile.
|
||||
check-exit-code: sexc
|
||||
@$(MAKE) --no-print-directory -C ./tests/exit-code check SEXC=../../sexc
|
||||
|
||||
check run-tests: sexc sex-tests sextest
|
||||
./sex-tests && ./sextest --sexc=./sexc $(SEX_TEST_PROGRAMS:%=./tests/sex-programs/%.sex) && $(MAKE) check-modules && $(MAKE) check-exit-code
|
||||
./sex-tests
|
||||
./sextest --sexc=./sexc $(SEX_TEST_PROGRAMS:%=./tests/sex-programs/%.sex)
|
||||
cd tests/modules && SEXC=$(CURDIR)/sexc $(CSI) -s check.scm
|
||||
cd tests/exit-code && SEXC=$(CURDIR)/sexc $(CSI) -s check.scm
|
||||
|
||||
install: all installdirs
|
||||
$(INSTALL_PROGRAM) sexc $(DESTDIR)$(bindir)/sexc
|
||||
@@ -135,8 +130,5 @@ clean:
|
||||
rm -f *.import.scm
|
||||
rm -f *.link
|
||||
rm -f sexc sex-tests sextest
|
||||
$(MAKE) -C ./tests/modules clean
|
||||
|
||||
.PHONY: all check run-tests check-modules check-exit-code \
|
||||
install install-strip installdirs uninstall \
|
||||
clean
|
||||
.PHONY: all check run-tests install install-strip installdirs uninstall clean
|
||||
|
||||
Reference in New Issue
Block a user