| 1 | #!/usr/bin/env bash |
| 2 | . $builddir/tests/test_common.sh |
| 3 | |
| 4 | result=`mktemp` |
| 5 | |
| 6 | set -e |
| 7 | set -o pipefail |
| 8 | |
| 9 | # Sanity check - system characteristics are provided by default |
| 10 | $OSCAP oval eval --results $result $srcdir/test_without_syschars.xml |
| 11 | |
| 12 | assert_exists 1 '//system_data' |
| 13 | assert_exists 1 '//collected_objects' |
| 14 | |
| 15 | # Check --without-syschar - no system characteristics expected |
| 16 | $OSCAP oval eval --without-syschar --results $result $srcdir/test_without_syschars.xml |
| 17 | |
| 18 | assert_exists 0 '//system_data' |
| 19 | assert_exists 0 '//collected_objects' |
| 20 | |
| 21 | rm $result |
| 22 |