Fossil SCM

Tweak make test to not include the obsolete scary warning, to use the -quiet flag, and to include the empty by default TESTFLAGS macro so that make test can be used as an easy way to invoke the test runner. Changes made in makemake.tcl, which was then run to regenerate main.mk.

rberteig 2016-03-07 20:33 UTC testerCleanup
Commit 9dc8ff235efdb85193fa1158178af46704e973b9
2 files changed +14 -4 +14 -4
+14 -4
--- src/main.mk
+++ src/main.mk
@@ -459,15 +459,25 @@
459459
$(BCC) -o $(OBJDIR)/mkversion $(SRCDIR)/mkversion.c
460460
461461
$(OBJDIR)/codecheck1: $(SRCDIR)/codecheck1.c
462462
$(BCC) -o $(OBJDIR)/codecheck1 $(SRCDIR)/codecheck1.c
463463
464
-# WARNING. DANGER. Running the test suite modifies the repository the
465
-# build is done from, i.e. the checkout belongs to. Do not sync/push
466
-# the repository after running the tests.
464
+# Run the test suite.
465
+# Other flags that can be included in TESTFLAGS are:
466
+#
467
+# -halt Stop testing after the first failed test
468
+# -keep Keep the temporary workspace for debugging
469
+# -prot Write a detailed log of the tests to the file ./prot
470
+# -verbose Include even more details in the output
471
+# -quiet Hide most output from the terminal
472
+# -strict Treat known bugs as failures
473
+#
474
+# TESTFLAGS can also include names of specific test files to limit
475
+# the run to just those test cases.
476
+#
467477
test: $(OBJDIR) $(APPNAME)
468
- $(TCLSH) $(SRCDIR)/../test/tester.tcl $(APPNAME)
478
+ $(TCLSH) $(SRCDIR)/../test/tester.tcl $(APPNAME) -quiet $(TESTFLAGS)
469479
470480
$(OBJDIR)/VERSION.h: $(SRCDIR)/../manifest.uuid $(SRCDIR)/../manifest $(SRCDIR)/../VERSION $(OBJDIR)/mkversion
471481
$(OBJDIR)/mkversion $(SRCDIR)/../manifest.uuid $(SRCDIR)/../manifest $(SRCDIR)/../VERSION >$(OBJDIR)/VERSION.h
472482
473483
# Setup the options used to compile the included SQLite library.
474484
--- src/main.mk
+++ src/main.mk
@@ -459,15 +459,25 @@
459 $(BCC) -o $(OBJDIR)/mkversion $(SRCDIR)/mkversion.c
460
461 $(OBJDIR)/codecheck1: $(SRCDIR)/codecheck1.c
462 $(BCC) -o $(OBJDIR)/codecheck1 $(SRCDIR)/codecheck1.c
463
464 # WARNING. DANGER. Running the test suite modifies the repository the
465 # build is done from, i.e. the checkout belongs to. Do not sync/push
466 # the repository after running the tests.
 
 
 
 
 
 
 
 
 
 
467 test: $(OBJDIR) $(APPNAME)
468 $(TCLSH) $(SRCDIR)/../test/tester.tcl $(APPNAME)
469
470 $(OBJDIR)/VERSION.h: $(SRCDIR)/../manifest.uuid $(SRCDIR)/../manifest $(SRCDIR)/../VERSION $(OBJDIR)/mkversion
471 $(OBJDIR)/mkversion $(SRCDIR)/../manifest.uuid $(SRCDIR)/../manifest $(SRCDIR)/../VERSION >$(OBJDIR)/VERSION.h
472
473 # Setup the options used to compile the included SQLite library.
474
--- src/main.mk
+++ src/main.mk
@@ -459,15 +459,25 @@
459 $(BCC) -o $(OBJDIR)/mkversion $(SRCDIR)/mkversion.c
460
461 $(OBJDIR)/codecheck1: $(SRCDIR)/codecheck1.c
462 $(BCC) -o $(OBJDIR)/codecheck1 $(SRCDIR)/codecheck1.c
463
464 # Run the test suite.
465 # Other flags that can be included in TESTFLAGS are:
466 #
467 # -halt Stop testing after the first failed test
468 # -keep Keep the temporary workspace for debugging
469 # -prot Write a detailed log of the tests to the file ./prot
470 # -verbose Include even more details in the output
471 # -quiet Hide most output from the terminal
472 # -strict Treat known bugs as failures
473 #
474 # TESTFLAGS can also include names of specific test files to limit
475 # the run to just those test cases.
476 #
477 test: $(OBJDIR) $(APPNAME)
478 $(TCLSH) $(SRCDIR)/../test/tester.tcl $(APPNAME) -quiet $(TESTFLAGS)
479
480 $(OBJDIR)/VERSION.h: $(SRCDIR)/../manifest.uuid $(SRCDIR)/../manifest $(SRCDIR)/../VERSION $(OBJDIR)/mkversion
481 $(OBJDIR)/mkversion $(SRCDIR)/../manifest.uuid $(SRCDIR)/../manifest $(SRCDIR)/../VERSION >$(OBJDIR)/VERSION.h
482
483 # Setup the options used to compile the included SQLite library.
484
+14 -4
--- src/makemake.tcl
+++ src/makemake.tcl
@@ -303,15 +303,25 @@
303303
$(BCC) -o $(OBJDIR)/mkversion $(SRCDIR)/mkversion.c
304304
305305
$(OBJDIR)/codecheck1: $(SRCDIR)/codecheck1.c
306306
$(BCC) -o $(OBJDIR)/codecheck1 $(SRCDIR)/codecheck1.c
307307
308
-# WARNING. DANGER. Running the test suite modifies the repository the
309
-# build is done from, i.e. the checkout belongs to. Do not sync/push
310
-# the repository after running the tests.
308
+# Run the test suite.
309
+# Other flags that can be included in TESTFLAGS are:
310
+#
311
+# -halt Stop testing after the first failed test
312
+# -keep Keep the temporary workspace for debugging
313
+# -prot Write a detailed log of the tests to the file ./prot
314
+# -verbose Include even more details in the output
315
+# -quiet Hide most output from the terminal
316
+# -strict Treat known bugs as failures
317
+#
318
+# TESTFLAGS can also include names of specific test files to limit
319
+# the run to just those test cases.
320
+#
311321
test: $(OBJDIR) $(APPNAME)
312
- $(TCLSH) $(SRCDIR)/../test/tester.tcl $(APPNAME)
322
+ $(TCLSH) $(SRCDIR)/../test/tester.tcl $(APPNAME) -quiet $(TESTFLAGS)
313323
314324
$(OBJDIR)/VERSION.h: $(SRCDIR)/../manifest.uuid $(SRCDIR)/../manifest $(SRCDIR)/../VERSION $(OBJDIR)/mkversion
315325
$(OBJDIR)/mkversion $(SRCDIR)/../manifest.uuid \
316326
$(SRCDIR)/../manifest \
317327
$(SRCDIR)/../VERSION >$(OBJDIR)/VERSION.h
318328
--- src/makemake.tcl
+++ src/makemake.tcl
@@ -303,15 +303,25 @@
303 $(BCC) -o $(OBJDIR)/mkversion $(SRCDIR)/mkversion.c
304
305 $(OBJDIR)/codecheck1: $(SRCDIR)/codecheck1.c
306 $(BCC) -o $(OBJDIR)/codecheck1 $(SRCDIR)/codecheck1.c
307
308 # WARNING. DANGER. Running the test suite modifies the repository the
309 # build is done from, i.e. the checkout belongs to. Do not sync/push
310 # the repository after running the tests.
 
 
 
 
 
 
 
 
 
 
311 test: $(OBJDIR) $(APPNAME)
312 $(TCLSH) $(SRCDIR)/../test/tester.tcl $(APPNAME)
313
314 $(OBJDIR)/VERSION.h: $(SRCDIR)/../manifest.uuid $(SRCDIR)/../manifest $(SRCDIR)/../VERSION $(OBJDIR)/mkversion
315 $(OBJDIR)/mkversion $(SRCDIR)/../manifest.uuid \
316 $(SRCDIR)/../manifest \
317 $(SRCDIR)/../VERSION >$(OBJDIR)/VERSION.h
318
--- src/makemake.tcl
+++ src/makemake.tcl
@@ -303,15 +303,25 @@
303 $(BCC) -o $(OBJDIR)/mkversion $(SRCDIR)/mkversion.c
304
305 $(OBJDIR)/codecheck1: $(SRCDIR)/codecheck1.c
306 $(BCC) -o $(OBJDIR)/codecheck1 $(SRCDIR)/codecheck1.c
307
308 # Run the test suite.
309 # Other flags that can be included in TESTFLAGS are:
310 #
311 # -halt Stop testing after the first failed test
312 # -keep Keep the temporary workspace for debugging
313 # -prot Write a detailed log of the tests to the file ./prot
314 # -verbose Include even more details in the output
315 # -quiet Hide most output from the terminal
316 # -strict Treat known bugs as failures
317 #
318 # TESTFLAGS can also include names of specific test files to limit
319 # the run to just those test cases.
320 #
321 test: $(OBJDIR) $(APPNAME)
322 $(TCLSH) $(SRCDIR)/../test/tester.tcl $(APPNAME) -quiet $(TESTFLAGS)
323
324 $(OBJDIR)/VERSION.h: $(SRCDIR)/../manifest.uuid $(SRCDIR)/../manifest $(SRCDIR)/../VERSION $(OBJDIR)/mkversion
325 $(OBJDIR)/mkversion $(SRCDIR)/../manifest.uuid \
326 $(SRCDIR)/../manifest \
327 $(SRCDIR)/../VERSION >$(OBJDIR)/VERSION.h
328

Keyboard Shortcuts

Open search /
Next entry (timeline) j
Previous entry (timeline) k
Open focused entry Enter
Show this help ?
Toggle theme Top nav button