Debian Codegraph @

tests/API/OVAL/unittests/test_item_not_exist.sh

raw symbols SCIP
1 #!/usr/bin/env bash
2 . $builddir/tests/test_common.sh
3
4 result=`mktemp`
5 xpath="$XPATH"
6
7 set -e
8 set -o pipefail
9
10 $OSCAP oval eval --results $result $srcdir/item_not_exist.xml
11
12
13 [ $($xpath $result 'count(/oval_results/results/system/oval_system_characteristics/collected_objects/object[@id="oval:org.mitre.oval.test:obj:512"][@flag="does not exist"])') == "1" ]
14 [ $($xpath $result 'count(/oval_results/results/system/oval_system_characteristics/system_data)') == "0" ]
15 rm $result
16