Debian Codegraph @

tests/API/OVAL/unittests/test_evr_string_missing_epoch.sh

raw symbols SCIP
1 #!/usr/bin/envscip-shell filesystem . . `/usr/bin/env`. bash
2 . $builddir/tests/test_common.sh
3
4 set -e -o pipefail
5
6 name=$(basenamescip-shell system . . basename. $0 .sh)
7 result=$(mktempscip-shell system . . mktemp. ${name}.out.XXXXXX)
8 echoscip-shell system . . echo. "result file: $result"
9 stderr=$(mktempscip-shell system . . mktemp. ${name}.err.XXXXXX)
10 echoscip-shell system . . echo. "stderr file: $stderr"
11
12 echoscip-shell system . . echo. "Analysing syschar content."
13 $OSCAP oval analyse --results $result $srcdir/$name.oval.xml $srcdir/$name.syschar.xml 2> $stderr
14 [scip-shell system . . `[`. -f $stderr ]; [scip-shell system . . `[`. ! -s $stderr ]; rmscip-shell system . . rm. $stderr
15 [scip-shell system . . `[`. -f $result ]
16
17 assert_exists 1 '/oval_resultsscip-shell filesystem . . `/oval_results`.'
18 assert_exists 1 '/oval_results/generatorscip-shell filesystem . . `/oval_results/generator`.'
19 assert_exists 1 '/oval_results/generator/oval:product_namescip-shell filesystem . . `/oval_results/generator/oval:product_name`.'
20 assert_exists 1 '/oval_results/generator/oval:product_name[text()="cpe:/a:open-scap:oscap"]scip-shell filesystem . . `/oval_results/generator/oval:product_name[text()="cpe:/a:open-scap:oscap"]`.'
21 assert_exists 1 '/oval_results/generator/oval:schema_versionscip-shell filesystem . . `/oval_results/generator/oval:schema_version`.'
22 assert_exists 1 '/oval_results/generator/oval:schema_version[text()="5.3"]scip-shell filesystem . . `/oval_results/generator/oval:schema_version[text()="5.3"]`.'
23 assert_exists 1 '/oval_results/generator/oval:timestampscip-shell filesystem . . `/oval_results/generator/oval:timestamp`.'
24 assert_exists 1 '/oval_results/directivesscip-shell filesystem . . `/oval_results/directives`.'
25 assert_exists 1 '/oval_results/oval_definitionsscip-shell filesystem . . `/oval_results/oval_definitions`.'
26 assert_exists 1 '/oval_results/resultsscip-shell filesystem . . `/oval_results/results`.'
27 assert_exists 1 '/oval_results/results/systemscip-shell filesystem . . `/oval_results/results/system`.'
28 assert_exists 1 '/oval_results/results/system/definitionsscip-shell filesystem . . `/oval_results/results/system/definitions`.'
29 assert_exists 1 '/oval_results/results/system/definitions/definitionscip-shell filesystem . . `/oval_results/results/system/definitions/definition`.'
30 assert_exists 1 '/oval_results/results/system/definitions/definition[@result="false"]scip-shell filesystem . . `/oval_results/results/system/definitions/definition[@result="false"]`.'
31 assert_exists 1 '/oval_results/results/system/definitions/definition/criteriascip-shell filesystem . . `/oval_results/results/system/definitions/definition/criteria`.'
32 assert_exists 1 '/oval_results/results/system/definitions/definition/criteria/criterionscip-shell filesystem . . `/oval_results/results/system/definitions/definition/criteria/criterion`.'
33 assert_exists 1 '/oval_results/results/system/definitions/definition/criteria/criterion[@result="false"]scip-shell filesystem . . `/oval_results/results/system/definitions/definition/criteria/criterion[@result="false"]`.'
34 assert_exists 1 '/oval_results/results/system/testsscip-shell filesystem . . `/oval_results/results/system/tests`.'
35 assert_exists 1 '/oval_results/results/system/tests/testscip-shell filesystem . . `/oval_results/results/system/tests/test`.'
36 assert_exists 1 '/oval_results/results/system/tests/test[@result="false"]scip-shell filesystem . . `/oval_results/results/system/tests/test[@result="false"]`.'
37 assert_exists 1 '/oval_results/results/system/tests/test/tested_itemscip-shell filesystem . . `/oval_results/results/system/tests/test/tested_item`.'
38 assert_exists 1 '/oval_results/results/system/tests/test/tested_item[@result="false"]scip-shell filesystem . . `/oval_results/results/system/tests/test/tested_item[@result="false"]`.'
39
40 rmscip-shell system . . rm. $result