| 1 | #!/usr/bin/env bash |
| 2 | . $builddir/tests/test_common.sh |
| 3 | |
| 4 | result=`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/tests' |
| 12 | assert_exists 3 '/oval_results/results/system/tests/test' |
| 13 | assert_exists 3 '/oval_results/results/system/tests/test[@result="true"]' |
| 14 | assert_exists 3 '/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_item' |
| 16 | assert_exists 3 '/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"]' |
| 18 | |
| 19 | rm $result |
| 20 |