| 1 |
add_oscap_test_executable(test_oscap_common |
| 2 |
"test_oscap_common.c" |
| 3 |
${CMAKE_SOURCE_DIR}/src/common/util.c |
| 4 |
${CMAKE_SOURCE_DIR}/src/common/list.c |
| 5 |
${CMAKE_SOURCE_DIR}/src/common/error.c |
| 6 |
${CMAKE_SOURCE_DIR}/src/common/err_queue.c |
| 7 |
${CMAKE_SOURCE_DIR}/src/common/oscap_pcre.c |
| 8 |
) |
| 9 |
|
| 10 |
add_oscap_test_executable(test_xccdf_overrides |
| 11 |
"test_xccdf_overrides.c" |
| 12 |
) |
| 13 |
|
| 14 |
add_oscap_test_executable(test_xccdf_shall_pass |
| 15 |
test_xccdf_shall_pass.c |
| 16 |
unit_helper.c |
| 17 |
) |
| 18 |
target_link_libraries(test_xccdf_shall_pass openscap ${LIBXML2_LIBRARIES} ${LIBXSLT_LIBRARIES} ${LIBXSLT_EXSLT_LIBRARIES} ${PCRE2_LIBRARIES} ${CURL_LIBRARIES} ${RPM_LIBRARIES}) |
| 19 |
|
| 20 |
if(PYTHONINTERP_FOUND) |
| 21 |
add_oscap_test("all_python.sh") |
| 22 |
endif() |
| 23 |
|
| 24 |
add_oscap_test("test_ansible_yaml_block_scalar.sh") |
| 25 |
add_oscap_test("test_xccdf_shall_pass1.sh") |
| 26 |
add_oscap_test("test_xccdf_shall_pass2.sh") |
| 27 |
add_oscap_test("test_xccdf_shall_pass3.sh") |
| 28 |
add_oscap_test("test_oscap_common.sh") |
| 29 |
add_oscap_test("test_xccdf_overrides.sh") |
| 30 |
add_oscap_test("test_xccdf_role_unscored.sh") |
| 31 |
add_oscap_test("test_remediate_unresolved.sh") |
| 32 |
add_oscap_test("test_empty_variable.sh") |
| 33 |
add_oscap_test("test_fix_instance.sh") |
| 34 |
add_oscap_test("test_xccdf_xml_escaping_value.sh") |
| 35 |
add_oscap_test("test_xccdf_check_negate.sh") |
| 36 |
add_oscap_test("test_xccdf_check_multi_check.sh") |
| 37 |
add_oscap_test("test_xccdf_check_multi_check2.sh") |
| 38 |
add_oscap_test("test_xccdf_check_multi_check_zero_definitions.sh") |
| 39 |
add_oscap_test("test_xccdf_check_ocil.sh") |
| 40 |
add_oscap_test("test_xccdf_check_content_ref_without_name_attr.sh") |
| 41 |
add_oscap_test("test_xccdf_check_without_content_refs.sh") |
| 42 |
add_oscap_test("test_xccdf_refine_rule.sh") |
| 43 |
add_oscap_test("test_xccdf_refine_rule_refine.sh") |
| 44 |
add_oscap_test("test_xccdf_fix_attr_export.sh") |
| 45 |
add_oscap_test("test_xccdf_complex_check_and_notchecked.sh") |
| 46 |
add_oscap_test("test_xccdf_check_processing_complex_priority.sh") |
| 47 |
add_oscap_test("test_xccdf_check_processing_selector_bad.sh") |
| 48 |
add_oscap_test("test_xccdf_check_processing_selector_empty.sh") |
| 49 |
add_oscap_test("test_xccdf_check_processing_invalid_content_refs.sh") |
| 50 |
add_oscap_test("test_xccdf_notchecked_has_check.sh") |
| 51 |
add_oscap_test("test_xccdf_role_unchecked.sh") |
| 52 |
add_oscap_test("test_xccdf_oval_absolute_path.sh") |
| 53 |
add_oscap_test("test_xccdf_oval_relative_path.sh") |
| 54 |
add_oscap_test("test_xccdf_selectors_cluster1.sh") |
| 55 |
add_oscap_test("test_xccdf_selectors_cluster2.sh") |
| 56 |
add_oscap_test("test_xccdf_selectors_cluster3.sh") |
| 57 |
add_oscap_test("test_deriving_xccdf_result_from_oval.sh") |
| 58 |
add_oscap_test("test_deriving_xccdf_result_from_oval2.sh") |
| 59 |
add_oscap_test("test_oval_without_definition.sh") |
| 60 |
add_oscap_test("test_deriving_xccdf_result_from_oval_multicheck.sh") |
| 61 |
add_oscap_test("test_multiple_oval_files_with_same_basename.sh") |
| 62 |
add_oscap_test("test_xccdf_check_unsupported_check_system.sh") |
| 63 |
add_oscap_test("test_xccdf_multiple_testresults.sh") |
| 64 |
add_oscap_test("test_default_selector.sh") |
| 65 |
add_oscap_test("test_inherit_selector.sh") |
| 66 |
add_oscap_test("test_xccdf_refine_value_bad.sh") |
| 67 |
add_oscap_test("test_xccdf_resolve.sh") |
| 68 |
add_oscap_test("test_xccdf_resolve_profile_platform.sh") |
| 69 |
add_oscap_test("test_xccdf_results_arf_no_oval.sh") |
| 70 |
add_oscap_test("test_xccdf_results_arf_asset.sh") |
| 71 |
add_oscap_test("test_xccdf_sub_title.sh") |
| 72 |
add_oscap_test("test_xccdf_test_system.sh") |
| 73 |
add_oscap_test("test_profile_selection_by_suffix.sh") |
| 74 |
add_oscap_test("test_unfinished.sh") |
| 75 |
add_oscap_test("test_xccdf_transformation.sh") |
| 76 |
add_oscap_test("test_single_rule.sh") |
| 77 |
add_oscap_test("test_single_rule_stigw.sh") |
| 78 |
add_oscap_test("test_remediation_simple.sh") |
| 79 |
add_oscap_test("test_remediation_offline.sh") |
| 80 |
add_oscap_test("test_remediation_kickstart.sh") |
| 81 |
add_oscap_test("test_remediation_kickstart_raw.sh") |
| 82 |
add_oscap_test("test_remediation_metadata.sh") |
| 83 |
add_oscap_test("test_remediation_blueprint.sh") |
| 84 |
add_oscap_test("test_remediation_bad_fix.sh") |
| 85 |
add_oscap_test("test_remediation_subs_plain_text.sh") |
| 86 |
add_oscap_test("test_remediation_subs_plain_text_empty.sh") |
| 87 |
add_oscap_test("test_remediation_subs_value_refine_value.sh") |
| 88 |
add_oscap_test("test_remediation_subs_value_take_first.sh") |
| 89 |
add_oscap_test("test_remediation_subs_value_without_selector.sh") |
| 90 |
add_oscap_test("test_remediation_subs_value_title.sh") |
| 91 |
add_oscap_test("test_remediation_amp_escaping.sh") |
| 92 |
add_oscap_test("test_remediation_xml_comments.sh") |
| 93 |
add_oscap_test("test_remediation_cdata.sh") |
| 94 |
add_oscap_test("test_remediation_subs_unresolved.sh") |
| 95 |
add_oscap_test("test_remediation_fix_without_system.sh") |
| 96 |
add_oscap_test("test_remediation_invalid_characters.sh") |
| 97 |
add_oscap_test("test_remediation_environment.sh") |
| 98 |
add_oscap_test("test_remediate_simple.sh") |
| 99 |
add_oscap_test("test_remediate_perl.sh") |
| 100 |
add_oscap_test("test_report_check_with_empty_selector.sh") |
| 101 |
add_oscap_test("test_report_without_xsl_fails_gracefully.sh") |
| 102 |
add_oscap_test("test_report_without_oval_poses_no_errors.sh") |
| 103 |
add_oscap_test("test_report_anaconda_fixes.sh") |
| 104 |
add_oscap_test("test_report_anaconda_fixes_ds.sh") |
| 105 |
add_oscap_test("test_fix_filtering.sh") |
| 106 |
add_oscap_test("test_fix_script_header.sh") |
| 107 |
add_oscap_test("test_fix_arf.sh") |
| 108 |
add_oscap_test("test_fix_resultid_by_suffix.sh") |
| 109 |
add_oscap_test("test_generate_fix_ansible_vars.sh") |
| 110 |
add_oscap_test("test_xccdf_requires_conflicts.sh") |
| 111 |
add_oscap_test("test_results_hostname.sh") |
| 112 |
add_oscap_test("test_skip_rule.sh") |
| 113 |
add_oscap_test("test_no_newline_between_select_elements.sh") |
| 114 |
add_oscap_test("test_single_line_tailoring.sh") |
| 115 |
add_oscap_test("test_reference.sh") |
| 116 |
add_oscap_test("test_remediation_bootc.sh") |
| 117 |
add_oscap_test("openscap_2289_regression.sh") |