gramps/gramps2/test/runtest.sh

47 lines
1.3 KiB
Bash
Raw Normal View History

2005-11-23 09:30:39 +05:30
#! /bin/sh
# $Id$
2005-11-23 09:30:39 +05:30
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"
2005-11-23 09:30:39 +05:30
# 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)