]> git.saurik.com Git - apt.git/blob - test/integration/test-apt-cli-update
sync TFRewrite*Order arrays with dpkg and dak
[apt.git] / test / integration / test-apt-cli-update
1 #!/bin/sh
2 set -e
3
4 TESTDIR=$(readlink -f $(dirname $0))
5 . $TESTDIR/framework
6
7 setupenvironment
8 configarchitecture "i386"
9
10 insertpackage 'unstable' 'foo' 'all' '2.0'
11 cp rootdir/var/lib/dpkg/status dpkg.status
12 insertinstalledpackage 'foo' 'all' '1.0'
13
14 setupaptarchive --no-update
15
16 APTARCHIVE=$(readlink -f ./aptarchive)
17
18 testfailureequal 'E: The update command takes no arguments' apt update -q arguments
19
20 testsuccessequal "1 package can be upgraded. Run 'apt list --upgradable' to see it." apt update -q
21
22 cp dpkg.status rootdir/var/lib/dpkg/status
23 insertinstalledpackage 'foo' 'all' '2.0'
24 testsuccessequal 'All packages are up to date.' apt update -q