diff options
author | Andres Mejia <mcitadel@gmail.com> | 2010-11-30 19:25:39 +0100 |
---|---|---|
committer | David Kalnischkies <kalnischkies@gmail.com> | 2010-11-30 19:25:39 +0100 |
commit | 4a4ea26c2d0f89c13e0ccf6fb2d96ad1caa6427d (patch) | |
tree | b1407db3d17231bf64f4ea3ee3a438da23870000 | |
parent | b6b5a542bd5a2580fff3d3ec2ce91a41e9622d6d (diff) |
Add support for providing and autocopying Sources files along the way
of status and Packages files with a testcase
-rw-r--r-- | test/integration/framework | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/test/integration/framework b/test/integration/framework index 8abefc814..7af59deb0 100644 --- a/test/integration/framework +++ b/test/integration/framework @@ -119,6 +119,12 @@ setupenvironment() { else touch aptarchive/Packages fi + local SOURCESSFILE=$(echo "$(basename $0)" | sed -e 's/^test-/Sources-/' -e 's/^skip-/Sources-/') + if [ -f "${TESTDIR}/${SOURCESSFILE}" ]; then + cp "${TESTDIR}/${SOURCESSFILE}" aptarchive/Sources + else + touch aptarchive/Sources + fi cp $(find $TESTDIR -name '*.pub' -o -name '*.sec') keys/ ln -s ${TMPWORKINGDIRECTORY}/keys/joesixpack.pub rootdir/etc/apt/trusted.gpg.d/joesixpack.gpg echo "Dir \"${TMPWORKINGDIRECTORY}/rootdir\";" > aptconfig.conf |