]> git.saurik.com Git - apt.git/blame - test/integration/test-bug-254770-segfault-if-cache-not-buildable
improve error message for apt-get source pkg:arch{=ver,/release}
[apt.git] / test / integration / test-bug-254770-segfault-if-cache-not-buildable
CommitLineData
c55b8a54
DK
1#!/bin/sh
2set -e
3
adee3bae 4TESTDIR=$(readlink -f $(dirname $0))
c55b8a54
DK
5. $TESTDIR/framework
6setupenvironment
7configarchitecture "i386"
8setupaptarchive
9
10CURRENTTRAP="chmod a+x rootdir/var/lib/dpkg; $CURRENTTRAP"
11trap "$CURRENTTRAP" 0 HUP INT QUIT ILL ABRT FPE SEGV PIPE TERM
12chmod a-x rootdir/var/lib/dpkg
13
14testsegfault() {
c55b8a54
DK
15 msgtest "No segfault in" "$*"
16 local TEST="$($* 2>&1 | grep -v 'E:')"
17 if [ -z "$TEST" ]; then
18 msgpass
19 else
20 echo
be297c7a 21 echo "$TEST"
c55b8a54
DK
22 msgfail
23 fi
24}
25
26echo 'quiet 2;' > rootdir/etc/apt/apt.conf.d/00be-quiet
27
28testsegfault aptcache gencaches
29testsegfault aptcache showpkg
30testsegfault aptcache showsrc
31testsegfault aptcache stats
32testsegfault aptcache dump
33testsegfault aptcache dumpavail
34testsegfault aptcache unmet
35testsegfault aptcache search
36testsegfault aptcache show apt
37testsegfault aptcache depends apt
38testsegfault aptcache rdepends apt
39testsegfault aptcache pkgnames apt
40testsegfault aptcache dotty apt
41testsegfault aptcache xvcg apt
42testsegfault aptcache policy apt
43
44testsegfault aptget update
45testsegfault aptget upgrade
46testsegfault aptget dselect-upgrade
47testsegfault aptget dist-upgrade
48testsegfault aptget install apt
49testsegfault aptget remove apt
50testsegfault aptget purge apt
51testsegfault aptget source apt
52testsegfault aptget build-dep apt
53testsegfault aptget check
54testsegfault aptget clean
55testsegfault aptget autoclean
56testsegfault aptget autoremove