Mercurial > public > fructose_gen
comparison tests/test.bash @ 0:d098192f01d9
Initial commit to the repository.
author | Brian Neal <bgneal@gmail.com> |
---|---|
date | Sat, 19 Mar 2011 19:53:12 -0500 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:d098192f01d9 |
---|---|
1 #!/bin/bash | |
2 | |
3 INCLUDES="-I../../fructose/include -I../../tclap-1.2.0/include" | |
4 | |
5 ../fructose_gen.py x1.h x2.h x3.h > x.cpp | |
6 #g++ -o x.out $INCLUDES x.cpp | |
7 | |
8 ../fructose_gen.py --generator g1.h g2.h g3.h > g.cpp | |
9 #g++ -o g.out $INCLUDES g.cpp | |
10 | |
11 diff x_expected.cpp x.cpp >/dev/null | |
12 if [ $? -eq 0 ]; then | |
13 echo "xunit style passed" | |
14 else | |
15 echo "xunit style failed" | |
16 fi | |
17 | |
18 diff g_expected.cpp g.cpp >/dev/null | |
19 if [ $? -eq 0 ]; then | |
20 echo "generator style passed" | |
21 else | |
22 echo "generator style failed" | |
23 fi |