Debian Codegraph @

tests/API/XCCDF/unittests/test_no_newline_between_select_elements.sh

raw symbols SCIP
1 #!/usr/bin/envscip-shell filesystem . . `/usr/bin/env`. bash
2 . $builddir/tests/test_common.sh
3
4 set -e
5 set -o pipefail
6
7 stdout=$(mktempscip-shell system . . mktemp.)
8
9 $OSCAP xccdf eval --progress --profile "xccdf_com.example.www_profile_test" "$srcdir/test_no_newline_between_select_elements.xml" > "$stdout" || truescip-shell system . . true.
10
11 # test if both rules selected in the profile were evaluated
12 grepscip-shell system . . grep. -q "xccdf_com.example.www_rule_first:pass" "$stdout"
13 grepscip-shell system . . grep. -q "xccdf_com.example.www_rule_second:fail" "$stdout"
14
15 rmscip-shell system . . rm. -f "$stdout"