diff options
author | Cristian Le <[email protected]> | 2025-06-17 18:51:23 +0200 |
---|---|---|
committer | Cristian Le <[email protected]> | 2025-06-26 17:32:01 +0200 |
commit | fb37ef30d55641054e5943cf594131cab519ad1a (patch) | |
tree | 7741fea8f1bedb222cf50024bb71c5b0f484cee9 | |
parent | 7b3b3b24193b2ba7d6bd4671e446e9c4ddf31535 (diff) |
Add a helper target check_qt_module_json_schemas
Change-Id: If8e8970c6752aa0fcdf49181c001ef5766faa9ea
Reviewed-by: Alexandru Croitor <[email protected]>
-rw-r--r-- | cmake/QtTestHelpers.cmake | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/cmake/QtTestHelpers.cmake b/cmake/QtTestHelpers.cmake index 138ab62b193..ad8a9d65c14 100644 --- a/cmake/QtTestHelpers.cmake +++ b/cmake/QtTestHelpers.cmake @@ -1217,4 +1217,19 @@ endfunction() # Collection of tests and targets added to all repos function(qt_internal_add_default_tests) + # Check the installed json module files satisfy the schemas + # This is not made as a test to avoid downstream using it and carrying the python test + # dependencies + if(NOT TARGET check_qt_module_json_schemas) + qt_path_join(__check_qt_module_json_schemas_py + "${QT_STAGING_PREFIX}" + "${INSTALL_LIBEXECDIR}" + "check_qt_module_json_schemas.py" + ) + add_custom_target(check_qt_module_json_schemas + COMMAND python3 ${__check_qt_module_json_schemas_py} + "--install-prefix=${QT_STAGING_PREFIX}" + "--qt-sharedir=${INSTALL_QT_SHAREDIR}" + ) + endif() endfunction() |