Makefile.am: Distribute test-poptrc, don't try to wildcard .po files.
authorsopwith <devnull@localhost>
Fri, 11 Feb 2000 04:44:14 +0000 (04:44 +0000)
committersopwith <devnull@localhost>
Fri, 11 Feb 2000 04:44:14 +0000 (04:44 +0000)
testit.sh: Work with srcdir != builddir.

CVS patchset: 3550
CVS date: 2000/02/11 04:44:14

popt/Makefile.am
popt/testit.sh

index 7c0679f..c209223 100644 (file)
@@ -3,7 +3,9 @@
 AUTOMAKE_OPTIONS = 1.4 foreign
 
 EXTRA_DIST = autogen.sh CHANGES $(man_MANS) popt.spec \
-       testit.sh po/Makefile.in.in po/POTFILES.in po/*.po po/popt.pot popt.ps
+       testit.sh test-poptrc \
+       po/Makefile.in.in po/POTFILES.in po/sk.po po/ro.po po/popt.pot \
+       popt.ps
 
 SUBDIRS = intl po
 
index fdb1541..e9b7198 100755 (executable)
@@ -1,7 +1,5 @@
 #!/bin/sh
 
-${test1:=./test1}
-
 run() {
     prog=$1; shift
     name=$1; shift
@@ -9,14 +7,19 @@ run() {
 
     echo Running test $name.
 
-    result=`./$prog $*`
+    result=`$builddir/$prog $*`
     if [ "$answer" != "$result" ]; then
-       echo "Test \"$*\" failed with: $result"
+       echo "Test \"$*\" failed with: \"$result\" != \"$answer\" "
        exit 2
     fi
 }
 
-make -q testcases
+builddir=`pwd`
+cd ${srcdir}
+test1=${builddir}/test1
+echo "Running tests in `pwd`"
+
+#make -q testcases
 
 run test1 "test1 - 1" "arg1: 1 arg2: (none)" --arg1
 run test1 "test1 - 2" "arg1: 0 arg2: foo" --arg2 foo