diff options
author | Kartik K. Agaram <vc@akkartik.com> | 2015-04-22 11:49:24 -0700 |
---|---|---|
committer | Kartik K. Agaram <vc@akkartik.com> | 2015-04-22 11:49:24 -0700 |
commit | ccd792dace1439b60882fafd1d1bd4b06c405d9e (patch) | |
tree | e1c5b825eab5a0173bf57d114eeeb2c5fb26a6de /cpp/020run | |
parent | 3c6784a87bb362a7a2f32d617c5950fec23460cd (diff) | |
download | mu-ccd792dace1439b60882fafd1d1bd4b06c405d9e.tar.gz |
1126 - 'mu test x.mu' runs just scenarios in x.mu
Required still more tweaking of Recipe namespaces. Mindlessly inserting setup() took a couple of hours to debug because the test function and the function it was testing ended up getting the same recipe number, with the inevitable infinite loop :/
Diffstat (limited to 'cpp/020run')
-rw-r--r-- | cpp/020run | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/cpp/020run b/cpp/020run index 164bc5ac..0ce86d7a 100644 --- a/cpp/020run +++ b/cpp/020run @@ -104,6 +104,7 @@ if (argc > 1) { //? Trace_stream->dump_layer = "all"; //? 2 transform_all(); recipe_number r = Recipe_number[string("main")]; +//? Trace_stream->dump_layer = "all"; //? 1 if (r) run(r); dump_memory(); } @@ -119,14 +120,14 @@ void load(string filename) { add_recipes(fin); transform_all(); fin.close(); + // freeze everything so it doesn't get cleared by tests + recently_added_recipes.clear(); + recently_added_types.clear(); } //:: On startup, load everything in core.mu :(before "End Load Recipes") load("core.mu"); -// freeze everything so it doesn't get cleared by tests -recently_added_recipes.clear(); -recently_added_types.clear(); :(code) // helper for tests |