Debian Codegraph @

tests/00modules-test

raw symbols SCIP
1 #!/bin/bashscip-shell filesystem . . `/bin/bash`.
2
3 [scip-shell system . . `[`. -z "$CRYPTSETUP_PATH" ] && CRYPTSETUP_PATH=".."
4
5 pversionscip-shell shell shell-project 0.0.0 pversion().() {
6 if [scip-shell system . . `[`. ! -x $CRYPTSETUP_PATH/$1 ] ; then
7 return
8 fi
9
10 echoscip-shell system . . echo. -n "$CRYPTSETUP_PATH/"
11 $CRYPTSETUP_PATH/$1 --version
12 }
13
14 echoscip-shell system . . echo. "Cryptsetup test environment ($(datescip-shell system . . date.))"
15 unamescip-shell system . . uname. -a
16 if [scip-shell system . . `[`. "$(catscip-shell system . . cat. /proc/sys/crypto/fips_enabledscip-shell filesystem . . `/proc/sys/crypto/fips_enabled`. 2>/dev/nullscip-shell filesystem . . `/dev/null`.)" = "1" ] ; then
17 echoscip-shell system . . echo. "Kernel running in FIPS mode."
18 fi
19
20 if [scip-shell system . . `[`. -f /etc/os-releasescip-shell filesystem . . `/etc/os-release`. ] ; then
21 source /etc/os-releasescip-shell source . . `/etc/os-release`.
22 echoscip-shell system . . echo. "$PRETTY_NAME ($NAME) $VERSION"
23 fi
24
25 echoscip-shell system . . echo. "Memory"
26 freescip-shell system . . free. -m
27
28 pversionscip-shell shell shell-project 0.0.0 pversion(). cryptsetup
29 pversionscip-shell shell shell-project 0.0.0 pversion(). veritysetup
30 pversionscip-shell shell shell-project 0.0.0 pversion(). integritysetup
31
32 [scip-shell system . . `[`. -x $CRYPTSETUP_PATH/cryptsetup ] && {
33 echoscip-shell system . . echo. -e "Cryptsetup defaults:"
34 $CRYPTSETUP_PATH/cryptsetup --help | sedscip-shell system . . sed. -n '/optional key file for/,$pscip-shell filesystem . . `/optional key file for/,$p`.' | tailscip-shell system . . tail. -n +3
35 }
36
37 if [scip-shell system . . `[`. -b "$OPAL2_DEV" ]; then
38 echoscip-shell system . . echo. "OPAL test device:"
39 lsblkscip-shell system . . lsblk. "$OPAL2_DEV" -d -o NAME,TRAN,MODEL,REV,MIN-IO,PHY-SEC,LOG-SEC,DISC-ALN,DISC-GRAN,DISC-MAX,DISC-ZERO 2>/dev/nullscip-shell filesystem . . `/dev/null`.
40 fi
41
42 [scip-shell system . . `[`. $(idscip-shell system . . id. -u) != 0 ] && exit 77
43
44 modprobe dm-crypt >/dev/nullscip-shell filesystem . . `/dev/null`. 2>&1
45 modprobe dm-verity >/dev/nullscip-shell filesystem . . `/dev/null`. 2>&1
46 modprobe dm-integrity >/dev/nullscip-shell filesystem . . `/dev/null`. 2>&1
47 modprobe dm-zero >/dev/nullscip-shell filesystem . . `/dev/null`. 2>&1
48
49 dmsetup version
50
51 echoscip-shell system . . echo. "Device mapper targets:"
52 dmsetup targets
53
54 exit 0