]> git.saurik.com Git - apt.git/blame_incremental - test/integration/test-bug-728500-tempdir
adapt to the new CacheSetHelper API
[apt.git] / test / integration / test-bug-728500-tempdir
... / ...
CommitLineData
1#!/bin/sh
2
3set -e
4
5TESTDIR=$(readlink -f $(dirname $0))
6. $TESTDIR/framework
7setupenvironment
8configarchitecture 'i386'
9
10insertpackage 'unstable' 'coolstuff' 'all' '1.0'
11
12setupaptarchive
13changetowebserver
14
15msgtest 'Test apt-get update with incorrect' 'TMPDIR'
16
17OUTPUT=$(mktemp)
18addtrap "rm $OUTPUT;"
19export TMPDIR=/does-not-exists
20if aptget update >${OUTPUT} 2>&1; then
21 msgpass
22else
23 echo
24 cat $OUTPUT
25 msgfail
26fi
27unset TMPDIR
28
29testequal 'coolstuff' aptcache pkgnames