| 1 | #!/usr/bin/envscip-shell filesystem . . `/usr/bin/env`. bash |
| 2 | . $builddir/tests/test_common.sh |
| 3 | |
| 4 | set -e |
| 5 | set -o pipefail |
| 6 | |
| 7 | name=$(basenamescip-shell system . . basename. $0 .sh) |
| 8 | result=$(mktempscip-shell system . . mktemp.) |
| 9 | stderr=$(mktempscip-shell system . . mktemp.) |
| 10 | |
| 11 | echoscip-shell system . . echo. "Result file = $result" |
| 12 | echoscip-shell system . . echo. "Stderr file = $stderr" |
| 13 | |
| 14 | $OSCAP xccdf generate fix --fix-type bootc --profile common "$srcdir/test_remediation_bootc.ds.xml" > "$result" 2> "$stderr" |
| 15 | [scip-shell system . . `[`. -e $stderr ] |
| 16 | |
| 17 | diffscip-shell system . . diff. -u "$srcdir/test_remediation_bootc_expected_output.sh" "$result" |
| 18 | |
| 19 | rmscip-shell system . . rm. -rf "$stdout" "$stderr" "$result" |