summaryrefslogtreecommitdiff
path: root/tests/lib
diff options
context:
space:
mode:
authorChristian Hopps <chopps@labn.net>2023-10-26 21:39:13 -0400
committerChristian Hopps <chopps@labn.net>2023-10-26 21:39:13 -0400
commit8e630c29465a44761814f61b56c6d00878c4919e (patch)
tree6021906952432994e94453652ddf440d017ccb56 /tests/lib
parenta709218b53830c13d3f03501106fbc7802ff4267 (diff)
tests: have unit-test check more paths for the grpc.so module
Signed-off-by: Christian Hopps <chopps@labn.net>
Diffstat (limited to 'tests/lib')
-rw-r--r--tests/lib/test_grpc.cpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/lib/test_grpc.cpp b/tests/lib/test_grpc.cpp
index 182c1d338d..957ffdefaa 100644
--- a/tests/lib/test_grpc.cpp
+++ b/tests/lib/test_grpc.cpp
@@ -92,6 +92,17 @@ static void static_startup(void)
grpc_module = frrmod_load("grpc:50051", modpath.c_str(),
_err_print, 0);
}
+ if (!grpc_module) {
+ modpath = std::string(binpath) +
+ std::string("../../../lib/.libs");
+ grpc_module = frrmod_load("grpc:50051", modpath.c_str(),
+ _err_print, 0);
+ }
+ if (!grpc_module) {
+ modpath = std::string(binpath) + std::string("../../../lib");
+ grpc_module = frrmod_load("grpc:50051", modpath.c_str(),
+ _err_print, 0);
+ }
if (!grpc_module)
exit(1);