]> git.saurik.com Git - apt.git/blame - test/integration/test-bug-254770-segfault-if-cache-not-buildable
* Implement EDSP in libapt-pkg so that all front-ends which
[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() {
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
27echo 'quiet 2;' > rootdir/etc/apt/apt.conf.d/00be-quiet
28
29testsegfault aptcache gencaches
30testsegfault aptcache showpkg
31testsegfault aptcache showsrc
32testsegfault aptcache stats
33testsegfault aptcache dump
34testsegfault aptcache dumpavail
35testsegfault aptcache unmet
36testsegfault aptcache search
37testsegfault aptcache show apt
38testsegfault aptcache depends apt
39testsegfault aptcache rdepends apt
40testsegfault aptcache pkgnames apt
41testsegfault aptcache dotty apt
42testsegfault aptcache xvcg apt
43testsegfault aptcache policy apt
44
45testsegfault aptget update
46testsegfault aptget upgrade
47testsegfault aptget dselect-upgrade
48testsegfault aptget dist-upgrade
49testsegfault aptget install apt
50testsegfault aptget remove apt
51testsegfault aptget purge apt
52testsegfault aptget source apt
53testsegfault aptget build-dep apt
54testsegfault aptget check
55testsegfault aptget clean
56testsegfault aptget autoclean
57testsegfault aptget autoremove