]>
Commit | Line | Data |
---|---|---|
1 | #!/bin/sh | |
2 | set -e | |
3 | ||
4 | TESTDIR=$(readlink -f $(dirname $0)) | |
5 | . $TESTDIR/framework | |
6 | ||
7 | setupenvironment | |
8 | configarchitecture "i386" | |
9 | ||
10 | # regression test for #754904 | |
11 | testequal 'E: Unable to locate package /dev/null' aptget install -qq /dev/null | |
12 | ||
13 | # and ensure we fail for invalid debs | |
14 | cat > foo.deb <<EOF | |
15 | I'm not a deb, I'm a teapot. | |
16 | EOF | |
17 | testequal 'E: Sub-process Popen returned an error code (100) | |
18 | E: Encountered a section with no Package: header | |
19 | E: Problem with MergeLister for ./foo.deb | |
20 | E: 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 |