about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2016-01-20 18:52:34 -0800
committerKartik K. Agaram <vc@akkartik.com>2016-01-20 20:19:34 -0800
commit2186422cded068a90ad4f6589e3307f74e82fcaf (patch)
tree57f5adb34093a98e455b896efe473eb980a413ba
parent1102f7d7852603a1f6fc983d7027c600161428b4 (diff)
downloadmu-2186422cded068a90ad4f6589e3307f74e82fcaf.tar.gz
2579
Separate core mu tests from those loaded from the commandline.
-rw-r--r--020run.cc1
-rw-r--r--050scenario.cc8
2 files changed, 9 insertions, 0 deletions
diff --git a/020run.cc b/020run.cc
index 587e9f88..5ec96e67 100644
--- a/020run.cc
+++ b/020run.cc
@@ -139,6 +139,7 @@ transform_all();
 
 //: Step 2: load any .mu files provided at the commandline
 :(before "End Commandline Parsing")
+// Check For .mu Files
 if (argc > 1) {
   // skip argv[0]
   argv++;
diff --git a/050scenario.cc b/050scenario.cc
index 0680266e..768c2f7c 100644
--- a/050scenario.cc
+++ b/050scenario.cc
@@ -106,11 +106,19 @@ scenario foo [
 //:: Run scenarios when we run 'mu test'.
 //: Treat the text of the scenario as a regular series of instructions.
 
+:(before "End Globals")
+long long int Num_core_mu_tests = 0;
+:(after "Check For .mu Files")
+Num_core_mu_tests = SIZE(Scenarios);
 :(before "End Tests")
 time_t mu_time; time(&mu_time);
 cerr << "\nMu tests: " << ctime(&mu_time);
 for (long long int i = 0; i < SIZE(Scenarios); ++i) {
 //?   cerr << i << ": " << Scenarios.at(i).name << '\n';
+  if (i == Num_core_mu_tests) {
+    time(&t);
+    cerr << "\nApp tests: " << ctime(&t);
+  }
   run_mu_scenario(Scenarios.at(i));
   if (Passed) cerr << ".";
 }