| 1 | #!/bin/sh |
| 2 | set -e |
| 3 | |
| 4 | TESTDIR=$(readlink -f $(dirname $0)) |
| 5 | . $TESTDIR/framework |
| 6 | setupenvironment |
| 7 | configarchitecture 'amd64' |
| 8 | |
| 9 | insertinstalledpackage 'custom' 'amd64' '1.0' 'Pre-Depends: grub-pc | grub' |
| 10 | insertinstalledpackage 'grub' 'amd64' '1.0' |
| 11 | insertpackage 'unstable' 'custom' 'amd64' '2.0' 'Pre-Depends: grub-pc | grub' |
| 12 | |
| 13 | setupaptarchive |
| 14 | |
| 15 | testequal 'Reading package lists... |
| 16 | Building dependency tree... |
| 17 | Calculating upgrade... |
| 18 | The following packages will be upgraded: |
| 19 | custom |
| 20 | 1 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. |
| 21 | Inst custom [1.0] (2.0 unstable [amd64]) |
| 22 | Conf custom (2.0 unstable [amd64])' aptget dist-upgrade -s |