annotate tests/test.bash @ 3:d8aeeb7f6785 fructose1.1.0

Changed the license to LGPL to be compatible with Fructose itself.
author Brian Neal <bgneal@gmail.com>
date Sat, 14 May 2011 14:20:44 -0500
parents d098192f01d9
children
rev   line source
bgneal@0 1 #!/bin/bash
bgneal@0 2
bgneal@0 3 INCLUDES="-I../../fructose/include -I../../tclap-1.2.0/include"
bgneal@0 4
bgneal@0 5 ../fructose_gen.py x1.h x2.h x3.h > x.cpp
bgneal@0 6 #g++ -o x.out $INCLUDES x.cpp
bgneal@0 7
bgneal@0 8 ../fructose_gen.py --generator g1.h g2.h g3.h > g.cpp
bgneal@0 9 #g++ -o g.out $INCLUDES g.cpp
bgneal@0 10
bgneal@0 11 diff x_expected.cpp x.cpp >/dev/null
bgneal@0 12 if [ $? -eq 0 ]; then
bgneal@0 13 echo "xunit style passed"
bgneal@0 14 else
bgneal@0 15 echo "xunit style failed"
bgneal@0 16 fi
bgneal@0 17
bgneal@0 18 diff g_expected.cpp g.cpp >/dev/null
bgneal@0 19 if [ $? -eq 0 ]; then
bgneal@0 20 echo "generator style passed"
bgneal@0 21 else
bgneal@0 22 echo "generator style failed"
bgneal@0 23 fi