A
lgorithmique
N
umérique
D
istribuée
Public GIT Repository
projects
/
simgrid.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add a TESH for the new sthread feature
[simgrid.git]
/
examples
/
sthread
/
CMakeLists.txt
diff --git
a/examples/sthread/CMakeLists.txt
b/examples/sthread/CMakeLists.txt
index
d547302
..
784b55a
100644
(file)
--- a/
examples/sthread/CMakeLists.txt
+++ b/
examples/sthread/CMakeLists.txt
@@
-13,10
+13,12
@@
foreach(x
target_link_libraries(pthread-${x} PRIVATE Threads::Threads)
add_dependencies(tests pthread-${x})
target_link_libraries(pthread-${x} PRIVATE Threads::Threads)
add_dependencies(tests pthread-${x})
+ ADD_TESH_FACTORIES(pthread-${x} "^thread" --setenv LD_PRELOAD=${CMAKE_BINARY_DIR}/lib/libsthread.so --cd ${CMAKE_BINARY_DIR}/examples/sthread ${CMAKE_CURRENT_SOURCE_DIR}/pthread-${x}.tesh)
endif()
endif()
-
#
set(tesh_files ${tesh_files} ${CMAKE_CURRENT_SOURCE_DIR}/pthread-${x}.tesh)
+ set(tesh_files ${tesh_files} ${CMAKE_CURRENT_SOURCE_DIR}/pthread-${x}.tesh)
set(examples_src ${examples_src} ${CMAKE_CURRENT_SOURCE_DIR}/pthread-${x}.c)
set(examples_src ${examples_src} ${CMAKE_CURRENT_SOURCE_DIR}/pthread-${x}.c)
+
endforeach()
# Regular sthread examples: test the internal interface for debugging purpose
endforeach()
# Regular sthread examples: test the internal interface for debugging purpose