From f5b2fa04f0513029037649c05a06543d504dfb5f Mon Sep 17 00:00:00 2001 From: jaortega Date: Sat, 26 Jan 2008 18:13:53 +0000 Subject: [PATCH] 'test' make target running all tests added --- Makefile.in | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Makefile.in b/Makefile.in index 47e9962..3deac84 100644 --- a/Makefile.in +++ b/Makefile.in @@ -169,6 +169,13 @@ CONFIG_FILES = scheme/interfaces.scm scheme/low-packages.scm \ # default target. enough: $(VM) $(IMAGE) go scsh $(LIBSCSH) $(LIBSCSHVM) +# Run unit tests +test: enough + @echo "Running test suite..." + @(($(srcdir)/go -lm $(srcdir)/scsh/test/test-packages.scm \ + -o test-all -c "(test-all)" | grep -v 'OK$$') \ + || (echo "All tests passed")) + # -------------------- # External code to include in the VM # After changing any of these you should delete `scheme48vm' and remake it.