Script 'mail_helper' called by obssrc
Hello community,
here is the log from the commit of package extra-cmake-modules for
openSUSE:Factory checked in at 2023-10-19 22:45:26
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/extra-cmake-modules (Old)
and /work/SRC/openSUSE:Factory/.extra-cmake-modules.new.1945 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "extra-cmake-modules"
Thu Oct 19 22:45:26 2023 rev:118 rq:1118666 version:5.111.0
Changes:
--------
--- /work/SRC/openSUSE:Factory/extra-cmake-modules/extra-cmake-modules.changes
2023-09-11 21:22:36.614288990 +0200
+++
/work/SRC/openSUSE:Factory/.extra-cmake-modules.new.1945/extra-cmake-modules.changes
2023-10-19 22:47:12.466189031 +0200
@@ -1,0 +2,10 @@
+Mon Oct 9 20:20:41 UTC 2023 - Christophe Marin <[email protected]>
+
+- Update to 5.111.0
+ * New feature release
+ * For more details please see:
+ * https://kde.org/announcements/frameworks/5/5.111.0
+- Changes since 5.110.0:
+ * ecm_add_tests/ecm_add_test: add argument WORKING_DIRECTORY
+
+-------------------------------------------------------------------
Old:
----
extra-cmake-modules-5.110.0.tar.xz
extra-cmake-modules-5.110.0.tar.xz.sig
New:
----
extra-cmake-modules-5.111.0.tar.xz
extra-cmake-modules-5.111.0.tar.xz.sig
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ extra-cmake-modules.spec ++++++
--- /var/tmp/diff_new_pack.ygZr1e/_old 2023-10-19 22:47:13.130213115 +0200
+++ /var/tmp/diff_new_pack.ygZr1e/_new 2023-10-19 22:47:13.130213115 +0200
@@ -30,7 +30,7 @@
# Only needed for the package signature condition
%bcond_without released
Name: extra-cmake-modules%{?pkg_suffix}
-Version: 5.110.0
+Version: 5.111.0
Release: 0
Summary: CMake modules
License: BSD-3-Clause
++++++ extra-cmake-modules-5.110.0.tar.xz -> extra-cmake-modules-5.111.0.tar.xz
++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/extra-cmake-modules-5.110.0/CMakeLists.txt
new/extra-cmake-modules-5.111.0/CMakeLists.txt
--- old/extra-cmake-modules-5.110.0/CMakeLists.txt 2023-09-01
15:11:41.000000000 +0200
+++ new/extra-cmake-modules-5.111.0/CMakeLists.txt 2023-09-16
02:13:18.000000000 +0200
@@ -11,7 +11,7 @@
# Preliminary setup
#
-set(VERSION "5.110.0") # handled by release scripts
+set(VERSION "5.111.0") # handled by release scripts
project(ECM
VERSION "${VERSION}"
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/extra-cmake-modules-5.110.0/modules/ECMAddTests.cmake
new/extra-cmake-modules-5.111.0/modules/ECMAddTests.cmake
--- old/extra-cmake-modules-5.110.0/modules/ECMAddTests.cmake 2023-09-01
15:11:41.000000000 +0200
+++ new/extra-cmake-modules-5.111.0/modules/ECMAddTests.cmake 2023-09-16
02:13:18.000000000 +0200
@@ -11,11 +11,14 @@
::
- ecm_add_tests(<sources> LINK_LIBRARIES <library> [<library> [...]]
- [NAME_PREFIX <prefix>]
- [GUI]
- [TARGET_NAMES_VAR <target_names_var>]
- [TEST_NAMES_VAR <test_names_var>])
+ ecm_add_tests(<sources>
+ LINK_LIBRARIES <library> [<library> [...]]
+ [NAME_PREFIX <prefix>]
+ [GUI]
+ [TARGET_NAMES_VAR <target_names_var>]
+ [TEST_NAMES_VAR <test_names_var>]
+ [WORKING_DIRECTORY <dir>] # Since 5.111
+ )
A convenience function for adding multiple tests, each consisting of a
single source file. For each file in <sources>, an executable target will be
@@ -45,18 +48,33 @@
The generated target executables will have the effects of
``ecm_mark_as_test()``
(from the :module:`ECMMarkAsTest` module) applied to it.
+``WORKING_DIRECTORY`` sets the test property `WORKING_DIRECTORY
+<https://cmake.org/cmake/help/latest/prop_test/WORKING_DIRECTORY.html>`_
+in which to execute the test. By default the test will be run in
+``${CMAKE_CURRENT_BINARY_DIR}``. The working directory can be specified using
+generator expressions. Since 5.111.
+
::
- ecm_add_test(<sources> LINK_LIBRARIES <library> [<library> [...]]
- [TEST_NAME <name>]
- [NAME_PREFIX <prefix>]
- [GUI])
+ ecm_add_test(
+ <sources>
+ LINK_LIBRARIES <library> [<library> [...]]
+ [TEST_NAME <name>]
+ [NAME_PREFIX <prefix>]
+ [GUI]
+ [WORKING_DIRECTORY <dir>] # Since 5.111
+ )
This is a single-test form of ``ecm_add_tests`` that allows multiple source
files
to be used for a single test. If using multiple source files, ``TEST_NAME``
must
be given; this will be used for both the target and test names (and, as with
``ecm_add_tests()``, the ``NAME_PREFIX`` argument will be prepended to the
test name).
+``WORKING_DIRECTORY`` sets the test property `WORKING_DIRECTORY
+<https://cmake.org/cmake/help/latest/prop_test/WORKING_DIRECTORY.html>`_
+in which to execute the test. By default the test will be run in
+``${CMAKE_CURRENT_BINARY_DIR}``. The working directory can be specified using
+generator expressions. Since 5.111.
Since pre-1.0.0.
#]=======================================================================]
@@ -68,7 +86,7 @@
set(options GUI)
# TARGET_NAME_VAR and TEST_NAME_VAR are undocumented args used by
# ecm_add_tests
- set(oneValueArgs TEST_NAME NAME_PREFIX TARGET_NAME_VAR TEST_NAME_VAR)
+ set(oneValueArgs TEST_NAME NAME_PREFIX TARGET_NAME_VAR TEST_NAME_VAR
WORKING_DIRECTORY)
set(multiValueArgs LINK_LIBRARIES)
cmake_parse_arguments(ARG "${options}" "${oneValueArgs}" "${multiValueArgs}"
${ARGN})
set(_sources ${ARG_UNPARSED_ARGUMENTS})
@@ -92,7 +110,11 @@
if(NOT ARG_GUI)
ecm_mark_nongui_executable(${_targetname})
endif()
- add_test(NAME ${_testname} COMMAND ${_targetname})
+ set(test_args)
+ if(DEFINED ARG_WORKING_DIRECTORY)
+ list(APPEND test_args WORKING_DIRECTORY ${ARG_WORKING_DIRECTORY})
+ endif()
+ add_test(NAME ${_testname} COMMAND ${_targetname} ${test_args})
target_link_libraries(${_targetname} ${ARG_LINK_LIBRARIES})
target_compile_definitions(${_targetname} PRIVATE -DQT_FORCE_ASSERTS)
ecm_mark_as_test(${_targetname})
@@ -116,7 +138,7 @@
function(ecm_add_tests)
set(options GUI)
- set(oneValueArgs NAME_PREFIX TARGET_NAMES_VAR TEST_NAMES_VAR)
+ set(oneValueArgs NAME_PREFIX TARGET_NAMES_VAR TEST_NAMES_VAR
WORKING_DIRECTORY)
set(multiValueArgs LINK_LIBRARIES)
cmake_parse_arguments(ARG "${options}" "${oneValueArgs}" "${multiValueArgs}"
${ARGN})
if(ARG_GUI)
@@ -124,6 +146,10 @@
else()
set(_exe_type "")
endif()
+ set(test_args)
+ if(DEFINED ARG_WORKING_DIRECTORY)
+ list(APPEND test_args WORKING_DIRECTORY ${ARG_WORKING_DIRECTORY})
+ endif()
set(test_names)
set(target_names)
foreach(_test_source ${ARG_UNPARSED_ARGUMENTS})
@@ -133,6 +159,7 @@
TARGET_NAME_VAR target_name
TEST_NAME_VAR test_name
${_exe_type}
+ ${test_args}
)
list(APPEND _test_names "${test_name}")
list(APPEND _target_names "${target_name}")
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/extra-cmake-modules-5.110.0/tests/ECMAddTests/CMakeLists.txt
new/extra-cmake-modules-5.111.0/tests/ECMAddTests/CMakeLists.txt
--- old/extra-cmake-modules-5.110.0/tests/ECMAddTests/CMakeLists.txt
2023-09-01 15:11:41.000000000 +0200
+++ new/extra-cmake-modules-5.111.0/tests/ECMAddTests/CMakeLists.txt
2023-09-16 02:13:18.000000000 +0200
@@ -40,6 +40,7 @@
test4.txt
test5.txt
test6.txt
+ test7_dir/test7.txt
)
add_check(multi_tests
test1.txt
@@ -51,5 +52,7 @@
test7.txt
test8.txt
test9.txt
+ test1011_dir/test10.txt
+ test1011_dir/test11.txt
)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/extra-cmake-modules-5.110.0/tests/ECMAddTests/multi_tests/CMakeLists.txt
new/extra-cmake-modules-5.111.0/tests/ECMAddTests/multi_tests/CMakeLists.txt
---
old/extra-cmake-modules-5.110.0/tests/ECMAddTests/multi_tests/CMakeLists.txt
2023-09-01 15:11:41.000000000 +0200
+++
new/extra-cmake-modules-5.111.0/tests/ECMAddTests/multi_tests/CMakeLists.txt
2023-09-16 02:13:18.000000000 +0200
@@ -29,6 +29,9 @@
"${CMAKE_CURRENT_BINARY_DIR}/test8.txt"
"${CMAKE_CURRENT_BINARY_DIR}/test9.txt"
)
+file(REMOVE_RECURSE
+ "${CMAKE_CURRENT_BINARY_DIR}/test1011_dir"
+ )
set(exp_target_names "test1;test2;test3")
set(exp_test_names "test1;test2;test3")
@@ -158,3 +161,36 @@
message(FATAL_ERROR "test9 is not an OS/X bundle when it should be")
endif()
+
+set(exp_workingdir "${CMAKE_CURRENT_BINARY_DIR}/test1011_dir")
+file(MAKE_DIRECTORY "${exp_workingdir}") # cmake does not create that for us,
will complain otherwise
+ecm_add_tests(
+ test10.cpp
+ test11.cpp
+ LINK_LIBRARIES testhelper
+ WORKING_DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}/test1011_dir"
+ )
+get_property(_dummy TARGET test10 PROPERTY TYPE)
+get_property(_dummy TARGET test11 PROPERTY TYPE)
+get_property(_dummy TEST test10 PROPERTY TIMEOUT)
+get_property(_dummy TEST test11 PROPERTY TIMEOUT)
+get_property(_working_dir TEST test10 PROPERTY WORKING_DIRECTORY)
+assert_vars_setequal(_working_dir exp_workingdir)
+get_property(_working_dir TEST test11 PROPERTY WORKING_DIRECTORY)
+assert_vars_setequal(_working_dir exp_workingdir)
+get_property(_is_win32 TARGET test10 PROPERTY WIN32_EXECUTABLE)
+if (_is_win32)
+ message(FATAL_ERROR "test10 is a WIN32 executable when it should not be")
+endif()
+get_property(_is_bundle TARGET test10 PROPERTY MACOSX_BUNDLE)
+if (_is_bundle)
+ message(FATAL_ERROR "test10 is an OS/X bundle when it should not be")
+endif()
+get_property(_is_win32 TARGET test11 PROPERTY WIN32_EXECUTABLE)
+if (_is_win32)
+ message(FATAL_ERROR "test11 is a WIN32 executable when it should not be")
+endif()
+get_property(_is_bundle TARGET test11 PROPERTY MACOSX_BUNDLE)
+if (_is_bundle)
+ message(FATAL_ERROR "test11 is an OS/X bundle when it should not be")
+endif()
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/extra-cmake-modules-5.110.0/tests/ECMAddTests/multi_tests/test10.cpp
new/extra-cmake-modules-5.111.0/tests/ECMAddTests/multi_tests/test10.cpp
--- old/extra-cmake-modules-5.110.0/tests/ECMAddTests/multi_tests/test10.cpp
1970-01-01 01:00:00.000000000 +0100
+++ new/extra-cmake-modules-5.111.0/tests/ECMAddTests/multi_tests/test10.cpp
2023-09-16 02:13:18.000000000 +0200
@@ -0,0 +1,8 @@
+#include "testhelper.h"
+
+int main()
+{
+ make_test_file("test10.txt");
+ return 0;
+}
+
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/extra-cmake-modules-5.110.0/tests/ECMAddTests/multi_tests/test11.cpp
new/extra-cmake-modules-5.111.0/tests/ECMAddTests/multi_tests/test11.cpp
--- old/extra-cmake-modules-5.110.0/tests/ECMAddTests/multi_tests/test11.cpp
1970-01-01 01:00:00.000000000 +0100
+++ new/extra-cmake-modules-5.111.0/tests/ECMAddTests/multi_tests/test11.cpp
2023-09-16 02:13:18.000000000 +0200
@@ -0,0 +1,8 @@
+#include "testhelper.h"
+
+int main()
+{
+ make_test_file("test11.txt");
+ return 0;
+}
+
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/extra-cmake-modules-5.110.0/tests/ECMAddTests/single_tests/CMakeLists.txt
new/extra-cmake-modules-5.111.0/tests/ECMAddTests/single_tests/CMakeLists.txt
---
old/extra-cmake-modules-5.110.0/tests/ECMAddTests/single_tests/CMakeLists.txt
2023-09-01 15:11:41.000000000 +0200
+++
new/extra-cmake-modules-5.111.0/tests/ECMAddTests/single_tests/CMakeLists.txt
2023-09-16 02:13:18.000000000 +0200
@@ -15,6 +15,7 @@
enable_testing()
include(ECMAddTests)
+include(../../test_helpers.cmake)
# clean up to avoid false-positives from check_files.cmake
file(REMOVE
@@ -25,6 +26,9 @@
"${CMAKE_CURRENT_BINARY_DIR}/test5.txt"
"${CMAKE_CURRENT_BINARY_DIR}/test6.txt"
)
+file(REMOVE_RECURSE
+ "${CMAKE_CURRENT_BINARY_DIR}/test7_dir"
+ )
ecm_add_test(test1.cpp
LINK_LIBRARIES testhelper
@@ -125,3 +129,21 @@
endif()
+set(exp_workingdir "${CMAKE_CURRENT_BINARY_DIR}/test7_dir")
+file(MAKE_DIRECTORY "${exp_workingdir}") # cmake does not create that for us,
will complain otherwise
+ecm_add_test(test7.cpp
+ LINK_LIBRARIES testhelper
+ WORKING_DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}/test7_dir"
+ )
+get_property(_dummy TARGET test7 PROPERTY TYPE)
+get_property(_dummy TEST test7 PROPERTY TIMEOUT)
+get_property(_working_dir TEST test7 PROPERTY WORKING_DIRECTORY)
+assert_vars_setequal(_working_dir exp_workingdir)
+get_property(_is_win32 TARGET test7 PROPERTY WIN32_EXECUTABLE)
+if (_is_win32)
+ message(FATAL_ERROR "test7 is a WIN32 executable when it should not be")
+endif()
+get_property(_is_bundle TARGET test7 PROPERTY MACOSX_BUNDLE)
+if (_is_bundle)
+ message(FATAL_ERROR "test7 is an OS/X bundle when it should not be")
+endif()
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/extra-cmake-modules-5.110.0/tests/ECMAddTests/single_tests/test7.cpp
new/extra-cmake-modules-5.111.0/tests/ECMAddTests/single_tests/test7.cpp
--- old/extra-cmake-modules-5.110.0/tests/ECMAddTests/single_tests/test7.cpp
1970-01-01 01:00:00.000000000 +0100
+++ new/extra-cmake-modules-5.111.0/tests/ECMAddTests/single_tests/test7.cpp
2023-09-16 02:13:18.000000000 +0200
@@ -0,0 +1,8 @@
+#include "testhelper.h"
+
+int main()
+{
+ make_test_file("test7.txt");
+ return 0;
+}
+