From 2186422cded068a90ad4f6589e3307f74e82fcaf Mon Sep 17 00:00:00 2001 From: "Kartik K. Agaram" Date: Wed, 20 Jan 2016 18:52:34 -0800 Subject: 2579 Separate core mu tests from those loaded from the commandline. --- 020run.cc | 1 + 050scenario.cc | 8 ++++++++ 2 files changed, 9 insertions(+) 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 << "."; } -- cgit 1.4.1-2-gfad0