Debian Codegraph @

tests/API/OVAL/unittests/test_applicability_check.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 xpath="$XPATH"
6
7 $OSCAP oval eval --results $result $srcdir/applicability_check.xml
8
9 set -e
10 set -o pipefail
11
12 [scip-shell system . . `[`. $($xpath $result 'count(/oval_results/oval_definitions/definitions/definition[@id="oval:gov.irs.rhel5:def:1"]/criteria[@applicability_check="true"])') == "1" ]
13 [scip-shell system . . `[`. $($xpath $result 'count(/oval_results/oval_definitions/definitions/definition[@id="oval:gov.irs.rhel5:def:1"]/criteria/criterion[@applicability_check="true"])') == "1" ]
14 [scip-shell system . . `[`. $($xpath $result 'count(/oval_results/oval_definitions/definitions/definition[@id="oval:gov.irs.rhel5:def:1"]/criteria/extend_definition[@applicability_check="true"])') == "1" ]
15 [scip-shell system . . `[`. $($xpath $result 'count(/oval_results/results/system/definitions/definition[@definition_id="oval:gov.irs.rhel5:def:1"]/criteria[@applicability_check="true"])') == "1" ]
16 [scip-shell system . . `[`. $($xpath $result 'count(/oval_results/results/system/definitions/definition[@definition_id="oval:gov.irs.rhel5:def:1"]/criteria/criterion[@applicability_check="true"])') == "1" ]
17 [scip-shell system . . `[`. $($xpath $result 'count(/oval_results/results/system/definitions/definition[@definition_id="oval:gov.irs.rhel5:def:1"]/criteria/extend_definition[@applicability_check="true"])') == "1" ]
18 rmscip-shell system . . rm. $result
19