about summary refs log tree commit diff stats
path: root/cpp/makefile
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2015-02-17 14:05:01 -0800
committerKartik K. Agaram <vc@akkartik.com>2015-02-17 14:05:01 -0800
commit6042828bdea2a1ed1da1b0d2013a4479fb3d005a (patch)
tree1b45e4519392e123a7f9daf75ce5d44409877a85 /cpp/makefile
parent6a2dabe3675cc5d9f03587e1bf4fb8c7a61bafea (diff)
downloadmu-6042828bdea2a1ed1da1b0d2013a4479fb3d005a.tar.gz
774 - start persisting test traces
Diffstat (limited to 'cpp/makefile')
-rw-r--r--cpp/makefile2
1 files changed, 2 insertions, 0 deletions
diff --git a/cpp/makefile b/cpp/makefile
index 1c7e1380..0dcdbce5 100644
--- a/cpp/makefile
+++ b/cpp/makefile
@@ -9,6 +9,7 @@ type_list: boot.cc [0-9]*.cc
 function_list: boot.cc [0-9]*.cc
 	@# assumes function decl has space before '{'
 	@grep -h "^[^ #].*) {" [0-9]*.cc |perl -pwe 's/ {.*/;/' > function_list
+	@grep -h "^[[:space:]]*TEST(" [0-9]*.cc |perl -pwe 's/^\s*TEST\((.*)\)$$/void test_$$1();/' >> function_list
 
 file_list: boot.cc [0-9]*.cc
 	@ls [0-9]*.cc |grep -v "\.test\.cc$$" |perl -pwe 's/.*/#include "$$&"/' > file_list
@@ -18,6 +19,7 @@ test_file_list: [0-9]*.test.cc
 
 test_list: [0-9]*.cc
 	@grep -h "^[[:space:]]*void test_" [0-9]*.cc |perl -pwe 's/^\s*void (.*)\(\) {$$/$$1,/' > test_list
+	@grep -h "^[[:space:]]*TEST(" [0-9]*.cc |perl -pwe 's/^\s*TEST\((.*)\)$$/test_$$1,/' >> test_list
 
 clean:
 	rm -rf mu* *_list