Skip to content

Commit 63ad7f6

Browse files
Move libjsonnet_test_locale to cpp since it uses the C++ library and add it to CTests
1 parent 9ee4e2c commit 63ad7f6

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

CMakeLists.txt

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -133,9 +133,6 @@ if (BUILD_TESTS)
133133
# target runs tests without building them.
134134
add_custom_target(run_tests COMMAND ${CMAKE_CTEST_COMMAND}
135135
DEPENDS libjsonnet_test libjsonnet_test_file libjsonnet_test_snippet
136-
jsonnet parser_test lexer_test libjsonnet++_test
136+
jsonnet parser_test lexer_test libjsonnet++_test libjsonnet_test_locale
137137
)
138-
139138
endif()
140-
141-

Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ MAKEDEPEND_SRCS = \
147147
cmd/jsonnetfmt.cpp \
148148
core/libjsonnet_test_snippet.c \
149149
core/libjsonnet_test_file.c \
150-
core/libjsonnet_test_locale.cpp
150+
cpp/libjsonnet_test_locale.cpp
151151

152152
depend: core/std.jsonnet.h
153153
rm -f Makefile.depend
@@ -198,7 +198,7 @@ libjsonnet_test_file: $(LIBJSONNET_TEST_FILE_SRCS)
198198
$(CC) $(CFLAGS) $(LDFLAGS) $< -L. -ljsonnet -o $@
199199

200200
LIBJSONNET_TEST_LOCALE_SRCS = \
201-
core/libjsonnet_test_locale.cpp \
201+
cpp/libjsonnet_test_locale.cpp \
202202
libjsonnet++.so \
203203
include/libjsonnet++.h
204204

cpp/CMakeLists.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,4 +61,7 @@ if (BUILD_TESTS)
6161
add_test_executablepp(libjsonnet++_test)
6262
# Run this in the source tree because it needs to access testdata files.
6363
add_test(NAME libjsonnet++_test COMMAND ${GLOBAL_OUTPUT_PATH}/libjsonnet++_test WORKING_DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}/..")
64+
65+
add_test_executablepp(libjsonnet_test_locale)
66+
add_test(NAME libjsonnet_test_locale COMMAND ${GLOBAL_OUTPUT_PATH}/libjsonnet_test_locale WORKING_DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}/..")
6467
endif()
File renamed without changes.

0 commit comments

Comments
 (0)