Skip to content

Commit

Permalink
Updating CI
Browse files Browse the repository at this point in the history
  • Loading branch information
agosh01 committed Aug 6, 2024
1 parent 28eca68 commit 2260960
Show file tree
Hide file tree
Showing 4 changed files with 52 additions and 6 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/tck-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -89,11 +89,11 @@ jobs:
if ("ue2" in feature){
for (var language_two in feature["ue2"]){
var second_ue = feature["ue2"][language_two]
var command_str = "behave --define uE1=" + port_language + " --define uE2=" + second_ue + " --define transport1=" + port_transport + " --define transport2=" + port_transport + " --format json --outfile './reports/" + feature["feature_name"] + "_" + port_language + "_" + second_ue + ".json' --format html --outfile './reports/" + feature["feature_name"] + "_" + port_language + "_" + second_ue + ".html' './features/tests/" + feature["path"] + "/" + feature["feature_name"] + ".feature'"
var command_str = "behave --define uE1=" + port_language + " --define uE2=" + second_ue + " --define transport1=" + port_transport + " --define transport2=" + port_transport + " --format json --outfile './reports/" + feature["feature_name"] + "_" + port_language + "_" + second_ue + ".json' --format html --outfile './reports/" + feature["feature_name"] + "_" + port_language + "_" + second_ue + "_" + port_transport + ".html' './features/tests/" + feature["path"] + "/" + feature["feature_name"] + ".feature'"
command_list.push(command_str);
}
} else {
var command_str = "behave --define uE1=" + port_language + " --define transport1=" + port_transport + " --format json --outfile './reports/" + feature["feature_name"] + "_" + port_language + ".json' --format html --outfile './reports/" + feature["feature_name"] + "_" + port_language + ".html' './features/tests/" + feature["path"] + "/" + feature["feature_name"] + ".feature'"
var command_str = "behave --define uE1=" + port_language + " --define transport1=" + port_transport + " --format json --outfile './reports/" + feature["feature_name"] + "_" + port_language + ".json' --format html --outfile './reports/" + feature["feature_name"] + "_" + port_language + "_" + port_transport + ".html' './features/tests/" + feature["path"] + "/" + feature["feature_name"] + ".feature'"
command_list.push(command_str);
}
}
Expand Down
30 changes: 30 additions & 0 deletions scripts/install_cpp_test_agent.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,10 @@ def main():
parser.add_argument(
'--up-client-socket-version', type=str, help='Specify the version of up_client_socket', required=False
)
parser.add_argument('--zenohc-version', type=str, help='Specify the version of zenohc', required=False)
parser.add_argument('--zenohcpp-version', type=str, help='Specify the version of zenohcpp', required=False)
parser.add_argument('--up-transport-zenoh-cpp', type=str, help='Specify the version of zenohcpp', required=False)

args = parser.parse_args()

repo_url = "https://github.com/eclipse-uprotocol/up-conan-recipes.git"
Expand Down Expand Up @@ -74,6 +78,32 @@ def main():
]
)

# Install zenohc
print("Install zenohc")
if args.zenohc_version:
run_command(["conan", "create", "zenohc-tmp/prebuilt", "--version", args.zenohc_version, "--build=missing"])

# Install zenohcpp
print("Install zenohcpp")
if args.zenohcpp_version:
run_command(
["conan", "create", "zenohcpp-tmp/from-source", "--version", args.zenohcpp_version, "--build=missing"]
)

# Install up-transport-zenoh-cpp
print("Install up-transport-zenoh-cpp")
if args.up_transport_zenoh_cpp:
run_command(
[
"conan",
"create",
"up-transport-zenoh-cpp/developer/",
"--version",
args.up_transport_zenoh_cpp,
"--build=missing",
]
)

with change_directory(os.path.abspath(os.path.join("..", "..", "test_agent", "cpp"))):
# Build the CPP test agent executable
print("Build the CPP test agent executable")
Expand Down
5 changes: 4 additions & 1 deletion scripts/install_dependencies.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,10 @@ def main():
"python install_cpp_test_agent.py "
"--up-core-api-version 1.6.0 "
"--up-cpp-version 1.0.1-rc1 "
"--up-client-socket-version 1.0.0-dev"
"--up-client-socket-version 1.0.0-dev "
"--zenohc-version 1.0.0-rc5 "
"--zenohcpp-version 1.0.0-rc5 "
"--up-transport-zenoh-cpp 1.0.0-dev"
)


Expand Down
19 changes: 16 additions & 3 deletions test_manager/testData/workflow_test_data.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,26 +18,39 @@
"ue1": ["python", "cpp", "java"],
"transports": ["socket"]
},
{
"feature_name" : "register_and_send",
"path": "transport_rpc",
"ue1": ["cpp"],
"ue2": ["cpp"],
"transports": ["zenoh"]
},
{
"feature_name" : "register_and_unregister",
"path": "transport_rpc",
"ue1": ["cpp"],
"transports": ["zenoh"]
},
{
"feature_name" : "notification_sink_and_source",
"path": "L2_APIs",
"ue1": ["cpp"],
"ue2": ["cpp"],
"transports": ["socket"]
"transports": ["socket", "zenoh"]
},
{
"feature_name" : "publish_and_subscribe",
"path": "L2_APIs",
"ue1": ["cpp"],
"ue2": ["cpp"],
"transports": ["socket"]
"transports": ["socket", "zenoh"]
},
{
"feature_name" : "rpc_server_and_client",
"path": "L2_APIs",
"ue1": ["cpp"],
"ue2": ["cpp"],
"transports": ["socket"]
}
}

]

0 comments on commit 2260960

Please sign in to comment.