In .:
2006-05-01 Alex Roitman <shura@gramps-project.org> * various: merge changes from gramps20. In po: 2006-05-01 Alex Roitman <shura@gramps-project.org> * POTFILES.in: Add new file. svn: r6504
This commit is contained in:
33
test/dates.sh
Executable file
33
test/dates.sh
Executable file
@@ -0,0 +1,33 @@
|
||||
#! /bin/sh
|
||||
#
|
||||
# Date Handler test for GRAMPS:
|
||||
# o Run date_test.py for every available locale.
|
||||
|
||||
# $Id: dates.sh,v 1.1.2.2 2006/04/15 20:21:03 loshawlos Exp $
|
||||
|
||||
TOP_DIR=`dirname $PWD`
|
||||
SRC_DIR=$TOP_DIR/src
|
||||
PRG="python date_test.py"
|
||||
|
||||
export PYTHONPATH=$SRC_DIR
|
||||
|
||||
# Get the list of xx_XX language codes
|
||||
LANG_LIST=`locale -a | grep _ | cut -f 1 -d . | sort | uniq`
|
||||
for lang in $LANG_LIST; do
|
||||
# for each xx_XX language code, try all available locales
|
||||
LOC_LIST=`locale -a | grep $lang`
|
||||
false
|
||||
for loc in $LOC_LIST; do
|
||||
export LANG=$loc
|
||||
# Run test
|
||||
res=`cd $SRC_DIR && $PRG`
|
||||
# Print results
|
||||
echo "$res"
|
||||
if [ $?=0 ]; then
|
||||
# Finish with this LANG if succeeded.
|
||||
echo "Done testing $LANG"
|
||||
read -p" ENTER to continue "
|
||||
break
|
||||
fi
|
||||
done
|
||||
done
|
@@ -1,8 +1,13 @@
|
||||
#! /bin/sh
|
||||
#
|
||||
# Import/export test for GRAMPS: Import example XML data and create GRDB,
|
||||
# check data for integrity, output in all formats, check resulting XML for
|
||||
# well-formedness and validate it against DTD and RelaxNG schema.
|
||||
# Import/export test for GRAMPS:
|
||||
# o Import example XML data and create GRDB
|
||||
# o Open produced GRDB, then
|
||||
# * check data for integrity
|
||||
# * output in all formats
|
||||
# o Check resulting XML for well-formedness and validate it
|
||||
# against DTD and RelaxNG schema.
|
||||
# o Import ever file produced and run summary on it.
|
||||
|
||||
# $Id$
|
||||
|
||||
@@ -13,6 +18,7 @@ PRG="python gramps.py"
|
||||
EXAMPLE_XML=$TOP_DIR/example/gramps/example.gramps
|
||||
|
||||
OUT_FMT="gedcom gramps-xml gramps-pkg wft geneweb"
|
||||
IN_FMT="gedcom gramps-xml gramps-pkg"
|
||||
DATA_DIR=$TEST_DIR/data
|
||||
mkdir -p $DATA_DIR
|
||||
if [ -f $DATA_DIR/example.grdb ]; then
|
||||
@@ -53,3 +59,12 @@ echo "* Post-parsing DTD validation"
|
||||
xmllint --noout --postvalid $DATA_DIR/example.gramps-xml
|
||||
echo "* Validate against RelaxNG schema"
|
||||
xmllint --noout --relaxng $TOP_DIR/doc/grampsxml.rng $DATA_DIR/example.gramps-xml
|
||||
|
||||
echo ""
|
||||
echo "+--------------------------------------------------------------"
|
||||
echo "| Import all produced files and print summary"
|
||||
echo "+--------------------------------------------------------------"
|
||||
for fmt in $IN_FMT; do
|
||||
OPTS="-i $DATA_DIR/example.$fmt -f $fmt -a summary"
|
||||
(cd $SRC_DIR; $PRG $OPTS)
|
||||
done
|
||||
|
Reference in New Issue
Block a user