mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
It is split into - /libgnucash (for the non-gui bits) - /gnucash (for the gui) - /common (misc source files used by both) - /bindings (currently only holds python bindings) This is the first step in restructuring the code. It will need much more fine tuning later on.
33 lines
660 B
Bash
Executable File
33 lines
660 B
Bash
Executable File
#!@SHELL@
|
|
|
|
#set -e
|
|
|
|
EXIT_VALUE=0
|
|
if [ "x$TEST_PATH" == "x" ] ; then
|
|
TEST_PATH=.
|
|
fi
|
|
for i in $SRCDIR/test-files/xml2/*.gml2 ; do
|
|
|
|
if [ ! -d $i ] ; then
|
|
for j in account commodity transaction ; do
|
|
|
|
rm -rf $j
|
|
|
|
mkdir $j
|
|
FILES=`perl $SRCDIR/grab-types.pl "gnc:$j" $i "$j/dataXXX.xml"`
|
|
if [ ! -z "$FILES" ] ; then
|
|
if [ "x$VERBOSE" = "xyes" ] ; then
|
|
echo "Testing $TEST_PATH/test-xml-$j $j/data*.xml # from `basename $i`:"
|
|
fi
|
|
eval "$TEST_PATH/test-xml-$j $FILES 2>/dev/null"
|
|
if [ $? != 0 ] ; then
|
|
EXIT_VALUE=1
|
|
fi
|
|
fi
|
|
rm -rf $j
|
|
done
|
|
fi
|
|
done
|
|
|
|
exit $EXIT_VALUE
|