Could <URL: https://people.debian.org/~mpitt/autopkgtest/README.package-tests.html > contain the key to why these test are failing? It states
"The cwd of each test is guaranteed to be the root of the source package, which will have been unpacked but not built. However note that the tests must test the installed version of the program. Tests may not modify the source tree (and may not have write access to it)." If so, the following patch might help: diff --git a/debian/tests/hello b/debian/tests/hello index 60943be..15c3985 100755 --- a/debian/tests/hello +++ b/debian/tests/hello @@ -1,4 +1,5 @@ #!/bin/sh +cd $AUTOPKGTEST_TMP cat > HELLO.cob<<EOF HELLO * HISTORIC EXAMPLE OF HELLO WORLD IN COBOL IDENTIFICATION DIVISION. diff --git a/debian/tests/test01 b/debian/tests/test01 index 22d943e..783901b 100755 --- a/debian/tests/test01 +++ b/debian/tests/test01 @@ -2,10 +2,10 @@ cd debian/tests echo "info: compiling" -(cobc test01.cob > test01.act 2>&1) +(cobc test01.cob > $AUTOPKGTEST_TMP/test01.act 2>&1) echo "info: running" -cmp -s test01.exp test01.act +cmp -s test01.exp $AUTOPKGTEST_TMP/test01.act res=$? if [ $res ] ; then echo "success: test01 produced proper results" diff --git a/debian/tests/test02 b/debian/tests/test02 index 2e06f74..99f0978 100755 --- a/debian/tests/test02 +++ b/debian/tests/test02 @@ -2,10 +2,10 @@ cd debian/tests echo "info: compiling" -(cobc test02.cob > test02.act 2>&1) +(cobc test02.cob > $AUTOPKGTEST_TMP/test02.act 2>&1) echo "info: running" -cmp -s test02.exp test02.act +cmp -s test02.exp $AUTOPKGTEST_TMP/test02.act res=$? if [ $res ] ; then echo "success: test02 produced proper results" diff --git a/debian/tests/test03 b/debian/tests/test03 index f378787..701ade9 100755 --- a/debian/tests/test03 +++ b/debian/tests/test03 @@ -2,10 +2,10 @@ cd debian/tests echo "info: compiling" -(cobc test03.cob > test03.act 2>&1) +(cobc test03.cob > $AUTOPKGTEST_TMP/test03.act 2>&1) echo "info: running" -cmp -s test03.exp test03.act +cmp -s test03.exp $AUTOPKGTEST_TMP/test03.act res=$? if [ $res ] ; then echo "success: test03 produced proper results" diff --git a/debian/tests/test04 b/debian/tests/test04 index 04b325e..c50b157 100755 --- a/debian/tests/test04 +++ b/debian/tests/test04 @@ -2,10 +2,10 @@ cd debian/tests echo "info: compiling" -(cobc test04.cob > test04.act 2>&1) +(cobc test04.cob > $AUTOPKGTEST_TMP/test04.act 2>&1) echo "info: running" -cmp -s test04.exp test04.act +cmp -s test04.exp t$AUTOPKGTEST_TMP/est04.act res=$? if [ $res ] ; then echo "success: test04 produced proper results" -- Happy hacking Petter Reinholdtsen