File tree Expand file tree Collapse file tree 7 files changed +8
-8
lines changed Expand file tree Collapse file tree 7 files changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -155,6 +155,13 @@ List of options provided by CMake:
155
155
156
156
### Additional make targets
157
157
158
+ To run tests, do the following:
159
+
160
+ ``` bash
161
+ $ make
162
+ $ make test
163
+ ```
164
+
158
165
To run automated code formatting, configure CMake with ` UR_FORMAT_CPP_STYLE ` option
159
166
and then run a custom ` cppformat ` target:
160
167
Original file line number Diff line number Diff line change @@ -67,7 +67,6 @@ function(add_adapter_memcheck_test name)
67
67
-D MODE=stderr
68
68
-D MATCH_FILE=${CMAKE_CURRENT_SOURCE_DIR}/${name}_memcheck.match
69
69
-P ${PROJECT_SOURCE_DIR} /cmake/match.cmake
70
- DEPENDS ${TEST_TARGET_NAME}
71
70
WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}
72
71
)
73
72
Original file line number Diff line number Diff line change @@ -34,7 +34,6 @@ function(add_test_adapter name adapter backend)
34
34
separate_arguments (TEST_COMMAND )
35
35
add_test (NAME ${tname}
36
36
COMMAND ${TEST_COMMAND}
37
- DEPENDS ${TEST_TARGET_NAME}
38
37
WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}
39
38
)
40
39
endif ()
Original file line number Diff line number Diff line change @@ -38,7 +38,6 @@ add_test(NAME example-collected-hello-world
38
38
-D TEST_FILE=$<TARGET_FILE:hello_world>
39
39
-D MATCH_FILE=${CMAKE_CURRENT_SOURCE_DIR}/hello_world.out.match
40
40
-P ${PROJECT_SOURCE_DIR} /cmake/match.cmake
41
- DEPENDS collector hello_world
42
41
)
43
42
44
43
set_tracing_test_props (example-collected-hello-world collector )
@@ -49,7 +48,6 @@ add_test(NAME example-logged-hello-world
49
48
-D TEST_FILE=$<TARGET_FILE:hello_world>
50
49
-D MATCH_FILE=${CMAKE_CURRENT_SOURCE_DIR}/hello_world.out.logged.match
51
50
-P ${PROJECT_SOURCE_DIR} /cmake/match.cmake
52
- DEPENDS hello_world
53
51
)
54
52
set_tests_properties (example-logged-hello-world PROPERTIES LABELS "tracing" )
55
53
set_property (TEST example-logged-hello-world PROPERTY ENVIRONMENT
@@ -73,7 +71,6 @@ function(add_tracing_test name)
73
71
-D TEST_FILE=$<TARGET_FILE:${TEST_TARGET_NAME}>
74
72
-D MATCH_FILE=${CMAKE_CURRENT_SOURCE_DIR}/${name}.out.match
75
73
-P ${PROJECT_SOURCE_DIR} /cmake/match.cmake
76
- DEPENDS test_collector
77
74
WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}
78
75
)
79
76
set_tracing_test_props (${name} test_collector )
Original file line number Diff line number Diff line change 3
3
# See LICENSE.TXT
4
4
# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
5
5
6
- add_test (NAME example-hello-world COMMAND hello_world DEPENDS hello_world )
6
+ add_test (NAME example-hello-world COMMAND hello_world )
7
7
set_tests_properties (example-hello-world PROPERTIES LABELS "loader"
8
8
ENVIRONMENT "UR_ADAPTERS_FORCE_LOAD=\" $<TARGET_FILE:ur_adapter_mock>\" "
9
9
)
Original file line number Diff line number Diff line change @@ -25,7 +25,6 @@ function(add_loader_platform_test name ENV)
25
25
-D MODE=stdout
26
26
-D MATCH_FILE=${CMAKE_CURRENT_SOURCE_DIR}/${name}.match
27
27
-P ${PROJECT_SOURCE_DIR} /cmake/match.cmake
28
- DEPENDS test -loader-platforms ur_adapter_mock
29
28
)
30
29
set_tests_properties (${TEST_NAME} PROPERTIES
31
30
LABELS "loader"
Original file line number Diff line number Diff line change @@ -19,7 +19,6 @@ function(add_trace_test name CLI_ARGS)
19
19
-D MODE=stdout
20
20
-D MATCH_FILE=${CMAKE_CURRENT_BINARY_DIR}/${name}.match
21
21
-P ${PROJECT_SOURCE_DIR} /cmake/match.cmake
22
- DEPENDS ur_trace_cli hello_world
23
22
)
24
23
set_tests_properties (${TEST_NAME} PROPERTIES LABELS "urtrace" )
25
24
endfunction ()
You can’t perform that action at this time.
0 commit comments