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
|
#!/bin/sh -e
if [ "$1" = local ]; then
export PYTHONPATH=.
export APPORT_CRASHDB_CONF=./etc/apport/crashdb.conf
basedir=.
local=1
if [ ! -e apport/packaging_impl.py ]; then
echo "You need to copy an appropriate packaging implementation from backends/ to apport/packaging_impl.py" >&2
exit 1
fi
else
basedir="/usr/lib/python2.5/site-packages"
unset local
fi
mydir=`dirname "$0"`
set -x
python -tt $basedir/problem_report.py -v
python -tt $basedir/apport/fileutils.py -v
python -tt $basedir/apport/report.py -v
python -tt $basedir/apport_python_hook.py -v
python -tt $basedir/apport/ui.py -v
python -tt $basedir/apport/REThread.py -v
python -tt $basedir/apport/chroot.py -v
python -tt $basedir/apport/crashdb_impl/memory.py -v
if [ "$local" ]; then
python -tt backends/packaging-apt-dpkg.py -v
else
python -tt $basedir/apport/packaging_impl.py -v
fi
if [ "$local" ]; then
$mydir/test-hooks -l
else
$mydir/test-hooks
fi
if [ "$local" ]; then
$mydir/test-crash-digger
fi
if [ "`dd if=/proc/sys/kernel/core_pattern count=1 bs=1 2>/dev/null`" = "|" ]; then
$mydir/test-apport kernel
else
if [ "$local" ]; then
$mydir/test-apport lib
else
echo 'apport is not enabled; run "sudo /etc/init.d/apport start" to do so' >&2
exit 1
fi
fi
|