File: git-test-source

package info (click to toggle)
eztrace 2.0%2Brepack-12
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 4,132 kB
  • sloc: ansic: 23,501; perl: 910; sh: 857; cpp: 771; makefile: 696; fortran: 327; f90: 320; python: 57
file content (468 lines) | stat: -rw-r--r-- 17,482 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
commit 9e7a76995ee95b92c31e62a10e6c1342c250e0bb
Author: François Trahay <francois.trahay@telecom-sudparis.eu>
Date:   Wed Aug 24 18:02:12 2022 +0200

    test suite: create one CMakeLists.txt per directory so that the test programs are compiled in the build dir

commit df5f45cd2ab03d5bc93f2b1ff642c31b8a9b81ab
Author: François Trahay <francois.trahay@telecom-sudparis.eu>
Date:   Wed Aug 24 18:11:14 2022 +0200

    test suite: fix a PATH problem

commit b1a73488c89c700a2e25a23210b49688a6865f95
Author: François Trahay <francois.trahay@telecom-sudparis.eu>
Date:   Wed Aug 24 18:34:19 2022 +0200

    fix name collisions

commit 113882ad3b35bb7ec346d134eb16d86a24132259
Author: François Trahay <francois.trahay@telecom-sudparis.eu>
Date:   Wed Aug 24 18:36:49 2022 +0200

    add missing flag

commit 8f84cb811b783be4e6d9c5fc3200685670c03dcc
Author: François Trahay <francois.trahay@telecom-sudparis.eu>
Date:   Wed Aug 24 18:40:02 2022 +0200

    add missing flag

---
 CMakeLists.txt                    |    4 ++-
 test/CMakeLists.txt               |   39 ++++++++++++++++++++++++++++++++++++++
 test/memory/CMakeLists.txt        |   23 ++++++++++++++++++++++
 test/memory/test_memory.sh        |    2 -
 test/mpi/CMakeLists.txt           |   21 ++++++++++++++++++++
 test/mpi/test_mpi_ping.sh         |    2 -
 test/ompt/CMakeLists.txt          |   32 +++++++++++++++++++++++++++++++
 test/ompt/test_lock.sh            |    2 -
 test/ompt/test_parallel_for.sh    |    2 -
 test/ompt/test_task.sh            |    2 -
 test/openmp/CMakeLists.txt        |   36 +++++++++++++++++++++++++++++++++++
 test/openmp/test_lock.sh          |    2 -
 test/openmp/test_nest_lock.sh     |    2 -
 test/openmp/test_openmp_simple.sh |    2 -
 test/openmp/test_task.sh          |    2 -
 test/posixio/CMakeLists.txt       |   26 +++++++++++++++++++++++++
 test/posixio/test_my_cat.sh       |    2 -
 test/posixio/test_posixio.sh      |    2 -
 test/pthread/CMakeLists.txt       |   24 +++++++++++++++++++++++
 test/pthread/test_dummy.sh        |    2 -
 test/unit_tests/CMakeLists.txt    |   34 ---------------------------------
 21 files changed, 217 insertions(+), 46 deletions(-)

--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -180,7 +180,9 @@ set(INSTALL_PKGCONFIG_DIR "${CMAKE_INSTA
 
 # Subdirectory
 add_subdirectory (src)
-add_subdirectory (test/unit_tests)
+
+
+add_subdirectory (test/)
 
 include(PrintOpts)
 
--- /dev/null
+++ b/test/CMakeLists.txt
@@ -0,0 +1,39 @@
+cmake_minimum_required(VERSION 3.1)
+
+enable_testing()
+
+set(EZTRACE_LIBRARY_PATH "${CMAKE_BINARY_DIR}/src/eztrace-lib")
+set(TEST_ENVIRONMENT  "EZTRACE_AVAIL_PATH=${CMAKE_BINARY_DIR}/src/eztrace_avail"
+  "EZTRACE_CC_PATH=${CMAKE_BINARY_DIR}/modules/omp/bin/eztrace_cc"
+  "EZTRACE_PATH=${CMAKE_BINARY_DIR}/src/eztrace"
+  "OTF2_PRINT_PATH=${OTF2_PRINT}"
+  "EZTRACE_TEST_OPTION=-p"
+)
+
+
+add_subdirectory (unit_tests)
+
+if (EZTRACE_ENABLE_MPI)
+  add_subdirectory (mpi)
+endif()
+
+if (EZTRACE_ENABLE_MEMORY)
+  add_subdirectory (memory)
+endif()
+
+if (EZTRACE_ENABLE_OPENMP)
+  add_subdirectory (openmp)
+endif()
+
+if (EZTRACE_ENABLE_OMPT)
+  add_subdirectory (ompt)
+endif()
+
+if (EZTRACE_ENABLE_PTHREAD)
+  add_subdirectory (pthread)
+endif()
+
+if (EZTRACE_ENABLE_POSIXIO)
+  add_subdirectory (posixio)
+endif()
+
--- /dev/null
+++ b/test/memory/CMakeLists.txt
@@ -0,0 +1,23 @@
+cmake_minimum_required(VERSION 3.1)
+
+enable_testing()
+
+if (EZTRACE_ENABLE_MEMORY)
+
+  set(CMAKE_C_FLAGS "-pthread")
+  set(LINK_OPTIONS  "-pthread")
+
+  add_executable(memory memory.c)
+  add_test (build_memory "${CMAKE_COMMAND}" --build "${CMAKE_BINARY_DIR}" --target memory)
+  add_test (memory_tests bash "${CMAKE_CURRENT_SOURCE_DIR}/run.sh" DEPENDS build_memory)
+  set(EZTRACE_LIBRARY_PATH "${EZTRACE_LIBRARY_PATH}:${CMAKE_BINARY_DIR}/src/modules/memory")
+
+
+  # Get the list of tests, and set environment variables
+  get_property(test_list DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR} PROPERTY TESTS)
+  set_property(TEST ${test_list}
+    PROPERTY ENVIRONMENT
+    "EZTRACE_LIBRARY_PATH=${EZTRACE_LIBRARY_PATH}"
+    ${TEST_ENVIRONMENT}
+  )
+endif()
--- a/test/memory/test_memory.sh
+++ b/test/memory/test_memory.sh
@@ -3,7 +3,7 @@ CUR_PATH=$(dirname  $(realpath $0))
 source "$CUR_PATH/../test_utils/test_utils.sh"
 
 name="memory"
-run_and_check_command "$EZTRACE_PATH" $EZTRACE_TEST_OPTION -t "memory" "$CUR_PATH/$name"
+run_and_check_command "$EZTRACE_PATH" $EZTRACE_TEST_OPTION -t "memory" "./$name"
 
 trace_filename="${name}_trace/eztrace_log.otf2"
 
--- /dev/null
+++ b/test/mpi/CMakeLists.txt
@@ -0,0 +1,21 @@
+cmake_minimum_required(VERSION 3.1)
+
+enable_testing()
+
+if (EZTRACE_ENABLE_MPI)
+  set(CMAKE_C_COMPILER ${MPICC})
+  set(CMAKE_Fortran_COMPILER ${MPIF90})
+
+  add_executable(mpi_ping ../mpi/mpi_ping.c)
+  add_test (build_mpi_ping "${CMAKE_COMMAND}" --build "${CMAKE_BINARY_DIR}" --target mpi_ping)
+  add_test (mpi_tests bash "${CMAKE_CURRENT_SOURCE_DIR}/../mpi/run.sh" DEPENDS build_mpi_ping)
+  set(EZTRACE_LIBRARY_PATH "${EZTRACE_LIBRARY_PATH}:${CMAKE_BINARY_DIR}/src/modules/mpi")
+
+  # Get the list of tests, and set environment variables
+  get_property(test_list DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR} PROPERTY TESTS)
+  set_property(TEST ${test_list}
+    PROPERTY ENVIRONMENT
+    "EZTRACE_LIBRARY_PATH=${EZTRACE_LIBRARY_PATH}"
+    ${TEST_ENVIRONMENT}
+  )
+endif()
--- /dev/null
+++ b/test/ompt/CMakeLists.txt
@@ -0,0 +1,32 @@
+cmake_minimum_required(VERSION 3.1)
+
+enable_testing()
+
+if (EZTRACE_ENABLE_OMPT)
+  set(CMAKE_C_FLAGS "-fopenmp")
+  set(LINK_OPTIONS "-fopenmp")
+
+  add_executable(ompt_test_lock test_lock.c)
+  add_executable(ompt_test_parallel_for test_parallel_for.c)
+  add_executable(ompt_test_task test_task.c)
+
+  set_target_properties(ompt_test_lock PROPERTIES OUTPUT_NAME "test_lock")
+  set_target_properties(ompt_test_parallel_for PROPERTIES OUTPUT_NAME "test_parallel_for")
+  set_target_properties(ompt_test_task PROPERTIES OUTPUT_NAME "test_task")
+
+  add_test(ompt_build_test_lock "${CMAKE_COMMAND}" --build "${CMAKE_BINARY_DIR}" --target ompt_test_lock)
+  add_test(ompt_build_test_parallel_for "${CMAKE_COMMAND}" --build "${CMAKE_BINARY_DIR}" --target ompt_test_parallel_for)
+  add_test(ompt_build_test_task "${CMAKE_COMMAND}" --build "${CMAKE_BINARY_DIR}" --target ompt_test_task)
+
+  add_test (ompt_tests bash "${CMAKE_CURRENT_SOURCE_DIR}/run.sh" DEPENDS "ompt_build_test_lock;ompt_build_test_parallel_for;ompt_build_test_task")
+  set(EZTRACE_LIBRARY_PATH "${EZTRACE_LIBRARY_PATH}:${CMAKE_BINARY_DIR}/src/modules/ompt")
+
+
+  # Get the list of tests, and set environment variables
+  get_property(test_list DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR} PROPERTY TESTS)
+  set_property(TEST ${test_list}
+    PROPERTY ENVIRONMENT
+    "EZTRACE_LIBRARY_PATH=${EZTRACE_LIBRARY_PATH}"
+    ${TEST_ENVIRONMENT}
+  )
+endif()
--- /dev/null
+++ b/test/openmp/CMakeLists.txt
@@ -0,0 +1,36 @@
+cmake_minimum_required(VERSION 3.1)
+
+enable_testing()
+
+if (EZTRACE_ENABLE_OPENMP)
+
+  set(CMAKE_C_FLAGS "-fopenmp")
+  set(LINK_OPTIONS "-fopenmp")
+
+  add_executable(openmp_openmp_simple openmp_simple.c)
+  add_executable(openmp_test_lock test_lock.c)
+  add_executable(openmp_test_nest_lock test_nest_lock.c)
+  add_executable(openmp_test_task test_task.c)
+
+  set_target_properties(openmp_openmp_simple PROPERTIES OUTPUT_NAME "openmp_simple")
+  set_target_properties(openmp_test_lock PROPERTIES OUTPUT_NAME "test_lock")
+  set_target_properties(openmp_test_nest_lock PROPERTIES OUTPUT_NAME "test_nest_lock")
+  set_target_properties(openmp_test_task PROPERTIES OUTPUT_NAME "test_task")
+
+  add_test(build_openmp_simple "${CMAKE_COMMAND}" --build "${CMAKE_BINARY_DIR}" --target openmp_openmp_simple)
+  add_test(build_test_lock "${CMAKE_COMMAND}" --build "${CMAKE_BINARY_DIR}" --target openmp_test_lock)
+  add_test(build_test_nest_lock "${CMAKE_COMMAND}" --build "${CMAKE_BINARY_DIR}" --target openmp_test_nest_lock)
+  add_test(build_test_task "${CMAKE_COMMAND}" --build "${CMAKE_BINARY_DIR}" --target openmp_test_task)
+
+  add_test (openmp_tests bash "${CMAKE_CURRENT_SOURCE_DIR}/run.sh" DEPENDS "openmp_build_openmp_simple;openmp_build_test_lock;openmp_build_test_task")
+  set(EZTRACE_LIBRARY_PATH "${EZTRACE_LIBRARY_PATH}:${CMAKE_BINARY_DIR}/src/modules/omp")
+
+
+  # Get the list of tests, and set environment variables
+  get_property(test_list DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR} PROPERTY TESTS)
+  set_property(TEST ${test_list}
+    PROPERTY ENVIRONMENT
+    "EZTRACE_LIBRARY_PATH=${EZTRACE_LIBRARY_PATH}"
+    ${TEST_ENVIRONMENT}
+  )
+endif()
--- /dev/null
+++ b/test/posixio/CMakeLists.txt
@@ -0,0 +1,26 @@
+cmake_minimum_required(VERSION 3.1)
+
+enable_testing()
+
+if (EZTRACE_ENABLE_POSIXIO)
+
+  set(CMAKE_C_FLAGS "-pthread")
+  set(LINK_OPTIONS  "-pthread")
+
+  add_executable(posixio posixio.c)
+  add_test(build_posixio "${CMAKE_COMMAND}" --build "${CMAKE_BINARY_DIR}" --target posixio)
+  add_executable(my_cat my_cat.c)
+  add_test(build_my_cat "${CMAKE_COMMAND}" --build "${CMAKE_BINARY_DIR}" --target my_cat)
+
+  add_test (posixio_tests bash "${CMAKE_CURRENT_SOURCE_DIR}/run.sh" DEPENDS "build_posixio;build_my_cat")
+  set(EZTRACE_LIBRARY_PATH "${EZTRACE_LIBRARY_PATH}:${CMAKE_BINARY_DIR}/src/modules/posixio")
+
+
+  # Get the list of tests, and set environment variables
+  get_property(test_list DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR} PROPERTY TESTS)
+  set_property(TEST ${test_list}
+    PROPERTY ENVIRONMENT
+    "EZTRACE_LIBRARY_PATH=${EZTRACE_LIBRARY_PATH}"
+    ${TEST_ENVIRONMENT}
+  )
+endif()
--- /dev/null
+++ b/test/pthread/CMakeLists.txt
@@ -0,0 +1,24 @@
+cmake_minimum_required(VERSION 3.1)
+
+enable_testing()
+
+if (EZTRACE_ENABLE_PTHREAD)
+
+  set(CMAKE_C_FLAGS "-pthread")
+  set(LINK_OPTIONS  "-pthread")
+
+  add_executable(dummy_thread dummy_thread.c)
+  add_test(build_dummy_thread "${CMAKE_COMMAND}" --build "${CMAKE_BINARY_DIR}" --target dummy_thread)
+
+  add_test (pthread_tests bash "${CMAKE_CURRENT_SOURCE_DIR}/run.sh" DEPENDS build_dummy_thread)
+  set(EZTRACE_LIBRARY_PATH "${EZTRACE_LIBRARY_PATH}:${CMAKE_BINARY_DIR}/src/modules/pthread")
+
+
+  # Get the list of tests, and set environment variables
+  get_property(test_list DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR} PROPERTY TESTS)
+  set_property(TEST ${test_list}
+    PROPERTY ENVIRONMENT
+    "EZTRACE_LIBRARY_PATH=${EZTRACE_LIBRARY_PATH}"
+    ${TEST_ENVIRONMENT}
+  )
+endif()
--- a/test/unit_tests/CMakeLists.txt
+++ b/test/unit_tests/CMakeLists.txt
@@ -21,43 +21,11 @@ target_include_directories(htable
 )
 
 add_test(NAME htable COMMAND htable)
-set(EZTRACE_LIBRARY_PATH "${CMAKE_BINARY_DIR}/src/eztrace-lib")
-
-if (EZTRACE_ENABLE_MPI)
-add_test (mpi_tests bash "${CMAKE_CURRENT_SOURCE_DIR}/../mpi/run.sh")
-set(EZTRACE_LIBRARY_PATH "${EZTRACE_LIBRARY_PATH}:${CMAKE_BINARY_DIR}/src/modules/mpi")
-endif()
-if (EZTRACE_ENABLE_MEMORY)
-add_test (memory_tests bash "${CMAKE_CURRENT_SOURCE_DIR}/../memory/run.sh")
-set(EZTRACE_LIBRARY_PATH "${EZTRACE_LIBRARY_PATH}:${CMAKE_BINARY_DIR}/src/modules/memory")
-endif()
-if (EZTRACE_ENABLE_OPENMP)
-add_test (openmp_tests bash "${CMAKE_CURRENT_SOURCE_DIR}/../openmp/run.sh")
-set(EZTRACE_LIBRARY_PATH "${EZTRACE_LIBRARY_PATH}:${CMAKE_BINARY_DIR}/src/modules/omp")
-endif()
-if (EZTRACE_ENABLE_OMPT)
-add_test (ompt_tests bash "${CMAKE_CURRENT_SOURCE_DIR}/../ompt/run.sh")
-set(EZTRACE_LIBRARY_PATH "${EZTRACE_LIBRARY_PATH}:${CMAKE_BINARY_DIR}/src/modules/ompt")
-endif()
-
-if (EZTRACE_ENABLE_PTHREAD)
-add_test (pthread_tests bash "${CMAKE_CURRENT_SOURCE_DIR}/../pthread/run.sh")
-set(EZTRACE_LIBRARY_PATH "${EZTRACE_LIBRARY_PATH}:${CMAKE_BINARY_DIR}/src/modules/pthread")
-endif()
-
-if (EZTRACE_ENABLE_POSIXIO)
-add_test (posixio_tests bash "${CMAKE_CURRENT_SOURCE_DIR}/../posixio/run.sh")
-set(EZTRACE_LIBRARY_PATH "${EZTRACE_LIBRARY_PATH}:${CMAKE_BINARY_DIR}/src/modules/posixio")
-endif()
 
 # Get the list of tests, and set environment variables
 get_property(test_list DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR} PROPERTY TESTS)
 set_property(TEST ${test_list}
   PROPERTY ENVIRONMENT
   "EZTRACE_LIBRARY_PATH=${EZTRACE_LIBRARY_PATH}"
-  "EZTRACE_AVAIL_PATH=${CMAKE_BINARY_DIR}/src/eztrace_avail"
-  "EZTRACE_CC_PATH=${CMAKE_BINARY_DIR}/modules/omp/bin/eztrace_cc"
-  "EZTRACE_PATH=${CMAKE_BINARY_DIR}/src/eztrace"
-  "OTF2_PRINT_PATH=${OTF2_PRINT}"
-  "EZTRACE_TEST_OPTION=-p"
 )
+
--- a/test/mpi/test_mpi_ping.sh
+++ b/test/mpi/test_mpi_ping.sh
@@ -6,7 +6,7 @@ name="mpi_ping"
 np="2"
 
 [ -n "$MPI_MODULE_NAME" ] || MPI_MODULE_NAME=mpi
-run_and_check_command "$MPIRUN_PATH" $MPIRUN_CLI_OPTION -np $np "$EZTRACE_PATH" $EZTRACE_TEST_OPTION -t "$MPI_MODULE_NAME $CUR_PATH/$name"
+run_and_check_command "$MPIRUN_PATH" $MPIRUN_CLI_OPTION -np $np "$EZTRACE_PATH" $EZTRACE_TEST_OPTION -t "$MPI_MODULE_NAME ./$name"
 
 trace_filename="${name}_trace/eztrace_log.otf2"
 if ! "$OTF2_PRINT_PATH" "$trace_filename" 2>&1 > /dev/null ; then
--- a/test/ompt/test_lock.sh
+++ b/test/ompt/test_lock.sh
@@ -4,7 +4,7 @@ source "$CUR_PATH/../test_utils/test_uti
 
 name="lock"
 
-run_and_check_command "$EZTRACE_PATH" $EZTRACE_TEST_OPTION -t "ompt" "$CUR_PATH/test_$name"
+run_and_check_command "$EZTRACE_PATH" $EZTRACE_TEST_OPTION -t "ompt" "./test_$name"
 
 trace_filename="test_${name}_trace/eztrace_log.otf2"
 trace_check_integrity "$trace_filename"
--- a/test/ompt/test_parallel_for.sh
+++ b/test/ompt/test_parallel_for.sh
@@ -4,7 +4,7 @@ source "$CUR_PATH/../test_utils/test_uti
 
 name="parallel_for"
 
-run_and_check_command "$EZTRACE_PATH" $EZTRACE_TEST_OPTION -t "ompt" "$CUR_PATH/test_$name"
+run_and_check_command "$EZTRACE_PATH" $EZTRACE_TEST_OPTION -t "ompt" "./test_$name"
 
 trace_filename="test_${name}_trace/eztrace_log.otf2"
 
--- a/test/ompt/test_task.sh
+++ b/test/ompt/test_task.sh
@@ -4,7 +4,7 @@ source "$CUR_PATH/../test_utils/test_uti
 
 name="task"
 
-nb_tasks=$("$EZTRACE_PATH" $EZTRACE_TEST_OPTION -t "ompt" "$CUR_PATH/test_$name" 2>&1 | grep "Number of executed tasks" | cut -d' ' -f5)
+nb_tasks=$("$EZTRACE_PATH" $EZTRACE_TEST_OPTION -t "ompt" "./test_$name" 2>&1 | grep "Number of executed tasks" | cut -d' ' -f5)
 
 trace_filename="test_${name}_trace/eztrace_log.otf2"
 
--- a/test/openmp/test_lock.sh
+++ b/test/openmp/test_lock.sh
@@ -4,7 +4,7 @@ source "$CUR_PATH/../test_utils/test_uti
 
 name="lock"
 
-run_and_check_command "$EZTRACE_PATH" $EZTRACE_TEST_OPTION -t "openmp" "$CUR_PATH/test_$name" || ((nb_fail++))
+run_and_check_command "$EZTRACE_PATH" $EZTRACE_TEST_OPTION -t "openmp" "./test_$name" || ((nb_fail++))
 
 trace_filename="test_${name}_trace/eztrace_log.otf2"
 trace_check_integrity "$trace_filename" ||  ((nb_fail++))
--- a/test/openmp/test_nest_lock.sh
+++ b/test/openmp/test_nest_lock.sh
@@ -4,7 +4,7 @@ source "$CUR_PATH/../test_utils/test_uti
 
 name="nest_lock"
 
-run_and_check_command "$EZTRACE_PATH" $EZTRACE_TEST_OPTION -t "openmp" "$CUR_PATH/test_$name" || ((nb_fail++))
+run_and_check_command "$EZTRACE_PATH" $EZTRACE_TEST_OPTION -t "openmp" "./test_$name" || ((nb_fail++))
 
 trace_filename="test_${name}_trace/eztrace_log.otf2"
 trace_check_integrity "$trace_filename" || return 1
--- a/test/openmp/test_openmp_simple.sh
+++ b/test/openmp/test_openmp_simple.sh
@@ -5,7 +5,7 @@ source "$CUR_PATH/../test_utils/test_uti
 name="openmp_simple"
 export OMP_NUM_THREADS=4
 
-run_and_check_command "$EZTRACE_PATH" $EZTRACE_TEST_OPTION -t "openmp" "$CUR_PATH/$name" || ((nb_fail++))
+run_and_check_command "$EZTRACE_PATH" $EZTRACE_TEST_OPTION -t "openmp" "./$name" || ((nb_fail++))
 
 trace_filename="${name}_trace/eztrace_log.otf2"
 trace_check_integrity "$trace_filename" || exit 1
--- a/test/openmp/test_task.sh
+++ b/test/openmp/test_task.sh
@@ -4,7 +4,7 @@ source "$CUR_PATH/../test_utils/test_uti
 
 name="task"
 
-run_and_check_command "$EZTRACE_PATH" $EZTRACE_TEST_OPTION -t "openmp" "$CUR_PATH/test_$name" || ((nb_fail++))
+run_and_check_command "$EZTRACE_PATH" $EZTRACE_TEST_OPTION -t "openmp" "./test_$name" || ((nb_fail++))
 
 trace_filename="test_${name}_trace/eztrace_log.otf2"
 trace_check_integrity "$trace_filename" || exit 1
--- a/test/posixio/test_my_cat.sh
+++ b/test/posixio/test_my_cat.sh
@@ -8,7 +8,7 @@ output_file="output_file.tmp"
 size=1000
 dd if=/dev/random of="$input_file" count=1000 bs=1
 
-run_and_check_command "$EZTRACE_PATH" $EZTRACE_TEST_OPTION -t "posixio" "$CUR_PATH/$name" "${input_file}" "$output_file"
+run_and_check_command "$EZTRACE_PATH" $EZTRACE_TEST_OPTION -t "posixio" "./$name" "${input_file}" "$output_file"
 
 trace_filename="${name}_trace/eztrace_log.otf2"
 trace_check_integrity "$trace_filename"
--- a/test/posixio/test_posixio.sh
+++ b/test/posixio/test_posixio.sh
@@ -4,7 +4,7 @@ source "$CUR_PATH/../test_utils/test_uti
 
 name="posixio"
 
-run_and_check_command "$EZTRACE_PATH" $EZTRACE_TEST_OPTION -t "posixio"  "$CUR_PATH/$name"
+run_and_check_command "$EZTRACE_PATH" $EZTRACE_TEST_OPTION -t "posixio"  "./$name"
 
 trace_filename="${name}_trace/eztrace_log.otf2"
 trace_check_integrity "$trace_filename"
--- a/test/pthread/test_dummy.sh
+++ b/test/pthread/test_dummy.sh
@@ -4,7 +4,7 @@ source "$CUR_PATH/../test_utils/test_uti
 
 name="dummy_thread"
 [ -n "$EZTRACE_PATH" ] || EZTRACE_PATH=eztrace
-run_and_check_command "$EZTRACE_PATH" $EZTRACE_TEST_OPTION -t "pthread" "$CUR_PATH/dummy_thread"
+run_and_check_command "$EZTRACE_PATH" $EZTRACE_TEST_OPTION -t "pthread" "./dummy_thread"
 
 trace_filename="${name}_trace/eztrace_log.otf2"
 trace_check_integrity "$trace_filename"