1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111
|
#!/bin/sh
set -e
TESTDIR="$(readlink -f "$(dirname "$0")")"
. "$TESTDIR/framework"
setupenvironment
configarchitecture 'amd64'
buildsimplenativepackage 'awesome' 'native' '42' 'stable'
buildsimplenativepackage 'foo' 'all' '1.0' 'stable'
buildsimplenativepackage 'libbar' 'all' '1.0' 'stable'
setupaptarchive --no-update
changetowebserver
testfailureequal "Reading package lists...
Building dependency tree...
E: Unable to locate package awesome" aptget install awesome -s
msgmsg "apt-get {install,remove} {-U, --update}"
for command in install remove; do
for option in -U --update; do
testsuccessequal "Get:1 http://localhost:${APTHTTPPORT} stable InRelease [$(stat -c %s aptarchive/dists/stable/InRelease) B]
Get:2 http://localhost:${APTHTTPPORT} stable/main Sources [$(stat -c %s aptarchive/dists/stable/main/source/Sources.gz) B]
Get:3 http://localhost:${APTHTTPPORT} stable/main amd64 Packages [$(stat -c %s aptarchive/dists/stable/main/binary-amd64/Packages.gz) B]
Get:4 http://localhost:${APTHTTPPORT} stable/main all Packages [$(stat -c %s aptarchive/dists/stable/main/binary-all/Packages.gz) B]
Get:5 http://localhost:${APTHTTPPORT} stable/main Translation-en [$(stat -c %s aptarchive/dists/stable/main/i18n/Translation-en.gz) B]
Reading package lists...
Reading package lists...
Building dependency tree...
The following NEW packages will be installed:
awesome
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Inst awesome (42 stable [amd64])
Conf awesome (42 stable [amd64])" \
aptget $command $option awesome+ -s
find rootdir/var/lib/apt/lists/ -type f -delete
done
done
msgmsg "apt {install,remove} {-U, --update}"
for command in install remove; do
for option in -U --update; do
testsuccessequal "Get:1 http://localhost:${APTHTTPPORT} stable InRelease [$(stat -c %s aptarchive/dists/stable/InRelease) B]
Get:2 http://localhost:${APTHTTPPORT} stable/main Sources [$(stat -c %s aptarchive/dists/stable/main/source/Sources.gz) B]
Get:3 http://localhost:${APTHTTPPORT} stable/main amd64 Packages [$(stat -c %s aptarchive/dists/stable/main/binary-amd64/Packages.gz) B]
Get:4 http://localhost:${APTHTTPPORT} stable/main all Packages [$(stat -c %s aptarchive/dists/stable/main/binary-all/Packages.gz) B]
Get:5 http://localhost:${APTHTTPPORT} stable/main Translation-en [$(stat -c %s aptarchive/dists/stable/main/i18n/Translation-en.gz) B]
Reading package lists...
Building dependency tree...
All packages are up to date.
Reading package lists...
Building dependency tree...
The following NEW packages will be installed:
awesome
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Inst awesome (42 stable [amd64])
Conf awesome (42 stable [amd64])" \
apt $command $option awesome+ -s
find rootdir/var/lib/apt/lists/ -type f -delete
done
done
msgmsg "apt-get *upgrade {-U, --update}"
for command in upgrade dist-upgrade full-upgrade; do
for option in -U --update; do
testsuccessequal "Get:1 http://localhost:${APTHTTPPORT} stable InRelease [$(stat -c %s aptarchive/dists/stable/InRelease) B]
Get:2 http://localhost:${APTHTTPPORT} stable/main Sources [$(stat -c %s aptarchive/dists/stable/main/source/Sources.gz) B]
Get:3 http://localhost:${APTHTTPPORT} stable/main amd64 Packages [$(stat -c %s aptarchive/dists/stable/main/binary-amd64/Packages.gz) B]
Get:4 http://localhost:${APTHTTPPORT} stable/main all Packages [$(stat -c %s aptarchive/dists/stable/main/binary-all/Packages.gz) B]
Get:5 http://localhost:${APTHTTPPORT} stable/main Translation-en [$(stat -c %s aptarchive/dists/stable/main/i18n/Translation-en.gz) B]
Reading package lists...
Reading package lists...
Building dependency tree...
Calculating upgrade...
The following NEW packages will be installed:
awesome
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Inst awesome (42 stable [amd64])
Conf awesome (42 stable [amd64])" \
aptget $command $option awesome -s
find rootdir/var/lib/apt/lists/ -type f -delete
done
done
msgmsg "apt *upgrade {-U, --update}"
for command in upgrade dist-upgrade full-upgrade; do
for option in -U --update; do
testsuccessequal "Get:1 http://localhost:${APTHTTPPORT} stable InRelease [$(stat -c %s aptarchive/dists/stable/InRelease) B]
Get:2 http://localhost:${APTHTTPPORT} stable/main Sources [$(stat -c %s aptarchive/dists/stable/main/source/Sources.gz) B]
Get:3 http://localhost:${APTHTTPPORT} stable/main amd64 Packages [$(stat -c %s aptarchive/dists/stable/main/binary-amd64/Packages.gz) B]
Get:4 http://localhost:${APTHTTPPORT} stable/main all Packages [$(stat -c %s aptarchive/dists/stable/main/binary-all/Packages.gz) B]
Get:5 http://localhost:${APTHTTPPORT} stable/main Translation-en [$(stat -c %s aptarchive/dists/stable/main/i18n/Translation-en.gz) B]
Reading package lists...
Building dependency tree...
All packages are up to date.
Reading package lists...
Building dependency tree...
Calculating upgrade...
The following NEW packages will be installed:
awesome
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Inst awesome (42 stable [amd64])
Conf awesome (42 stable [amd64])" \
apt $command $option awesome -s
find rootdir/var/lib/apt/lists/ -type f -delete
done
done
|