File: gui

package info (click to toggle)
vitables 3.1.0-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 17,044 kB
  • sloc: python: 9,695; makefile: 214; sh: 90
file content (53 lines) | stat: -rwxr-xr-x 995 bytes parent folder | download | duplicates (7)
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
#!/bin/sh

# silent matplotlib
export MPLCONFIGDIR=${AUTOPKGTEST_TMP}

# silent qt
mkdir -p ${AUTOPKGTEST_TMP}/run
chmod 700 ${AUTOPKGTEST_TMP}/run
export XDG_RUNTIME_DIR=${AUTOPKGTEST_TMP}/run

# export a writable home for pymca fit directory
export HOME=${AUTOPKGTEST_TMP}

# silent numexpr from pyfai
export NUMEXPR_MAX_THREADS=8

glxinfo

allpkg=$(dh_listpackages)

abort=0

for p in $allpkg; do
    echo -n "Package $p: "
    allbinaries=$(dpkg -L "$p"| grep "/usr/bin/")
    if [ -z "$allbinaries" ]; then
	echo "nothing to do"
	continue
    fi
    echo ''
    for f in $allbinaries; do
	timeout --preserve-status 5s "$f"
	ec=$?
	echo -n "  -testing $f: exit($ec) "
	if [ $ec -eq 0 ]; then
	    echo "ok"
	elif [ $ec -eq 2 ]; then
	    echo "trapped (wrong args) This is not an error"
	elif [ $ec -eq 143 ]; then
	    echo "trapped (SIGTERM) This is not an error"
	else
            abort=1
	    echo "FAILED !!!"
	fi
    done
done


if [ $abort -eq 1 ]; then
    exit 1
else
    exit 0
fi