Debian Codegraph @

tests/probes/process58/capability.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 echoscip-shell system . . echo. "Eval:"
15 $OSCAP oval eval --results $result $srcdir/$name.oval.xml 2> $stderr
16 [scip-shell system . . `[`. ! -s $stderr ]
17
18 rmscip-shell system . . rm. $stderr
19
20 [scip-shell system . . `[`. -s $result ]
21 assert_exists 1 '/oval_results/results/system/definitions/definition[@result="true"]scip-shell filesystem . . `/oval_results/results/system/definitions/definition[@result="true"]`.'
22 assert_exists 1 '/oval_results/results/system/oval_system_characteristics/collected_objects/object[@flag="complete"]scip-shell filesystem . . `/oval_results/results/system/oval_system_characteristics/collected_objects/object[@flag="complete"]`.'
23 assert_exists 1 '/oval_results/results/system/oval_system_characteristics/system_data/unix-sys:process58_itemscip-shell filesystem . . `/oval_results/results/system/oval_system_characteristics/system_data/unix-sys:process58_item`.'
24 assert_exists 1 '/oval_results/results/system/oval_system_characteristics/system_data/unix-sys:process58_item/unix-sys:pid[text()="1"]scip-shell filesystem . . `/oval_results/results/system/oval_system_characteristics/system_data/unix-sys:process58_item/unix-sys:pid[text()="1"]`.'
25
26 rmscip-shell system . . rm. $result