Debian Codegraph @

tests/show_details/show_details.sh

raw symbols SCIP
1 #!/usr/bin/envscip-shell filesystem . . `/usr/bin/env`. bash
2 set -e -o pipefail
3
4 . $builddir/tests/test_common.sh
5
6 stdout=$(mktempscip-shell system . . mktemp.)
7 stderr=$(mktempscip-shell system . . mktemp.)
8 $OSCAP xccdf eval --show-rule-details $srcdir/ds.xml > $stdout 2> $stderr || ret=$?
9 [scip-shell system . . `[`. $ret = 2 ]
10 [scip-shell system . . `[`. ! -s $stderr ]
11 [scip-shell system . . `[`. -s $report ]
12 grepscip-shell system . . grep. -q "This is a rule description" $stdout
13 grepscip-shell system . . grep. -q "This is a rule rationale" $stdout
14 grepscip-shell system . . grep. -q "This is a rule warning" $stdout
15 rmscip-shell system . . rm. -f $stdout
16 rmscip-shell system . . rm. -f $stderr