summaryrefslogtreecommitdiff
path: root/tools/PracroAdd
diff options
context:
space:
mode:
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;
}