Debian Codegraph @

tests/DS/ds_without_cpe_dict/ds_without_cpe_dict.sh

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