Debian Codegraph @

debian/tests/gui

raw
1 #!/bin/sh -efu
2
3 export HOME=${AUTOPKGTEST_TMP}
4
5 allpkg=$(dh_listpackages)
6
7 for p in $allpkg; do
8 echo "Package being processed: $p"
9
10
11 allbinaries=$(dpkg -L "$p"| grep "/usr/bin/")
12 if [ -z "$allbinaries" ]; then
13 echo "No binaries were found in this package"
14 continue
15 fi
16 echo "Binaries of the package $p :"
17 echo "$allbinaries"
18 for f in $allbinaries; do
19 timeout 5s "$f"
20 ec=$?
21 echo "tested $f: $ec"
22 if [ $ec -eq 143 ]; then
23 echo "trapped status 143 and return success for $f"
24 elif [ $ec -eq 2 ]; then
25 echo "Skipped exit code 2 for $f"
26 else
27 echo "skipped"
28 fi
29 done
30 done
31
32 exit 0
33