Skip to content

Commit

Permalink
Merge pull request #7 from CloudlyIO/feature/mpclient-demo-cli-build
Browse files Browse the repository at this point in the history
add mpclient demo cli to docker container
  • Loading branch information
shahrahman-fb authored Mar 11, 2024
2 parents 80f860d + f7fa350 commit 9856974
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 5 deletions.
13 changes: 9 additions & 4 deletions mplane_client/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ project (MPLANE_CLIENT CXX)

set (MPC_CLIENT mpc_client)
set (MPC_TESTER mpc_tester)
# set (Target_mpclient_demo mpclient-demo)
set (Target_mpclient_demo mpclient-demo)

find_program (PROTOC protoc PATHS deps/install/bin)
find_program (GRPC_CPP_PLUGIN grpc_cpp_plugin PATHS deps/install/bin)
Expand Down Expand Up @@ -59,9 +59,14 @@ file (GLOB_RECURSE MPC_TESTER_SRC test/*.cpp)
add_executable (${MPC_TESTER} ${MPC_TESTER_SRC} ${MPC_IF_SRC})
target_link_libraries (${MPC_TESTER} ${MPC_LIBS})

# file (GLOB MPCLIENT_DEMO_SOURCES src/demo/*.cpp)
# add_executable (${Target_mpclient_demo} ${MPCLIENT_DEMO_SOURCES} ${MPC_IF_SRC})
# target_link_libraries (${Target_mpclient_demo} ${Target_mpclient_client} ${MPC_LIBS})
file (GLOB MPCLIENT_DEMO_SOURCES example/*.cpp)
add_executable (${Target_mpclient_demo} ${MPCLIENT_DEMO_SOURCES} ${MPC_IF_SRC})

file (GLOB RPC_CLIENT_SOURCES test/rpc-client/*.cpp)
target_sources (${Target_mpclient_demo} PRIVATE ${RPC_CLIENT_SOURCES})

target_link_libraries (${Target_mpclient_demo} ${MPC_LIBS})


# Copy test cases files when they are modified
file (GLOB MPC_TESTS_CASES test/tests/cases/*)
Expand Down
2 changes: 1 addition & 1 deletion mplane_client/example/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ and executes the corresponding mpclient RPC.
## Usage
```
./wrapper.sh ./mpclient-demo \
--commands demo/cases/connect.json \
--commands ../example/cases/connect.json \
--netconfHost 192.168.10.13 \
--netconfUser oran \
--netconfPassword Password123 \
Expand Down
1 change: 1 addition & 0 deletions mplane_client/test/docker/test.integrated.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ RUN patch --directory /opt/dev/ntsim-ng/config/ --strip 4 config.json config.pat
COPY src /mplane_client/src
COPY test/rpc-client /mplane_client/test/rpc-client
COPY test/tests /mplane_client/test/tests
COPY example /mplane_client/example

WORKDIR /mplane_client/utils
RUN ./build_mpclient.sh --parallel 2
Expand Down

0 comments on commit 9856974

Please sign in to comment.