]> git.saurik.com Git - apt.git/blame - test/integration/test-apt-cli-update
Make directory paths configurable
[apt.git] / test / integration / test-apt-cli-update
CommitLineData
8f418981
MV
1#!/bin/sh
2set -e
3
3abb6a6a
DK
4TESTDIR="$(readlink -f "$(dirname "$0")")"
5. "$TESTDIR/framework"
8f418981
MV
6
7setupenvironment
8configarchitecture "i386"
9
10insertpackage 'unstable' 'foo' 'all' '2.0'
081c9d44 11cp rootdir/var/lib/dpkg/status dpkg.status
8f418981
MV
12insertinstalledpackage 'foo' 'all' '1.0'
13
1df24acf 14setupaptarchive --no-update
8f418981 15
5ad0096a 16testfailuremsg 'E: The update command takes no arguments' apt update arguments
081c9d44 17
2b0660b5 18testsuccessequal "1 package can be upgraded. Run 'apt list --upgradable' to see it." apt update -qq
081c9d44
DK
19
20cp dpkg.status rootdir/var/lib/dpkg/status
21insertinstalledpackage 'foo' 'all' '2.0'
2b0660b5 22testsuccessequal 'All packages are up to date.' apt update -qq