Debian Codegraph @

tests/API/OVAL/unittests/test_cim_datetime.sh

raw symbols SCIP
1 #!/usr/bin/envscip-shell filesystem . . `/usr/bin/env`. bash
2 . $builddir/tests/test_common.sh
3
4 result=`mktempscip-shell system . . mktemp.`
5
6 set -e
7 set -o pipefail
8
9 $OSCAP oval eval --results $result $srcdir/cim_datetime.xml
10
11 assert_exists 1 '/oval_results/results/system/testsscip-shell filesystem . . `/oval_results/results/system/tests`.'
12 assert_exists 3 '/oval_results/results/system/tests/testscip-shell filesystem . . `/oval_results/results/system/tests/test`.'
13 assert_exists 3 '/oval_results/results/system/tests/test[@result="true"]scip-shell filesystem . . `/oval_results/results/system/tests/test[@result="true"]`.'
14 assert_exists 3 '/oval_results/results/system/tests/test/tested_variable[text()="3600"]scip-shell filesystem . . `/oval_results/results/system/tests/test/tested_variable[text()="3600"]`.'
15 assert_exists 3 '/oval_results/results/system/oval_system_characteristics/system_data/ind-sys:variable_itemscip-shell filesystem . . `/oval_results/results/system/oval_system_characteristics/system_data/ind-sys:variable_item`.'
16 assert_exists 3 '/oval_results/results/system/oval_system_characteristics/system_data/ind-sys:variable_item[@status="exists"]scip-shell filesystem . . `/oval_results/results/system/oval_system_characteristics/system_data/ind-sys:variable_item[@status="exists"]`.'
17 assert_exists 3 '/oval_results/results/system/oval_system_characteristics/system_data/ind-sys:variable_item/ind-sys:value[text()="3600"]scip-shell filesystem . . `/oval_results/results/system/oval_system_characteristics/system_data/ind-sys:variable_item/ind-sys:value[text()="3600"]`.'
18
19 rmscip-shell system . . rm. $result
20