| 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 | result=`mktempscip-shell system . . mktemp.` |
| 8 | stderr=`mktempscip-shell system . . mktemp.` |
| 9 | |
| 10 | $OSCAP xccdf eval --results $result $srcdir/test_xccdf_xml_escaping_value.xccdf.xml 2> $stderr |
| 11 | echoscip-shell system . . echo. "Stderr file = $stderr" |
| 12 | [scip-shell system . . `[`. -f $stderr ]; [scip-shell system . . `[`. ! -s $stderr ]; rmscip-shell system . . rm. $stderr |
| 13 | |
| 14 | echoscip-shell system . . echo. "Result file = $result" |
| 15 | grepscip-shell system . . grep. '<value selector="dod_short">I have read & consent to terms in IS user agreement.</value>' $result |
| 16 | rmscip-shell system . . rm. $result |