cfad47cfa3/t3compiler/testscripts/test_pp
Commiter: Nikos Chantziaras
Author: Nikos Chantziaras
Revision: cfad47cfa3
File Size: 433 Bytes
(June 01, 2009 20:54 UTC) Almost 3 years ago
Initial commit.
#! /bin/sh
# Preprocessor tests
rm -rf $T3_OUT
mkdir $T3_OUT
ret=0
cd "$T3_OUT"
for i in ansi circ circ2 embed define ifdef concat varmacpp
do
echo "Preprocessor test: $i"
$TESTPROGS/test_tok -I "$T3_DAT" -P "$T3_DAT/$i.c" > "$T3_OUT/$i.log" 2>"$T3_OUT/$i.err"
cat "$T3_OUT/$i.err" >> "$T3_OUT/$i.log"
rm "$T3_OUT/$i.err"
if $SCRIPTS/test_diff "$i"; then
:
else
ret=1
fi
done
exit $ret |