]> git.saurik.com Git - apt.git/blame - test/integration/test-apt-get-install-deb
just-in-time creation for (explicit) negative deps
[apt.git] / test / integration / test-apt-get-install-deb
CommitLineData
9c3e15ab
MV
1#!/bin/sh
2set -e
3
4TESTDIR=$(readlink -f $(dirname $0))
5. $TESTDIR/framework
6
7setupenvironment
8configarchitecture "i386"
9
10# regression test for #754904
25b86db1 11testfailureequal 'E: Unable to locate package /dev/null' aptget install -qq /dev/null
9c3e15ab
MV
12
13# and ensure we fail for invalid debs
14cat > foo.deb <<EOF
15I'm not a deb, I'm a teapot.
16EOF
d61960d9
DK
17testfailure aptget install ./foo.deb
18testsuccess grep '^E: Sub-process Popen returned an error code' rootdir/tmp/testfailure.output
19testequal 'E: Encountered a section with no Package: header
9c3e15ab 20E: Problem with MergeLister for ./foo.deb
d61960d9 21E: The package lists or status file could not be parsed or opened.' tail -n 3 rootdir/tmp/testfailure.output
9c3e15ab
MV
22
23# fakeroot is currently not found, framwork needs updating
d61960d9
DK
24buildsimplenativepackage 'foo' 'all' '1.0'
25testdpkgnotinstalled 'foo'
26testsuccess aptget install ./incoming/foo_1.0_all.deb
27testdpkginstalled 'foo'