From 8752ec3b024e6642b7ecd24207d3bf4accfe5aba Mon Sep 17 00:00:00 2001 From: deva Date: Thu, 17 Dec 2009 12:43:40 +0000 Subject: New test system. --- tools/PracroAdd | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) (limited to 'tools/PracroAdd') diff --git a/tools/PracroAdd b/tools/PracroAdd index c2ffdf0..2ceda59 100644 --- a/tools/PracroAdd +++ b/tools/PracroAdd @@ -60,11 +60,19 @@ function ccfile() { local hn=`echo $1 | cut -d'.' -f1 | tr 'a-z.' 'A-Z_'` echo "#ifdef TEST_${hn}" >> $1; + echo "//Additional dependency files" >> $1; + echo "//deps:" >> $1; + echo "//Required cflags (autoconf vars may be used)" >> $1; + echo "//cflags:" >> $1; + echo "//Required link options (autoconf vars may be used)" >> $1; + echo "//libs:" >> $1; + echo "#include \"test.h\"" >> $1; echo "" >> $1; - echo "int main()" >> $1; - echo "{" >> $1; - echo " return 0;" >> $1; - echo "}" >> $1; + echo "TEST_BEGIN;" >> $1; + echo "" >> $1; + echo "// TODO: Put some testcode here (see test.h for usable macros)." >> $1; + echo "" >> $1; + echo "TEST_END;" >> $1; echo "" >> $1; echo "#endif/*TEST_${hn}*/" >> $1; } -- cgit v1.2.3