dlugolecki.net.pl
Dziennik
Polecane
Software
projects
/
gedcom-parse.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Tests for date functions.
[gedcom-parse.git]
/
t
/
src
/
test_writegom
diff --git
a/t/src/test_writegom
b/t/src/test_writegom
index 24ec246a1845670d3f785efb6745ba979d39df79..8a9daf42b686791d47879d75029431d09dd5c0c9 100755
(executable)
--- a/
t/src/test_writegom
+++ b/
t/src/test_writegom
@@
-17,8
+17,23
@@
gedcom_out=1
terminator=$1
encoding=$2
unicode_details=$3
terminator=$1
encoding=$2
unicode_details=$3
+infile=$4
options="$options -t $terminator -e $encoding"
options="$options -t $terminator -e $encoding"
+if [ "$infile" ]
+then
+ if [ -z "$srcdir" ]
+ then
+ testfile=$infile
+ else
+ case $file in
+ ./*) testfile=$infile ;;
+ *) testfile=$srcdir/input/$infile ;;
+ esac
+ fi
+ options="$options -i $testfile"
+fi
+
if [ "$encoding" == "UNICODE" ]
then
options="$options -u $unicode_details"
if [ "$encoding" == "UNICODE" ]
then
options="$options -u $unicode_details"