Skip to content

Commit

Permalink
Add sanity tests for compare_disa_xml.py
Browse files Browse the repository at this point in the history
  • Loading branch information
Mab879 committed Jan 6, 2023
1 parent ed0bd2c commit 078c0d4
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions tests/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -260,3 +260,10 @@ if (PYTHON_VERSION_MAJOR GREATER 2 AND SSG_PRODUCT_RHEL7)
ssg_refcheck_test("rhel7" "cis_server_l1" "cis")
ssg_refcheck_test("rhel7" "cis" "cis")
endif()

if (PYTHON_VERSION_MAJOR GREATER 2)
add_test(
NAME "test-compare-disa-xml"
COMMAND env "PYTHONPATH=$ENV{PYTHONPATH}" "${PYTHON_EXECUTABLE}" "${CMAKE_SOURCE_DIR}/utils/compare_disa_xml.py" "${CMAKE_SOURCE_DIR}/shared/references/disa-stig-rhel8-v1r8-xccdf-manual.xml" "${CMAKE_SOURCE_DIR}/tests/data/utils/disa-stig-rhel8-v1r6-xccdf-manual.xml"
)
endif()

0 comments on commit 078c0d4

Please sign in to comment.