diff options
author | Kartik K. Agaram <vc@akkartik.com> | 2015-05-12 09:20:19 -0700 |
---|---|---|
committer | Kartik K. Agaram <vc@akkartik.com> | 2015-05-12 09:20:19 -0700 |
commit | a70d593dfb8eea87a898a69adeb9689a21199edf (patch) | |
tree | c4eceb0b1a1f8e0335f5865ae628c3ea2a5ad2ae | |
parent | 54e4548dd1695c94f580302b637fe427be995c2a (diff) | |
download | mu-a70d593dfb8eea87a898a69adeb9689a21199edf.tar.gz |
1355
-rw-r--r-- | 050scenario.cc | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/050scenario.cc b/050scenario.cc index 6344c9a1..c5ff2765 100644 --- a/050scenario.cc +++ b/050scenario.cc @@ -93,6 +93,17 @@ for (index_t i = 0; i < Scenarios.size(); ++i) { if (Passed) cerr << "."; } +//: Convenience: run a single named scenario. +:(before "Loading Commandline Files") +if (argc == 2 && Run_tests) { + for (index_t i = 0; i < Scenarios.size(); ++i) { + if (Scenarios.at(i).name == argv[1]) { + run_mu_scenario(Scenarios.at(i)); + return 0; + } + } +} + :(before "End Globals") const scenario* Current_scenario = NULL; :(code) |