Skip to content

Commit

Permalink
Add conan_test_package for rsa_discovery_zeroconf
Browse files Browse the repository at this point in the history
  • Loading branch information
xuzhenbao committed May 4, 2023
1 parent 000bdfc commit 1998e10
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
12 changes: 12 additions & 0 deletions examples/conan_test_package/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -237,6 +237,18 @@ if (TEST_RSA_DISCOVERY_ETCD)
)
endif ()

option(TEST_RSA_DISCOVERY_ZEROCONF "Test the Discovery (ZEROCONF) bundle" OFF)
if (TEST_RSA_DISCOVERY_ZEROCONF)
add_celix_container(use_rsa_discovery_zeroconf
BUNDLES
Celix::rsa_discovery_zeroconf
Celix::rsa_topology_manager
my_rsa
hello
PROPERTIES
)
endif ()

option(TEST_SHELL "Test shell" OFF)
if (TEST_SHELL)
add_executable(use_shell test_shell.c)
Expand Down
3 changes: 3 additions & 0 deletions examples/conan_test_package/conanfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ def build(self):
cmake.definitions["TEST_RSA_RPC_JSON"] = self.options["celix"].build_rsa_json_rpc
cmake.definitions["TEST_RSA_DISCOVERY_CONFIGURED"] = self.options["celix"].build_rsa_discovery_configured
cmake.definitions["TEST_RSA_DISCOVERY_ETCD"] = self.options["celix"].build_rsa_discovery_etcd
cmake.definitions["TEST_RSA_DISCOVERY_ZEROCONF"] = self.options["celix"].build_rsa_discovery_zeroconf
cmake.definitions["TEST_SHELL"] = self.options["celix"].build_shell
if self.options["celix"].build_shell:
cmake.definitions["TEST_CXX_SHELL"] = self.options["celix"].celix_cxx17 or self.options["celix"].celix_cxx14
Expand Down Expand Up @@ -93,6 +94,8 @@ def test(self):
self.run("./use_rsa_configured", cwd=os.path.join("deploy", "use_rsa_configured"), run_environment=True)
if self.options["celix"].build_rsa_discovery_etcd:
self.run("./use_rsa_etcd", cwd=os.path.join("deploy", "use_rsa_etcd"), run_environment=True)
if self.options["celix"].build_rsa_discovery_zeroconf:
self.run("./use_rsa_discovery_zeroconf", cwd=os.path.join("deploy", "use_rsa_discovery_zeroconf"), run_environment=True)
if self.options["celix"].build_shell:
self.run("./use_shell", run_environment=True)
if self.options["celix"].celix_cxx17 or self.options["celix"].celix_cxx14:
Expand Down

0 comments on commit 1998e10

Please sign in to comment.