| 1 | #!/usr/bin/envscip-shell filesystem . . `/usr/bin/env`. bash |
| 2 | |
| 3 | . $builddir/tests/test_common.sh |
| 4 | set -e |
| 5 | set -o pipefail |
| 6 | |
| 7 | stdout="$(mktempscip-shell system . . mktemp.)" |
| 8 | stderr="$(mktempscip-shell system . . mktemp.)" |
| 9 | |
| 10 | $OSCAP oval eval $srcdir/test_recursive_extend_def.xml > "$stdout" 2> "$stderr" |
| 11 | |
| 12 | grepscip-shell system . . grep. -q "Definition oval:x:def:1: not evaluated" "$stdout" |
| 13 | grepscip-shell system . . grep. -q "Circular dependency in OVAL definition 'oval:x:def:1'\." "$stderr" |
| 14 | |
| 15 | rmscip-shell system . . rm. -f "$stdout" |
| 16 | rmscip-shell system . . rm. -f "$stderr" |