about summary refs log tree commit diff stats
path: root/002test.cc
diff options
context:
space:
mode:
authorKartik Agaram <vc@akkartik.com>2018-06-06 10:09:34 -0700
committerKartik Agaram <vc@akkartik.com>2018-06-06 10:09:34 -0700
commit17d3003df83fe65e75aef78918eb3da22fe6c4fa (patch)
treef14262110f9c516c8fcd59e95818bb4eea6990b0 /002test.cc
parent53172ce13ab2add6c0000ee11c32e874df67b86e (diff)
downloadmu-17d3003df83fe65e75aef78918eb3da22fe6c4fa.tar.gz
4254
Diffstat (limited to '002test.cc')
-rw-r--r--002test.cc8
1 files changed, 5 insertions, 3 deletions
diff --git a/002test.cc b/002test.cc
index 9b39b311..6a263358 100644
--- a/002test.cc
+++ b/002test.cc
@@ -15,9 +15,6 @@ typedef void (*test_fn)(void);
 const test_fn Tests[] = {
   #include "test_list"  // auto-generated; see 'build*' scripts
 };
-const string Test_names[] = {
-  #include "test_name_list"
-};
 
 :(before "End Globals")
 bool Run_tests = false;
@@ -86,6 +83,11 @@ void run_test(size_t i) {
 }
 
 //: Convenience: run a single test
+:(before "Globals")
+// Names for each element of the 'Tests' global, respectively.
+const string Test_names[] = {
+  #include "test_name_list"  // auto-generated; see 'build*' scripts
+};
 :(after "Test Runs")
 string maybe_single_test_to_run = argv[argc-1];
 if (!starts_with(maybe_single_test_to_run, "test_"))