From 5d023ef2d4c8c74cbf557b454bb5965a1c1d123c Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jan=20R=C4=99korajski?= Date: Wed, 6 May 2020 10:19:28 +0200 Subject: [PATCH] - cram tests fail due to missing, unchecked dependencies --- no-cram.patch | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 no-cram.patch diff --git a/no-cram.patch b/no-cram.patch new file mode 100644 index 0000000..f348b46 --- /dev/null +++ b/no-cram.patch @@ -0,0 +1,23 @@ +--- criterion-v2.3.3/test/CMakeLists.txt~ 2018-11-05 01:59:28.000000000 +0100 ++++ criterion-v2.3.3/test/CMakeLists.txt 2020-05-06 10:18:05.799801261 +0200 +@@ -36,20 +36,3 @@ + add_dependencies(criterion_tests criterion_unit_tests) + + add_test(criterion_unit_tests criterion_unit_tests) +- +-find_program(SH NAMES sh sh.exe) +- +-if (SH) # we disable the scripted tests when sh is not available +- add_custom_target(cram_tests) +- +- add_custom_command(TARGET cram_tests POST_BUILD +- COMMAND "${CMAKE_COMMAND}" +- -DPROJECT_BINARY_DIR="${PROJECT_BINARY_DIR}" +- -DCRAM_PATH="${CMAKE_CURRENT_SOURCE_DIR}/cram" +- -DCRAM_SHELL="${SH}" +- -P "${CMAKE_MODULE_PATH}/Cram.cmake" +- ) +- +- add_test(cram_tests cmake --build ${PROJECT_BINARY_DIR} --target cram_tests) +- +-endif () -- 2.43.0