about summary refs log tree commit diff stats
path: root/050scenario.cc
diff options
context:
space:
mode:
Diffstat (limited to '050scenario.cc')
-rw-r--r--050scenario.cc9
1 files changed, 9 insertions, 0 deletions
diff --git a/050scenario.cc b/050scenario.cc
index eec1bd84..28ef58e7 100644
--- a/050scenario.cc
+++ b/050scenario.cc
@@ -119,6 +119,7 @@ Num_core_mu_tests = SIZE(Scenarios);
 Hide_missing_default_space_errors = false;
 time_t mu_time; time(&mu_time);
 cerr << "\nMu tests: " << ctime(&mu_time);
+run_mu_scenarios:
 for (int i = 0; i < SIZE(Scenarios); ++i) {
 //?   cerr << i << ": " << Scenarios.at(i).name << '\n';
   if (i == Num_core_mu_tests) {
@@ -129,6 +130,14 @@ for (int i = 0; i < SIZE(Scenarios); ++i) {
   if (Passed) cerr << ".";
 }
 
+:(after "End Test Run Initialization")
+if (Test_only_app && Num_core_mu_tests < SIZE(Scenarios)) {
+  // we have app tests; skip core mu tests
+  Scenarios.erase(Scenarios.begin(), Scenarios.begin()+Num_core_mu_tests);
+  // skip C tests
+  goto run_mu_scenarios;
+}
+
 //: Convenience: run a single named scenario.
 :(after "Test Runs")
 for (int i = 0; i < SIZE(Scenarios); ++i) {