From c504ca566124d1f097e7fe8a2f9f67c1c59e9ccf Mon Sep 17 00:00:00 2001 From: Kartik Agaram Date: Tue, 14 Jan 2020 01:48:06 -0800 Subject: 5893 --- html/002test.cc.html | 28 +++++++++++++--------------- 1 file changed, 13 insertions(+), 15 deletions(-) (limited to 'html/002test.cc.html') diff --git a/html/002test.cc.html b/html/002test.cc.html index 18215ec6..13e7959d 100644 --- a/html/002test.cc.html +++ b/html/002test.cc.html @@ -61,7 +61,7 @@ if ('onhashchange' in window) {
   1 //: A simple test harness. To create new tests, define functions starting with
   2 //: 'test_'. To run all tests so defined, run:
-  3 //:   $ ./mu test
+  3 //:   $ ./bootstrap test
   4 //:
   5 //: Every layer should include tests, and can reach into previous layers.
   6 //: However, it seems like a good idea never to reach into tests from previous
@@ -101,7 +101,7 @@ if ('onhashchange' in window) {
  40 Passed = true;
  41 
  42 :(before "End Commandline Parsing")
- 43 if (argc > 1 && is_equal(argv[1], "test")) {
+ 43 if (argc > 1 && is_equal(argv[1], "test")) {
  44   Run_tests = true;  --argc;  ++argv;  // shift 'test' out of commandline args
  45 }
  46 
@@ -133,7 +133,7 @@ if ('onhashchange' in window) {
  72 
  73 :(after "End Main")
  74 //: Raise other unrecognized sub-commands as errors.
- 75 //: We couldn't do this until now because we want `./subx test` to always
+ 75 //: We couldn't do this until now because we want `./bootstrap test` to always
  76 //: succeed, no matter how many layers are included in the build.
  77 cerr << "nothing to do\n";
  78 return 1;
@@ -158,18 +158,16 @@ if ('onhashchange' in window) {
  97 };
  98 :(after "Test Runs")
  99 string maybe_single_test_to_run = argv[argc-1];
-100 if (!starts_with(maybe_single_test_to_run, "test_"))
-101   maybe_single_test_to_run.insert(0, "test_");
-102 for (size_t i=0;  i < sizeof(Tests)/sizeof(Tests[0]);  ++i) {
-103   if (Test_names[i] == maybe_single_test_to_run) {
-104     run_test(i);
-105     if (Passed) cerr << ".\n";
-106     return 0;
-107   }
-108 }
-109 
-110 :(before "End Includes")
-111 #include <stdlib.h>
+100 for (size_t i=0;  i < sizeof(Tests)/sizeof(Tests[0]);  ++i) {
+101   if (Test_names[i] == maybe_single_test_to_run) {
+102     run_test(i);
+103     if (Passed) cerr << ".\n";
+104     return 0;
+105   }
+106 }
+107 
+108 :(before "End Includes")
+109 #include <stdlib.h>
 
-- cgit 1.4.1-2-gfad0