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