~ubuntu-branches/ubuntu/trusty/gramps/trusty-proposed

« back to all changes in this revision

Viewing changes to test/det_ancestor_report.sh

  • Committer: Package Import Robot
  • Author(s): Ross Gammon
  • Date: 2014-02-03 17:28:04 UTC
  • mfrom: (39.1.7 sid)
  • Revision ID: package-import@ubuntu.com-20140203172804-76y7nwxiw92zhlnj
Tags: 4.0.3+dfsg-1
* New upstream release (Closes: #720858)
* To-do notes improved and made persistent (Closes: #680692)
* Applied patch to setup.py to fix resource path problem
* Applied patch to disable the optional HTML View & prevent a crash
* Remove sourceless javascript files (Closes: #736436)
* Gramps uses Bat Mitzva internally (Closes: #502532)

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#! /bin/sh
 
2
#
 
3
# Report test for GRAMPS: Generate det_ancestor_report testing
 
4
# different option combinations.
 
5
 
 
6
# $Id$
 
7
 
 
8
REP="det_ancestor_report"
 
9
FMT="txt"
 
10
 
 
11
TOP_DIR=`dirname $PWD`
 
12
TEST_DIR=$TOP_DIR/test
 
13
SRC_DIR=$TOP_DIR/src
 
14
PRG="python gramps.py"
 
15
EXAMPLE_XML=$TOP_DIR/example/gramps/example.gramps
 
16
 
 
17
REP_DIR=$TEST_DIR/reports/$REP
 
18
mkdir -p $REP_DIR
 
19
 
 
20
DATA_DIR=$TEST_DIR/data
 
21
mkdir -p $DATA_DIR
 
22
if [ -f $DATA_DIR/example.grdb ]; then
 
23
    rm $DATA_DIR/example.grdb
 
24
fi
 
25
 
 
26
echo ""
 
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)
 
32
 
 
33
OPTS="-O $DATA_DIR/example.grdb"
 
34
 
 
35
echo ""
 
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)
 
56
done
 
57
done
 
58
done
 
59
done
 
60
done
 
61
done
 
62
done
 
63
done
 
64
done
 
65
done
 
66
done
 
67
done
 
68
done