File: prerequisite.sh

package info (click to toggle)
binfmtc 0.17-4
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 800 kB
  • sloc: sh: 1,116; ansic: 891; cpp: 81; makefile: 81; asm: 48; java: 5; fortran: 3
file content (15 lines) | stat: -rwxr-xr-x 460 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
# check for prerequisite status, such as binfmt_misc being enabled.
# This test failing is a sign that some of the things are missing from
# the system configuration. Further tests will have more likelihood of
# failing.

set -e 

grep "^enabled$" /proc/sys/fs/binfmt_misc/ccompile
grep "^enabled$" /proc/sys/fs/binfmt_misc/cxxcompile

# check that some essential binaries exist, and some non-trivial pieces
which sudo

# check that sudo functions.
sudo true