summaryrefslogtreecommitdiff
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authorskal <pascal.massimino@gmail.com>2026-02-07 17:35:53 +0100
committerskal <pascal.massimino@gmail.com>2026-02-07 17:35:53 +0100
commit28a12a7a7f367e8f2a309f7ebb297bab94d610c7 (patch)
tree65950fa6df7b5a6412d5dbe52645ca2324d0da0c /CMakeLists.txt
parent9583dcc3d7b84e77a8a4d658c737ccba2a250373 (diff)
test: Add HTML Gantt chart output test for seq_compiler
- Created test_gantt_html.sh: bash script that verifies HTML/SVG output - Checks for: HTML structure, title, h1 heading, SVG elements, rectangles, text labels - Added GanttHtmlOutputTest to CMake test suite - Reuses test_gantt.seq from previous test All 30 tests pass (was 29).
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt9
1 files changed, 9 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 12f3bd5..f2ab936 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -586,6 +586,15 @@ if(DEMO_BUILD_TESTS)
${CMAKE_CURRENT_SOURCE_DIR}/assets/test_gantt.seq
${CMAKE_CURRENT_BINARY_DIR}/test_gantt_output.txt
)
+
+ # HTML Gantt chart output test
+ add_test(
+ NAME GanttHtmlOutputTest
+ COMMAND ${CMAKE_CURRENT_SOURCE_DIR}/scripts/test_gantt_html.sh
+ $<TARGET_FILE:seq_compiler>
+ ${CMAKE_CURRENT_SOURCE_DIR}/assets/test_gantt.seq
+ ${CMAKE_CURRENT_BINARY_DIR}/test_gantt_output.html
+ )
endif()
#-- - Extra Tools -- -