Skip to content

Commit 6e203c8

Browse files
review comments
1 parent 45348aa commit 6e203c8

File tree

3 files changed

+19
-19
lines changed

3 files changed

+19
-19
lines changed

sharkfuser/build_tools/cmake/CTestMacros.cmake

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
# Creates a sharkfuser C++ test.
99
#
10-
# sharkfuser_cc_test(
10+
# add_sharkfuser_test(
1111
# NAME <test-name>
1212
# SRCS <file> [<file> ...]
1313
# [DEPS <dep> [<dep> ...]]
@@ -22,7 +22,7 @@
2222
# DEPS
2323
# Additional library dependencies beyond the standard ones
2424
# (libfusili and Catch2::Catch2WithMain are always linked)
25-
function(sharkfuser_cc_test)
25+
function(add_sharkfuser_test)
2626
if(NOT SHARKFUSER_BUILD_TESTS)
2727
return()
2828
endif()
@@ -46,7 +46,7 @@ endfunction()
4646

4747
# Creates a sharkfuser C++ sample.
4848
#
49-
# sharkfuser_cc_sample(
49+
# add_sharkfuser_sample(
5050
# NAME <test-name>
5151
# SRCS <file> [<file> ...]
5252
# [DEPS <dep> [<dep> ...]]
@@ -61,7 +61,7 @@ endfunction()
6161
# DEPS
6262
# Additional library dependencies beyond the standard ones
6363
# (libfusili and Catch2::Catch2WithMain are always linked)
64-
function(sharkfuser_cc_sample)
64+
function(add_sharkfuser_sample)
6565
if(NOT SHARKFUSER_BUILD_SAMPLES)
6666
return()
6767
endif()
@@ -85,7 +85,7 @@ endfunction()
8585

8686
# Creates a sharkfuser lit test.
8787
#
88-
# sharkfuser_lit_test(
88+
# add_sharkfuser_lit_test(
8989
# SRC <file>
9090
# [DEPS <dep> [<dep> ...]]
9191
# [TOOLS <tool> [<tool> ...]]
@@ -100,7 +100,7 @@ endfunction()
100100
#
101101
# TOOLS
102102
# External tools needed for the test
103-
function(sharkfuser_lit_test)
103+
function(add_sharkfuser_lit_test)
104104
if(NOT SHARKFUSER_BUILD_TESTS)
105105
return()
106106
endif()
@@ -114,7 +114,7 @@ function(sharkfuser_lit_test)
114114
)
115115

116116
if(NOT _RULE_SRC)
117-
message(FATAL_ERROR "sharkfuser_lit_test: SRC parameter is required")
117+
message(FATAL_ERROR "add_sharkfuser_lit_test: SRC parameter is required")
118118
endif()
119119

120120
get_filename_component(_TEST_NAME ${_RULE_SRC} NAME_WE)

sharkfuser/samples/CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@
55
# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
66

77

8-
# Use prebuilt Catch2 library instead of building from source
8+
# Find prebuilt Catch2 library
99
find_package(Catch2 3 REQUIRED)
1010

11-
sharkfuser_cc_sample(
11+
add_sharkfuser_sample(
1212
NAME sharkfuser_convolution_samples
1313
SRCS
1414
convolution/conv_fprop.cpp

sharkfuser/tests/CMakeLists.txt

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@
55
# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
66

77

8-
# Use prebuilt Catch2 library instead of building from source
8+
# Find prebuilt Catch2 library
99
find_package(Catch2 3 REQUIRED)
1010

11-
# Find lit (pip or system installed)
11+
# Find lit program (pip or system installed)
1212
if(NOT SHARKFUSER_EXTERNAL_LIT)
1313
find_program(SHARKFUSER_EXTERNAL_LIT NAMES lit)
1414
if(NOT SHARKFUSER_EXTERNAL_LIT)
@@ -17,7 +17,7 @@ if(NOT SHARKFUSER_EXTERNAL_LIT)
1717
endif()
1818
message(STATUS "Using lit: ${SHARKFUSER_EXTERNAL_LIT}")
1919

20-
# Find filecheck (pip or system installed)
20+
# Find filecheck program (pip or system installed)
2121
if(NOT SHARKFUSER_EXTERNAL_FILECHECK)
2222
find_program(SHARKFUSER_EXTERNAL_FILECHECK NAMES filecheck)
2323
if(NOT SHARKFUSER_EXTERNAL_FILECHECK)
@@ -27,39 +27,39 @@ endif()
2727
message(STATUS "Using filecheck: ${SHARKFUSER_EXTERNAL_FILECHECK}")
2828

2929

30-
sharkfuser_cc_test(
30+
add_sharkfuser_test(
3131
NAME sharkfuser_attribute_tests
3232
SRCS
3333
test_attributes.cpp
3434
test_tensor_attributes.cpp
3535
test_conv_attributes.cpp
3636
)
3737

38-
sharkfuser_cc_test(
38+
add_sharkfuser_test(
3939
NAME sharkfuser_tensor_tests
4040
SRCS
4141
test_tensor.cpp
4242
)
4343

44-
sharkfuser_cc_test(
44+
add_sharkfuser_test(
4545
NAME sharkfuser_node_tests
4646
SRCS
4747
test_conv_node.cpp
4848
)
4949

50-
sharkfuser_cc_test(
50+
add_sharkfuser_test(
5151
NAME sharkfuser_graph_tests
5252
SRCS
5353
test_graph.cpp
5454
test_context.cpp
5555
)
5656

57-
sharkfuser_cc_test(
57+
add_sharkfuser_test(
5858
NAME sharkfuser_logging_tests
5959
SRCS
6060
test_logging.cpp
6161
)
6262

63-
sharkfuser_lit_test(
64-
SRC test_example_lit.cpp
63+
add_sharkfuser_lit_test(
64+
SRC test_example_lit.cpp
6565
)

0 commit comments

Comments
 (0)