]> git.saurik.com Git - apt.git/blame - test/integration/test-apt-get-install-deb
ignore Acquire::GzipIndexes for cdrom sources
[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
11testequal 'E: Unable to locate package /dev/null' aptget install -qq /dev/null
12
13# and ensure we fail for invalid debs
14cat > foo.deb <<EOF
15I'm not a deb, I'm a teapot.
16EOF
17testequal 'E: Sub-process Popen returned an error code (100)
18E: Encountered a section with no Package: header
19E: Problem with MergeLister for ./foo.deb
20E: The package lists or status file could not be parsed or opened.' aptget install -qq ./foo.deb
21
22# fakeroot is currently not found, framwork needs updating
23#
24#buildsimplenativepackage 'foo' 'all' '1.0'
25#
26#testequal 'Selecting previously unselected package foo.
27#(Reading database ... 0 files and directories currently installed.)
28# Preparing to unpack .../incoming/foo_1.0_all.deb ...
29#Unpacking foo (1.0) ...
30#Setting up foo (1.0) ...' aptget install -qq ./incoming/foo_1.0_all.deb