* test/det_descendant_report.sh: Add thorough test for the

Detailed Descendant Report.


svn: r5533
This commit is contained in:
Alex Roitman 2005-12-10 07:09:42 +00:00
parent c1a3e73966
commit 4ba38406b1
2 changed files with 70 additions and 0 deletions

View File

@ -19,6 +19,8 @@
state for archive option.
* test/det_ancestor_report.sh: Add thorough test for the Detailed
Ancestor Report.
* test/det_descendant_report.sh: Add thorough test for the
Detailed Descendant Report.
2005-12-08 Don Allingham <don@gramps-project.org>
* src/Merge.py: fix date comparison

View File

@ -0,0 +1,68 @@
#! /bin/sh
#
# Report test for GRAMPS: Generate det_descendant_report testing
# different option combinations.
# $Id$
REP="det_ancestor_report"
FMT="txt"
TOP_DIR=`dirname $PWD`
TEST_DIR=$TOP_DIR/test
SRC_DIR=$TOP_DIR/src
PRG="python gramps.py"
EXAMPLE_XML=$TOP_DIR/example/gramps/example.gramps
REP_DIR=$TEST_DIR/reports/$REP
mkdir -p $REP_DIR
DATA_DIR=$TEST_DIR/data
mkdir -p $DATA_DIR
if [ -f $DATA_DIR/example.grdb ]; then
rm $DATA_DIR/example.grdb
fi
echo ""
echo "+--------------------------------------------------------------"
echo "| Import XML, write GRDB"
echo "+--------------------------------------------------------------"
OPTS="-i $EXAMPLE_XML -o $DATA_DIR/example.grdb"
(cd $SRC_DIR; $PRG $OPTS)
OPTS="-O $DATA_DIR/example.grdb"
echo ""
echo "+--------------------------------------------------------------"
echo "| Text Report: "$REP
echo "| Text Format: "$FMT
echo "+--------------------------------------------------------------"
for desref in {0,1}; do
for incphotos in {0,1}; do
for omitda in {0,1}; do
for incsources in {0,1}; do
for usenick in {0,1}; do
for fulldates in {0,1}; do
for incnotes in {0,1}; do
for repplace in {0,1}; do
for repdate in {0,1}; do
for computeage in {0,1}; do
for incnames in {0,1}; do
for incevents in {0,1}; do
for listc in {0,1}; do
output="$desref$incphotos$omitda$incsources$usenick$fulldates$incnotes$repplace$repdate$computeage$incnames$incevents$listc"
action="-a report -p name=$REP,id=I44,off=$FMT,of=$REP_DIR/$output.$FMT,desref=$desref,incphotos=$incphotos,omitda=$omitda,incsources=$incsources,usenick=$usenick,fulldates=$fulldates,incnotes=$incnotes,repplace=$repplace,repdate=$repdate,computeage=$computeage,incnames=$incnames,incevents=$incevents,listc=$listc"
(cd $SRC_DIR; $PRG $OPTS $action)
done
done
done
done
done
done
done
done
done
done
done
done
done