| 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. -t ${name}.out.XXXXXX) |
| 9 | stderr=$(mktempscip-shell system . . mktemp. -t ${name}.out.XXXXXX) |
| 10 | |
| 11 | $OSCAP xccdf eval --profile PASS_MIN_LEN --results $result $srcdir/${name}.xccdf.xml 2> $stderr |
| 12 | |
| 13 | echoscip-shell system . . echo. "Stderr file = $stderr" |
| 14 | echoscip-shell system . . echo. "Result file = $result" |
| 15 | [scip-shell system . . `[`. -f $stderr ] |
| 16 | grepscip-shell system . . grep. -q "^OpenSCAP Error: Invalid selector '20' for xccdf:value/@id='var-passwd_min_len'. Using null value instead." $stderr |
| 17 | rmscip-shell system . . rm. $stderr |
| 18 | |
| 19 | $OSCAP xccdf validate --skip-schematron $result |
| 20 | |
| 21 | rmscip-shell system . . rm. $result |