Skip to content

Commit 4f9beeb

Browse files
committed
Add tests for library/cpp/getopts into listfile (#183)
1 parent b53c38c commit 4f9beeb

File tree

2 files changed

+73
-0
lines changed

2 files changed

+73
-0
lines changed

library/cpp/getopt/CMakeLists.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
if (YDB_SDK_TESTS)
2+
add_subdirectory(ut)
3+
endif()
4+
15
_ydb_sdk_add_library(getopt-small)
26
target_link_libraries(getopt-small
37
PUBLIC

library/cpp/getopt/ut/CMakeLists.txt

Lines changed: 69 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,69 @@
1+
add_ydb_test(NAME getopt-last_getopt_ut
2+
SOURCES
3+
last_getopt_ut.cpp
4+
LINK_LIBRARIES
5+
getopt
6+
cpp-testing-unittest_main
7+
LABELS
8+
unit
9+
)
10+
11+
add_ydb_test(NAME getopt-modchooser_ut
12+
SOURCES
13+
modchooser_ut.cpp
14+
LINK_LIBRARIES
15+
getopt
16+
cpp-testing-unittest_main
17+
LABELS
18+
unit
19+
)
20+
21+
add_ydb_test(NAME getopt-opt2_ut
22+
SOURCES
23+
opt2_ut.cpp
24+
LINK_LIBRARIES
25+
getopt
26+
cpp-testing-unittest_main
27+
LABELS
28+
unit
29+
)
30+
31+
add_ydb_test(NAME getopt-opt_ut
32+
SOURCES
33+
opt_ut.cpp
34+
LINK_LIBRARIES
35+
getopt
36+
cpp-testing-unittest_main
37+
LABELS
38+
unit
39+
)
40+
41+
add_ydb_test(NAME getopt-posix_getopt_ut
42+
SOURCES
43+
posix_getopt_ut.cpp
44+
LINK_LIBRARIES
45+
getopt
46+
cpp-testing-unittest_main
47+
LABELS
48+
unit
49+
)
50+
51+
add_ydb_test(NAME getopt-wrap_ut
52+
SOURCES
53+
wrap.cpp
54+
LINK_LIBRARIES
55+
getopt-small
56+
cpp-testing-unittest_main
57+
LABELS
58+
unit
59+
)
60+
61+
add_ydb_test(NAME getopt-ygetopt_ut
62+
SOURCES
63+
ygetopt_ut.cpp
64+
LINK_LIBRARIES
65+
getopt
66+
cpp-testing-unittest_main
67+
LABELS
68+
unit
69+
)

0 commit comments

Comments
 (0)