Debian Codegraph @

tests/DS/ds_without_cpe_dict/ds_without_cpe_dict.sh

raw symbols SCIP
1 #!/usr/bin/env bash
2
3 . $builddir/tests/test_common.sh
4 set -e -o pipefail
5
6 stdout=$(mktemp)
7 stderr=$(mktemp)
8 $OSCAP xccdf eval --progress $srcdir/ds_without_cpe_dict.xml > $stdout 2> $stderr
9 [ -e $stderr ]
10 grep -q "xccdf_moc.elpmaxe.www_rule_1:pass" $stdout
11 ! grep -q "xccdf_moc.elpmaxe.www_rule_1:notapplicable" $stdout
12 ! grep -q "Can't import OVAL definition model 'cpe-oval.xml' for CPE applicability checking" $stderr
13 rm -rf $stdout $stderr