From 3a7d7bd85cb06dff37b7ae5ca005ab0db319c38d Mon Sep 17 00:00:00 2001 From: Don Allingham Date: Wed, 23 Nov 2005 04:00:39 +0000 Subject: [PATCH] added svn: r5420 --- gramps2/test/runtest.sh | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100755 gramps2/test/runtest.sh diff --git a/gramps2/test/runtest.sh b/gramps2/test/runtest.sh new file mode 100755 index 000000000..6410f0e78 --- /dev/null +++ b/gramps2/test/runtest.sh @@ -0,0 +1,37 @@ +#! /bin/sh + +GDIR=`dirname $PWD` +TDIR=$GDIR/test +OPTS="-i $GDIR/example/gramps/example.gramps -f gramps-xml" +PRG="python gramps.py" + +for report in ancestor_chart ancestor_chart2 descendant_graph +do + for fmt in "sxw" "ps" "pdf" "svg" + do + echo "" + echo "+--------------------------------------------------------------" + echo "|" + echo "| $report in $fmt format" + echo "|" + echo "+--------------------------------------------------------------" + + (cd $GDIR/src; $PRG $OPTS -a report -p name=$report,id=I44,off=$fmt,of=$TDIR/$report.$fmt) + done +done + +for report in ancestor_report ancestors_report descend_report det_ancestor_report det_descendant_report +do + for fmt in "sxw" "pdf" "kwd" "abw" "rtf" + do + echo "" + echo "+--------------------------------------------------------------" + echo "|" + echo "| $report in $fmt format" + echo "|" + echo "+--------------------------------------------------------------" + + (cd $GDIR/src; $PRG $OPTS -a report -p name=$report,id=I44,off=$fmt,of=$TDIR/$report.$fmt) + done +done +