~brian-murray/ubuntu/oneiric/apport/ubiquity-and-overrides

« back to all changes in this revision

Viewing changes to test/run

  • Committer: Martin Pitt
  • Date: 2011-06-20 09:53:27 UTC
  • mfrom: (1369.34.121 trunk)
  • Revision ID: martin.pitt@canonical.com-20110620095327-p2b972x1old8oa88
new upstream release 1.21.1

Show diffs side-by-side

added added

removed removed

Lines of Context:
16
16
    export PYTHONPATH=.
17
17
    export APPORT_CRASHDB_CONF=./etc/apport/crashdb.conf
18
18
    export APPORT_DATA_DIR=./data
19
 
    basedir=.
20
19
    local=1
21
20
 
22
21
    if [ ! -e apport/packaging_impl.py ]; then
24
23
        exit 1
25
24
    fi
26
25
else
27
 
    basedir=`python -c 'import os.path; import problem_report; print os.path.dirname(problem_report.__file__)'`
28
26
    unset local
29
27
fi
30
28
 
31
29
mydir=`dirname "$0"`
32
30
 
33
 
set -x
34
 
python -tt $basedir/problem_report.py -v
35
 
python -tt $basedir/apport/fileutils.py -v
36
 
python -tt $basedir/apport/report.py -v
37
 
python -tt $basedir/apport/hookutils.py -v
38
 
python -tt $basedir/apport_python_hook.py -v
39
 
python -tt $basedir/apport/ui.py -v
40
 
python -tt $basedir/apport/REThread.py -v
41
 
python -tt $basedir/apport/chroot.py -v
42
 
python -tt $basedir/apport/crashdb_impl/memory.py -v
43
 
python -tt $basedir/apport/packaging_impl.py -v
 
31
modules="problem_report
 
32
apport/fileutils
 
33
apport/report
 
34
apport/hookutils 
 
35
apport_python_hook
 
36
apport/ui
 
37
apport/REThread
 
38
apport/chroot
 
39
apport/crashdb_impl/memory
 
40
apport/packaging_impl
 
41
"
 
42
 
 
43
for m in $modules; do
 
44
    echo "--- Testing $m ---"
 
45
    if [ -n "$local" ]; then
 
46
        python -tt ./${m}.py -v
 
47
    else
 
48
        python -tt -m $m -v
 
49
    fi
 
50
done
44
51
 
45
52
if [ "$local" ]; then
46
53
    $mydir/hooks -l