Diff
Not logged in

Differences From:

File src/main.mk part of check-in [b4571bb75e] - Fix a makefile dependency to force a rebuild whenever the manifest.uuid changes. by drh on 2007-08-25 19:45:38. [view]

To:

File src/main.mk part of check-in [464a46dad2] - Added a make target to invoke the testsuite, and a make variable for tclsh. Danger. Testsuite modifies the repository the checkout belongs to, and not a copy. Use with caution, clone your development repository and workspace before use. Updated my work list. by aku on 2007-08-26 06:45:02. [view]

@@ -160,8 +160,14 @@
 	$(BCC) -o makeheaders $(SRCDIR)/makeheaders.c
 
 mkindex:	$(SRCDIR)/mkindex.c
 	$(BCC) -o mkindex $(SRCDIR)/mkindex.c
+
+# WARNING. DANGER. Running the testsuite modifies the repository the
+# build is done from, i.e. the checkout belongs to. Do not sync/push
+# the repository after running the tests.
+test:	$(APPNAME)
+	$(TCLSH) test/tester.tcl $(APPNAME)
 
 VERSION.h:	$(SRCDIR)/../manifest.uuid
 	awk '{ printf "#define MANIFEST_UUID \"%s\"\n", $$1}'  $(SRCDIR)/../manifest.uuid >VERSION.h