From 8e630c29465a44761814f61b56c6d00878c4919e Mon Sep 17 00:00:00 2001 From: Christian Hopps Date: Thu, 26 Oct 2023 21:39:13 -0400 Subject: [PATCH] tests: have unit-test check more paths for the grpc.so module Signed-off-by: Christian Hopps --- tests/lib/test_grpc.cpp | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/tests/lib/test_grpc.cpp b/tests/lib/test_grpc.cpp index 182c1d338dc7..957ffdefaae7 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);