| 1 | #!/usr/bin/env bash |
| 2 | |
| 3 | # Author: |
| 4 | # Peter Vrabec, <[email protected]> |
| 5 | # Daniel Kopecek <[email protected]> |
| 6 | |
| 7 | |
| 8 | . $builddir/tests/test_common.sh |
| 9 | . $srcdir/test_mitre_common.sh |
| 10 | |
| 11 | # Test Cases. |
| 12 | test_init |
| 13 | |
| 14 | test_run "ind-def_unknown_test.xml" test_mitre ind-def_unknown_test.xml "unknown" |
| 15 | test_run "ind-def_variable_test.xml" test_mitre ind-def_variable_test.xml "true" |
| 16 | test_run "ind-def_environmentvariable_test.xml" test_mitre ind-def_environmentvariable_test.xml "true" |
| 17 | test_run "ind-def_environmentvariable58_test.xml" test_mitre ind-def_environmentvariable_test.xml "true" |
| 18 | test_run "ind-def_family_test.xml" test_mitre ind-def_family_test.xml "true" |
| 19 | test_run "ind-def_textfilecontent54_test.xml" test_mitre ind-def_textfilecontent54_test.xml "true" |
| 20 | test_run "ind-def_textfilecontent_test.xml" test_mitre ind-def_textfilecontent_test.xml "true" |
| 21 | test_run "ind-def_xmlfilecontent_test.xml" test_mitre ind-def_xmlfilecontent_test.xml "true" |
| 22 | test_run "ind-def_filehash58_test.xml" test_mitre ind-def_filehash58_test.xml "true" |
| 23 | |
| 24 | # does not work because of symplink `/etc/rc' -> `/etc/rc.d/rc' (oval:org.mitre.oval.test:tst:102) |
| 25 | #test_run "ind-def_filehash_test.xml" test_mitre ind-def_filehash_test.xml "true" |
| 26 | |
| 27 | # Unsupported objects on Fedora |
| 28 | #test_run "ind-def_ldap_test.xml" test_mitre ind-def_ldap_test.xml "unknown" |
| 29 | #test_run "ind-def_sql_test.xml" test_mitre ind-def_sql_test.xml "unknown" |
| 30 | |
| 31 | test_exit cleanup_mitre |