view 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
line wrap: on
line source
#!/bin/bash

INCLUDES="-I../../fructose/include -I../../tclap-1.2.0/include"

../fructose_gen.py x1.h x2.h x3.h > x.cpp
#g++ -o x.out $INCLUDES x.cpp

../fructose_gen.py --generator g1.h g2.h g3.h > g.cpp
#g++ -o g.out $INCLUDES g.cpp

diff x_expected.cpp x.cpp >/dev/null
if [ $? -eq 0 ]; then
   echo "xunit style passed"
else
   echo "xunit style failed"
fi

diff g_expected.cpp g.cpp >/dev/null
if [ $? -eq 0 ]; then
   echo "generator style passed"
else
   echo "generator style failed"
fi