about summary refs log tree commit diff stats
path: root/build1
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 /build1
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 'build1')
-rwxr-xr-xbuild11
1 files changed, 1 insertions, 0 deletions
diff --git a/build1 b/build1
index f138fa15..dbb58cfd 100755
--- a/build1
+++ b/build1
@@ -57,6 +57,7 @@ LAYERS=$(./enumerate/enumerate --until $UNTIL_LAYER  |grep '\.cc$')
 grep -h "^[^[:space:]#].*) {$" mu.cc  |grep -v ":.*("  |sed 's/ {.*/;/'  > function_list
 # auto-generate list of tests to run
 grep -h "^\s*void test_" mu.cc  |sed 's/^\s*void \(.*\)() {.*/\1,/'  > test_list
+grep -h "^\s*void test_" mu.cc  |sed 's/^\s*void \(.*\)() {.*/"\1",/'  > test_name_list
 $CXX $CFLAGS mu.cc termbox/libtermbox.a -o mu_bin
 
 ## [0-9]*.mu -> core.mu