Debian Codegraph @

debian/tests/gui

raw
1 #!/bin/sh -efur
2
3 allpkg=$(dh_listpackages)
4
5 for p in $allpkg; do
6 echo -n "Package $p: "
7 allbinaries=$(dpkg -L "$p"| grep "/usr/bin/")
8 if [ -z "$allbinaries" ]; then
9 echo "nothing to do"
10 continue
11 fi
12 echo ''
13 for f in $allbinaries; do
14 timeout --preserve-status 5s "$f"
15 ec=$?
16 echo -n " -testing $f: exit($ec) "
17 if [ $ec -eq 0 ]; then
18 echo "ok"
19 elif [ $ec -eq 2 ]; then
20 echo "trapped (wrong args) This is not an error"
21 elif [ $ec -eq 143 ]; then
22 echo "trapped (SIGTERM) This is not an error"
23 else
24 echo "FAILED !!!"
25 fi
26 done
27 done