File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -8,14 +8,20 @@ endfunction()
8
8
function (llama_test_executable name source )
9
9
get_filename_component (TEST_TARGET ${source} NAME_WE )
10
10
add_test (NAME ${name} COMMAND $< TARGET_FILE:${TEST_TARGET} > ${ARGN} )
11
+ set_property (TEST ${name} PROPERTY LABELS "main" )
11
12
endfunction ()
12
13
13
14
function (llama_build_and_test_executable source )
15
+ llama_build_and_test_executable_with_label (${source} "main" )
16
+ endfunction ()
17
+
18
+ function (llama_build_and_test_executable_with_label source label )
14
19
get_filename_component (TEST_TARGET ${source} NAME_WE )
15
20
add_executable (${TEST_TARGET} ${source} )
16
21
install (TARGETS ${TEST_TARGET} RUNTIME )
17
22
target_link_libraries (${TEST_TARGET} PRIVATE llama common )
18
23
add_test (NAME ${TEST_TARGET} COMMAND $< TARGET_FILE:${TEST_TARGET} > ${ARGN} )
24
+ set_property (TEST ${TEST_TARGET} PROPERTY LABELS ${label} )
19
25
endfunction ()
20
26
21
27
# llama_build_and_test_executable(test-double-float.cpp) # SLOW
@@ -50,7 +56,8 @@ llama_build_and_test_executable(test-grad0.cpp)
50
56
llama_build_and_test_executable (test -backend-ops.cpp )
51
57
52
58
llama_build_and_test_executable (test -rope.cpp )
53
- llama_build_and_test_executable (test -model-load-cancel.cpp )
59
+
60
+ llama_build_and_test_executable_with_label (test -model-load-cancel.cpp "model" )
54
61
55
62
# dummy executable - not installed
56
63
get_filename_component (TEST_TARGET test -c.c NAME_WE )
You can’t perform that action at this time.
0 commit comments