Package: ciftilib / 1.5.1-3

Enable-parallel-execution-of-tests.patch Patch series | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
From: Ghislain Antony Vaillant <ghisvail@gmail.com>
Date: Tue, 8 Nov 2016 11:28:10 +0000
Subject: Enable parallel execution of tests.

---
 example/CMakeLists.txt | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/example/CMakeLists.txt b/example/CMakeLists.txt
index 71f4b0a..bc34779 100644
--- a/example/CMakeLists.txt
+++ b/example/CMakeLists.txt
@@ -76,8 +76,10 @@ FOREACH(index RANGE ${loop_end})
     ADD_TEST(rewrite-little-${testfile} rewrite ${CMAKE_SOURCE_DIR}/example/data/${testfile} little-${testfile} LITTLE)
     LIST(GET cifti_le_md5s ${index} goodsum)
     ADD_TEST(rewrite-little-md5-${testfile} ${CMAKE_COMMAND} -Dgood_sum=${goodsum} -Dcheck_file=little-${testfile} -P ${CMAKE_SOURCE_DIR}/cmake/scripts/testmd5.cmake)
+    SET_TESTS_PROPERTIES(rewrite-little-md5-${testfile} PROPERTIES DEPENDS rewrite-little-${testfile})
 
     ADD_TEST(rewrite-big-${testfile} rewrite ${CMAKE_SOURCE_DIR}/example/data/${testfile} big-${testfile} BIG)
     LIST(GET cifti_be_md5s ${index} goodsum)
     ADD_TEST(rewrite-big-md5-${testfile} ${CMAKE_COMMAND} -Dgood_sum=${goodsum} -Dcheck_file=big-${testfile} -P ${CMAKE_SOURCE_DIR}/cmake/scripts/testmd5.cmake)
+    SET_TESTS_PROPERTIES(rewrite-big-md5-${testfile} PROPERTIES DEPENDS rewrite-big-${testfile})
 ENDFOREACH(index RANGE ${loop_end})