| 1 | #!/usr/bin/env bash |
| 2 | |
| 3 | # Copyright 2015 Red Hat Inc., Durham, North Carolina. |
| 4 | # All Rights Reserved. |
| 5 | |
| 6 | set -e -o pipefail |
| 7 | |
| 8 | . $builddir/tests/test_common.sh |
| 9 | |
| 10 | function test_cpe() { |
| 11 | $OSCAP oval validate ${top_srcdir}/cpe/openscap-cpe-oval.xml |
| 12 | $OSCAP cpe validate ${top_srcdir}/cpe/openscap-cpe-dict.xml |
| 13 | } |
| 14 | |
| 15 | test_init "test_cpe.log" |
| 16 | |
| 17 | test_run "Check validity of cpe/openscap-cpe-oval.xml" test_cpe |
| 18 | test_exit |