@@ -32,14 +32,13 @@ ecbuild_add_test( TARGET fiat_test_drhook_papi_basic_valid_csv
32
32
TYPE SCRIPT
33
33
# Just making sure it's not an empty file
34
34
COMMAND "find"
35
- ARGS "." "-name" "drhook.prof.0.csv" "-type" "f" "-size" "+100c"
36
- ENVIRONMENT DR_HOOK=1 DR_HOOK_OPT=COUNTERS
35
+ ARGS "." "-name" "drhook.prof.1.csv" "-type" "f" "-size" "+100c"
37
36
CONDITION HAVE_DR_HOOK_PAPI )
38
37
39
38
if (TEST fiat_test_drhook_papi_basic_valid_csv)
40
39
set_tests_properties (fiat_test_drhook_papi_basic_valid_csv
41
40
PROPERTIES DEPENDS fiat_test_drhook_papi_basic
42
- FAIL_REGULAR_EXPRESSION "no matches found " )
41
+ PASS_REGULAR_EXPRESSION "drhook.prof.1.csv " )
43
42
endif ()
44
43
45
44
# Test MPI implementation
@@ -54,7 +53,7 @@ ecbuild_add_executable( TARGET drhook_papi_mpi
54
53
ecbuild_add_test( TARGET fiat_test_drhook_papi_mpi
55
54
COMMAND drhook_papi_mpi
56
55
MPI 5
57
- ENVIRONMENT DR_HOOK=1 DR_HOOK_OPT=COUNTERS
56
+ ENVIRONMENT DR_HOOK=1 DR_HOOK_OPT=COUNTERS DR_HOOK_PROFILE=fiat_test_drhook_papi_mpi
58
57
CONDITION HAVE_DR_HOOK_PAPI AND HAVE_MPI )
59
58
60
59
@@ -64,8 +63,7 @@ ecbuild_add_test( TARGET fiat_test_drhook_papi_mpi_valid_csv
64
63
# We have to do this weird thing with bash so that we can
65
64
# use a redirect. CMake tests are really basic...
66
65
COMMAND "bash"
67
- ARGS "-c" "find . -name 'drhook.prof.[1-5].csv' -type f -size +100c | wc -l"
68
- ENVIRONMENT DR_HOOK=1 DR_HOOK_OPT=COUNTERS
66
+ ARGS "-c" "find . -name 'fiat_test_drhook_papi_mpi.[1-5].csv' -type f -size +100c | wc -l"
69
67
CONDITION HAVE_DR_HOOK_PAPI AND HAVE_MPI )
70
68
71
69
if (TEST fiat_test_drhook_papi_mpi_valid_csv)
@@ -93,13 +91,12 @@ ecbuild_add_test( TARGET fiat_test_drhook_papi_user_filename_valid_csv
93
91
# Just making sure it's not an empty file
94
92
COMMAND "find"
95
93
ARGS "." "-name" "fiat_test_drhook_papi_user_filename.1.csv" "-type" "f"
96
- ENVIRONMENT DR_HOOK=1 DR_HOOK_OPT=COUNTERS
97
94
CONDITION HAVE_DR_HOOK_PAPI )
98
95
99
96
if (TEST fiat_test_drhook_papi_user_filename_valid_csv)
100
97
set_tests_properties (fiat_test_drhook_papi_user_filename_valid_csv
101
98
PROPERTIES DEPENDS fiat_test_drhook_papi_user_filename
102
- FAIL_REGULAR_EXPRESSION "no matches found " )
99
+ PASS_REGULAR_EXPRESSION "fiat_test_drhook_papi_user_filename.1.csv " )
103
100
endif ()
104
101
105
102
# Test user specified counters
0 commit comments