]> git.puffer.fish Git - mirror/frr.git/commitdiff
tests: embed YANG in mgmtd unit-test bin 16024/head
authorChristian Hopps <chopps@labn.net>
Fri, 17 May 2024 04:54:20 +0000 (00:54 -0400)
committerChristian Hopps <chopps@labn.net>
Fri, 17 May 2024 04:54:20 +0000 (00:54 -0400)
`make check` should run w/o installing FRR first. Thus we need to embed
the yang modules otherwise mgmtd unit-test fails.

Signed-off-by: Christian Hopps <chopps@labn.net>
tests/lib/subdir.am

index 94df3626d679ecd7c3c244b64fe0a284a0563152..185b89507932d8723f82dda47eed4a595cfc3c4a 100644 (file)
@@ -34,6 +34,10 @@ tests_lib_test_grpc_CXXFLAGS = $(WERROR) $(TESTS_CXXFLAGS)
 tests_lib_test_grpc_CPPFLAGS = $(TESTS_CPPFLAGS)
 tests_lib_test_grpc_LDADD = $(GRPC_TESTS_LDADD)
 tests_lib_test_grpc_SOURCES = tests/lib/test_grpc.cpp
+nodist_tests_lib_test_grpc_SOURCES = \
+       yang/frr-bfdd.yang.c \
+       yang/frr-staticd.yang.c \
+       # end
 
 
 ##############################################################################