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
Forgotten internal header file.
[gedcom-parse.git]
/
t
/
test_script
diff --git
a/t/test_script
b/t/test_script
index ed62f9b31ffc403693ea457b6f01176438f493ce..f8f365236629109247fbe1d02b5fc9f0757c87a4 100755
(executable)
--- a/
t/test_script
+++ b/
t/test_script
@@
-3,11
+3,12
@@
# $Name$
options="-q"
# $Name$
options="-q"
+extra_options=
while [ $# -gt 0 ]
do
case "$1" in
while [ $# -gt 0 ]
do
case "$1" in
- -*)
options="$
options $1";;
+ -*)
extra_options="$extra_
options $1";;
*) break;;
esac
shift
*) break;;
esac
shift
@@
-20,15
+21,26
@@
then
expected_result=0
fi
expected_result=0
fi
+# For use outside Makefile
+if [ -z "$srcdir" ]
+then
+ testfile=$file
+ srcdir=.
+ options=$extra_options
+else
+ testfile=input/$file
+ options="$options $extra_options"
+fi
+
builddir=`pwd`
builddir=`pwd`
-cd $srcdir/..
-export GCONV_PATH=./ansel:$GCONV_PATH
+export GCONV_PATH=../ansel:$GCONV_PATH
export LD_LIBRARY_PATH=$builddir/../gedcom/.libs:$LD_LIBRARY_PATH
export LD_LIBRARY_PATH=$builddir/../gedcom/.libs:$LD_LIBRARY_PATH
-cp $builddir/../ansel/.libs/ANSI_Z39.47.so ansel
-$builddir/testgedcom $options t/input/$file
+cp $builddir/../ansel/.libs/ANSI_Z39.47.so ../ansel
+rm -f core
+$builddir/testgedcom $options $testfile
result=$?
result=$?
-rm ansel/ANSI_Z39.47.so
-if [ "$result" -eq "$expected_result" ]
+rm
../
ansel/ANSI_Z39.47.so
+if [ "$result" -eq "$expected_result"
-a ! -r core
]
then
exit 0
else
then
exit 0
else