]> git.saurik.com Git - apt.git/blob - test/integration/test-bug-254770-segfault-if-cache-not-buildable
* apt-pkg/deb/deblistparser.cc:
[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 rm -f rootdir/var/cache/apt/*.bin
16 msgtest "No segfault in" "$*"
17 local TEST="$($* 2>&1 | grep -v 'E:')"
18 if [ -z "$TEST" ]; then
19 msgpass
20 else
21 echo
22 echo $TEST
23 msgfail
24 fi
25 }
26
27 echo 'quiet 2;' > rootdir/etc/apt/apt.conf.d/00be-quiet
28
29 testsegfault aptcache gencaches
30 testsegfault aptcache showpkg
31 testsegfault aptcache showsrc
32 testsegfault aptcache stats
33 testsegfault aptcache dump
34 testsegfault aptcache dumpavail
35 testsegfault aptcache unmet
36 testsegfault aptcache search
37 testsegfault aptcache show apt
38 testsegfault aptcache depends apt
39 testsegfault aptcache rdepends apt
40 testsegfault aptcache pkgnames apt
41 testsegfault aptcache dotty apt
42 testsegfault aptcache xvcg apt
43 testsegfault aptcache policy apt
44
45 testsegfault aptget update
46 testsegfault aptget upgrade
47 testsegfault aptget dselect-upgrade
48 testsegfault aptget dist-upgrade
49 testsegfault aptget install apt
50 testsegfault aptget remove apt
51 testsegfault aptget purge apt
52 testsegfault aptget source apt
53 testsegfault aptget build-dep apt
54 testsegfault aptget check
55 testsegfault aptget clean
56 testsegfault aptget autoclean
57 testsegfault aptget autoremove