* src/plugins/Checkpoint.py (rcs): Do not write comment on
initialization. * test/tools.sh: Add test set for tools. svn: r5434
This commit is contained in:
@@ -20,6 +20,9 @@
|
|||||||
for the first line indent; (start_paragraph): remove leader
|
for the first line indent; (start_paragraph): remove leader
|
||||||
handling; (end_paragraph): Handle all formatting, including leader
|
handling; (end_paragraph): Handle all formatting, including leader
|
||||||
and first line indent.
|
and first line indent.
|
||||||
|
* src/plugins/Checkpoint.py (rcs): Do not write comment on
|
||||||
|
initialization.
|
||||||
|
* test/tools.sh: Add test set for tools.
|
||||||
|
|
||||||
2005-11-22 Don Allingham <don@gramps-project.org>
|
2005-11-22 Don Allingham <don@gramps-project.org>
|
||||||
* src/docgen/AbiWord2Doc.py: fix spacing for top and bottom margin
|
* src/docgen/AbiWord2Doc.py: fix spacing for top and bottom margin
|
||||||
|
@@ -309,7 +309,6 @@ class Checkpoint(Tool.Tool):
|
|||||||
proc = popen2.Popen3(
|
proc = popen2.Popen3(
|
||||||
'rcs -i -U -q -t-"GRAMPS database" %s' % archive,
|
'rcs -i -U -q -t-"GRAMPS database" %s' % archive,
|
||||||
True)
|
True)
|
||||||
proc.tochild.write(comment)
|
|
||||||
proc.tochild.close()
|
proc.tochild.close()
|
||||||
status = proc.wait()
|
status = proc.wait()
|
||||||
message = "\n".join(proc.childerr.readlines())
|
message = "\n".join(proc.childerr.readlines())
|
||||||
|
@@ -1,2 +1,3 @@
|
|||||||
data
|
data
|
||||||
reports
|
reports
|
||||||
|
tools
|
||||||
|
51
gramps2/test/tools.sh
Executable file
51
gramps2/test/tools.sh
Executable file
@@ -0,0 +1,51 @@
|
|||||||
|
#! /bin/sh
|
||||||
|
#
|
||||||
|
# Tool test for GRAMPS: Run tools with the default options.
|
||||||
|
#
|
||||||
|
# The results of this test set depend on what options were used
|
||||||
|
# previously with the tools, because this test set is not
|
||||||
|
# specifying all possible options and their combinations.
|
||||||
|
# Instead, this is a general test for all tools.
|
||||||
|
|
||||||
|
# $Id$
|
||||||
|
|
||||||
|
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
|
||||||
|
|
||||||
|
TOOL_DIR=$TEST_DIR/tools
|
||||||
|
mkdir -p $TOOL_DIR
|
||||||
|
|
||||||
|
OPTS="-i $EXAMPLE_XML"
|
||||||
|
|
||||||
|
TOOLS1="reorder_ids verify chkpoint rebuild dgenstats check"
|
||||||
|
TOOLS2="chtype cmdref testcasegenerator"
|
||||||
|
|
||||||
|
# Run all tools on the example data, check at the end
|
||||||
|
echo ""
|
||||||
|
echo "+--------------------------------------------------------------"
|
||||||
|
echo "| Tools: chtype cmdref $TOOLS1"
|
||||||
|
echo "+--------------------------------------------------------------"
|
||||||
|
action=
|
||||||
|
action="$action -a tool -p name=chtype,fromtype=Burial,totype=WeirdType"
|
||||||
|
action="$action -a tool -p name=cmdref,include=1,target=$TOOL_DIR/junk.xml"
|
||||||
|
for tool in $TOOLS1; do
|
||||||
|
action="$action -a tool -p name=$tool"
|
||||||
|
done
|
||||||
|
(cd $SRC_DIR; $PRG $OPTS $action)
|
||||||
|
|
||||||
|
# Run random test generator on an empty db, preserve the result.
|
||||||
|
echo ""
|
||||||
|
echo "+--------------------------------------------------------------"
|
||||||
|
echo "| Tool: testcasegenerator"
|
||||||
|
echo "+--------------------------------------------------------------"
|
||||||
|
TEST_DATA=$TOOL_DIR/junk.grdb
|
||||||
|
if [ -f $TEST_DATA ]; then
|
||||||
|
rm $TEST_DATA
|
||||||
|
fi
|
||||||
|
touch $TEST_DATA
|
||||||
|
OPTS="-O $TEST_DATA"
|
||||||
|
action="-a tool -p name=testcasegenerator"
|
||||||
|
(cd $SRC_DIR; $PRG $OPTS $action)
|
Reference in New Issue
Block a user