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