gramps/gramps2/test/runtest.sh
Alex Roitman dc14e4de37 * src/ArgHandler.py (cl_export): Add grdb export from the CLI.
* src/plugins/Check.py (check_parent_relationships): Step through
the progress bar.
* test/runtest.sh: Add txt format and family_group report.
* test/impex.sh: Add import/export test set.
* example/gramps/example.gramps: Correct errors.


svn: r5424
2005-11-23 20:16:39 +00:00

47 lines
1.3 KiB
Bash
Executable File

#! /bin/sh
# $Id$
GDIR=`dirname $PWD`
TDIR=$GDIR/test
OPTS="-i $GDIR/example/gramps/example.gramps -f gramps-xml"
PRG="python gramps.py"
GRPH_FMT="sxw ps pdf svg"
TEXT_FMT="sxw pdf kwd abw rtf txt"
GRPH_REP="ancestor_chart ancestor_chart2 descendant_graph"
TEXT_REP="ancestor_report ancestors_report descend_report det_ancestor_report det_descendant_report family_group"
# Single run with all graphical reports in all formats
echo ""
echo "+--------------------------------------------------------------"
echo "| Reports:"
echo "| "$GRPH_REP
echo "| Formats:"
echo "| "$GRPH_FMT
echo "+--------------------------------------------------------------"
action=
for report in $GRPH_REP; do
for fmt in $GRPH_FMT; do
action="$action -a report -p name=$report,id=I44,off=$fmt,of=$TDIR/$report.$fmt"
done
done
(cd $GDIR/src; $PRG $OPTS $action)
# Single run with all textual reports in all formats
echo ""
echo "+--------------------------------------------------------------"
echo "| Reports:"
echo "| "$TEXT_REP
echo "| Formats:"
echo "| "$TEXT_FMT
echo "+--------------------------------------------------------------"
action=
for report in $TEXT_REP; do
for fmt in $TEXT_FMT; do
action="$action -a report -p name=$report,id=I44,off=$fmt,of=$TDIR/$report.$fmt"
done
done
(cd $GDIR/src; $PRG $OPTS $action)