Debian Codegraph @

tests/utils/test_verbose_options.sh

raw symbols SCIP
1 #!/usr/bin/envscip-shell filesystem . . `/usr/bin/env`. bash
2
3 . $builddir/tests/test_common.sh
4
5 set -e -o pipefail
6
7 xccdf="$srcdir/test_utils_args_xccdf_profile.xml"
8 stderr=$(mktempscip-shell system . . mktemp.)
9 results=$(mktempscip-shell system . . mktemp.)
10 verblofile=$(mktempscip-shell system . . mktemp.)
11
12 $OSCAP info --verbose INFO --profiles "$xccdf" >/dev/nullscip-shell filesystem . . `/dev/null`. 2> "$stderr"
13 grepscip-shell system . . grep. -q "I: oscap: Identified document type: Benchmark" "$stderr"
14 $OSCAP info --profiles --verbose INFO "$xccdf" >/dev/nullscip-shell filesystem . . `/dev/null`. 2> "$stderr"
15 grepscip-shell system . . grep. -q "I: oscap: Identified document type: Benchmark" "$stderr"
16 $OSCAP xccdf eval --verbose INFO --profile default --results "$results" "$xccdf" >/dev/nullscip-shell filesystem . . `/dev/null`. 2> "$stderr"
17 grepscip-shell system . . grep. -q "I: oscap: Identified document type: Benchmark" "$stderr"
18 $OSCAP xccdf eval --profile default --verbose INFO --results "$results" "$xccdf" >/dev/nullscip-shell filesystem . . `/dev/null`. 2> "$stderr"
19 grepscip-shell system . . grep. -q "I: oscap: Identified document type: Benchmark" "$stderr"
20 $OSCAP xccdf eval --profile default --results "$results" --verbose INFO "$xccdf" >/dev/nullscip-shell filesystem . . `/dev/null`. 2> "$stderr"
21 grepscip-shell system . . grep. -q "I: oscap: Identified document type: Benchmark" "$stderr"
22 $OSCAP xccdf eval --verbose INFO --verbose-log-file "$verblofile" --profile default --results "$results" "$xccdf" >/dev/nullscip-shell filesystem . . `/dev/null`. 2>/dev/nullscip-shell filesystem . . `/dev/null`.
23 grepscip-shell system . . grep. -q "I: oscap: Identified document type: Benchmark" "$verblofile"
24 $OSCAP xccdf eval --profile default --verbose INFO --verbose-log-file "$verblofile" --results "$results" "$xccdf" >/dev/nullscip-shell filesystem . . `/dev/null`. 2>/dev/nullscip-shell filesystem . . `/dev/null`.
25 grepscip-shell system . . grep. -q "I: oscap: Identified document type: Benchmark" "$verblofile"
26 $OSCAP xccdf eval --profile default --results "$results" --verbose INFO --verbose-log-file "$verblofile" "$xccdf" >/dev/nullscip-shell filesystem . . `/dev/null`. 2>/dev/nullscip-shell filesystem . . `/dev/null`.
27 grepscip-shell system . . grep. -q "I: oscap: Identified document type: Benchmark" "$verblofile"
28 $OSCAP xccdf eval --verbose INFO --profile default --results "$results" --verbose-log-file "$verblofile" "$xccdf" >/dev/nullscip-shell filesystem . . `/dev/null`. 2>/dev/nullscip-shell filesystem . . `/dev/null`.
29 grepscip-shell system . . grep. -q "I: oscap: Identified document type: Benchmark" "$verblofile"
30 $OSCAP xccdf eval --verbose-log-file "$verblofile" --profile default --verbose INFO --results "$results" "$xccdf" >/dev/nullscip-shell filesystem . . `/dev/null`. 2>/dev/nullscip-shell filesystem . . `/dev/null`.
31 grepscip-shell system . . grep. -q "I: oscap: Identified document type: Benchmark" "$verblofile"
32 $OSCAP xccdf eval --verbose INFO --profile default --results "$results" --verbose-log-file "$verblofile" "$xccdf" >/dev/nullscip-shell filesystem . . `/dev/null`. 2>/dev/nullscip-shell filesystem . . `/dev/null`.
33 grepscip-shell system . . grep. -q "I: oscap: Identified document type: Benchmark" "$verblofile"
34
35 rmscip-shell system . . rm. -f "$results" "$stderr" "$verblofile"