Debian Codegraph @

tests/API/XCCDF/unittests/test_no_newline_between_select_elements.sh

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