about summary refs log tree commit diff stats
path: root/build2
diff options
context:
space:
mode:
authorKartik Agaram <vc@akkartik.com>2018-06-06 09:02:40 -0700
committerKartik Agaram <vc@akkartik.com>2018-06-06 09:27:44 -0700
commit53172ce13ab2add6c0000ee11c32e874df67b86e (patch)
tree961b38bdef770a324f8a35ceed1f0f183f8f5446 /build2
parent8f97725d0088d86ae157006234d1d0009b1dbf4c (diff)
downloadmu-53172ce13ab2add6c0000ee11c32e874df67b86e.tar.gz
4253 - support running just a single C test
We've had this ability for Mu scenarios forever.
Diffstat (limited to 'build2')
-rwxr-xr-xbuild21
1 files changed, 1 insertions, 0 deletions
diff --git a/build2 b/build2
index 2d4703df..80c9c820 100755
--- a/build2
+++ b/build2
@@ -125,6 +125,7 @@ mkdir -p .build
 grep -h "^[^[:space:]#].*) {$" mu.cc  |grep -v ":.*("  |sed 's/ {.*/;/'  |update .build/function_list
 # auto-generate list of tests to run
 grep -h "^\s*void test_" mu.cc  |sed 's/^\s*void \(.*\)() {.*/\1,/'  |update .build/test_list
+grep -h "^\s*void test_" mu.cc  |sed 's/^\s*void \(.*\)() {.*/"\1",/'  |update .build/test_name_list
 mkdir -p .build/termbox
 update_cp termbox/termbox.h .build/termbox