3
# Report test for GRAMPS: Generate det_ancestor_report testing
4
# different option combinations.
8
REP="det_ancestor_report"
11
TOP_DIR=`dirname $PWD`
12
TEST_DIR=$TOP_DIR/test
14
PRG="python gramps.py"
15
EXAMPLE_XML=$TOP_DIR/example/gramps/example.gramps
17
REP_DIR=$TEST_DIR/reports/$REP
20
DATA_DIR=$TEST_DIR/data
22
if [ -f $DATA_DIR/example.grdb ]; then
23
rm $DATA_DIR/example.grdb
27
echo "+--------------------------------------------------------------"
28
echo "| Import XML, write GRDB"
29
echo "+--------------------------------------------------------------"
30
OPTS="-i $EXAMPLE_XML -o $DATA_DIR/example.grdb"
31
(cd $SRC_DIR; $PRG $OPTS)
33
OPTS="-O $DATA_DIR/example.grdb"
36
echo "+--------------------------------------------------------------"
37
echo "| Text Report: "$REP
38
echo "| Text Format: "$FMT
39
echo "+--------------------------------------------------------------"
40
for desref in {0,1}; do
41
for incphotos in {0,1}; do
42
for omitda in {0,1}; do
43
for incsources in {0,1}; do
44
for usenick in {0,1}; do
45
for fulldates in {0,1}; do
46
for incnotes in {0,1}; do
47
for repplace in {0,1}; do
48
for repdate in {0,1}; do
49
for computeage in {0,1}; do
50
for incnames in {0,1}; do
51
for incevents in {0,1}; do
52
for listc in {0,1}; do
53
output="$desref$incphotos$omitda$incsources$usenick$fulldates$incnotes$repplace$repdate$computeage$incnames$incevents$listc"
54
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"
55
(cd $SRC_DIR; $PRG $OPTS $action)