summaryrefslogtreecommitdiff
path: root/tools/PracroAdd
diff options
context:
space:
mode:
authordeva <deva>2009-12-17 12:43:40 +0000
committerdeva <deva>2009-12-17 12:43:40 +0000
commit8752ec3b024e6642b7ecd24207d3bf4accfe5aba (patch)
tree668fc980534cb35422cc637dd9c2e238d9a04c29 /tools/PracroAdd
parent2261e83f6d961e4c9f88dc2687881d57295e5778 (diff)
New test system.
Diffstat (limited to 'tools/PracroAdd')
-rw-r--r--tools/PracroAdd16
1 files changed, 12 insertions, 4 deletions
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;
}