From 74a28aa7125be6a603128ad600c98c4882f3b5c2 Mon Sep 17 00:00:00 2001 From: deva Date: Tue, 1 Jun 2010 12:58:32 +0000 Subject: From new_protocol branch. --- 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