]> git.saurik.com Git - apt.git/commitdiff
add integration test
authorMichael Vogt <mvo@debian.org>
Tue, 24 Dec 2013 22:21:23 +0000 (23:21 +0100)
committerMichael Vogt <mvo@debian.org>
Tue, 24 Dec 2013 22:21:23 +0000 (23:21 +0100)
test/integration/test-bug-728500-tempdir [new file with mode: 0755]

diff --git a/test/integration/test-bug-728500-tempdir b/test/integration/test-bug-728500-tempdir
new file mode 100755 (executable)
index 0000000..0606538
--- /dev/null
@@ -0,0 +1,18 @@
+#!/bin/sh
+
+set -e
+
+TESTDIR=$(readlink -f $(dirname $0))
+. $TESTDIR/framework
+setupenvironment
+configarchitecture 'i386'
+
+buildsimplenativepackage 'coolstuff' 'all' '1.0' 'unstable'
+
+setupaptarchive
+changetowebserver
+
+msgtest 'Test with incorect TMPDIR'
+export TMPDIR=/does-not-exists
+aptget update && msgpass || msgfail
+unset TMPDIR
\ No newline at end of file