Mercurial > public > fructose_gen
annotate tests/test.bash @ 4:9d536614c4c0 tip
Added tag fructose1.1.0 for changeset d8aeeb7f6785
author | Brian Neal <bgneal@gmail.com> |
---|---|
date | Sat, 21 May 2011 21:11: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 |