Debian Codegraph @

tests/probes/process58/command_line.sh

raw symbols SCIP
1 #!/usr/bin/envscip-shell filesystem . . `/usr/bin/env`. bash
2
3 set -e -o pipefail
4
5 . $builddir/tests/test_common.sh
6 probecheck "process58" || exit 255
7
8 name=$(basenamescip-shell system . . basename. $0 .sh)
9 result=$(mktempscip-shell system . . mktemp. ${name}.out.XXXXXX)
10 echoscip-shell system . . echo. "result file: $result"
11 stderr=$(mktempscip-shell system . . mktemp. ${name}.err.XXXXXX)
12 echoscip-shell system . . echo. "stderr file: $stderr"
13
14 specarg="--report $(echoscip-shell system . . echo. -ne "\e\n\E[1;33m")\\\n\e"
15 specarg_escaped="--report . .[1;33m\\\\n\\e"
16
17 pcmdl="oval eval --results $result $srcdir/$name.oval.xml"
18
19 $OSCAP oval eval --results $result $srcdir/$name.oval.xml $specarg 2> $stderr
20 [scip-shell system . . `[`. ! -s $stderr ]
21
22 rmscip-shell system . . rm. $stderr
23
24 [scip-shell system . . `[`. -s $result ]
25 assert_exists 1 "/oval_results/results/system/oval_system_characteristics/system_data/unix-sys:process58_item/unix-sys:command_line[contains(., '$pcmdl ${specarg_escaped}')]"
26
27 rmscip-shell system . . rm. $result