File: gui

package info (click to toggle)
python-mrcfile 1.5.4-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 63,824 kB
  • sloc: python: 3,871; sh: 28; makefile: 16
file content (27 lines) | stat: -rw-r--r-- 582 bytes parent folder | download
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
#!/bin/sh -efur

allpkg=$(dh_listpackages)

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
	    echo "FAILED !!!"
	fi
    done
done