about summary refs log tree commit diff stats
path: root/cpp/050scenario
diff options
context:
space:
mode:
Diffstat (limited to 'cpp/050scenario')
-rw-r--r--cpp/050scenario19
1 files changed, 2 insertions, 17 deletions
diff --git a/cpp/050scenario b/cpp/050scenario
index c863b1b4..9b5b74bb 100644
--- a/cpp/050scenario
+++ b/cpp/050scenario
@@ -183,6 +183,8 @@ void handle_type(const string& lhs, istream& in, scenario& out) {
   raise << "scenario doesn't know how to parse memory expectation on " << lhs << '\n';
 }
 
+//:: Helpers
+
 void slurp_until_matching_bracket(istream& in, ostream& out) {
   int brace_depth = 1;  // just scanned '['
   char c;
@@ -194,23 +196,6 @@ void slurp_until_matching_bracket(istream& in, ostream& out) {
   }
 }
 
-//:: Run tests for loaded mu files (rather than running 'main').
-
-:(before "End Test Runs")
-if (argc > 2 && is_equal(argv[1], "test") && file_exists(argv[2])) {
-  Scenarios.clear();  // ignore core.mu
-  for (int i = 2; i < argc; ++i) {
-    load(argv[i]);
-  }
-  run_mu_tests();
-  cerr << '\n';
-  if (Num_failures > 0)
-    cerr << Num_failures << " failure"
-         << (Num_failures > 1 ? "s" : "")
-         << '\n';
-  return 0;
-}
-
 :(code)
 // for tests
 void parse_scenario(const string& s) {