Run all aimrt example (#42)
* run all examples of aimrt and generate the report * Handle the runtime environment and dependencies. * Format Check --------- Co-authored-by: hanjun <hanjun@agibot.com>
This commit is contained in:
parent
9d148527a4
commit
f22a869be3
@ -0,0 +1,13 @@
|
|||||||
|
# Adapt this config to your needs and rename it to e.g. roudi_config.toml
|
||||||
|
[general]
|
||||||
|
version = 1
|
||||||
|
|
||||||
|
[[segment]]
|
||||||
|
|
||||||
|
[[segment.mempool]]
|
||||||
|
size = 1024
|
||||||
|
count = 1000
|
||||||
|
|
||||||
|
[[segment.mempool]]
|
||||||
|
size = 2048
|
||||||
|
count = 500
|
@ -1,4 +1,3 @@
|
|||||||
|
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
./aimrt_main --cfg_file_path=./cfg/examples_plugins_iceoryx_plugin_pb_chn_benchmark_pub_cfg.yaml
|
./aimrt_main --cfg_file_path=./cfg/examples_plugins_iceoryx_plugin_pb_chn_benchmark_pub_cfg.yaml
|
@ -1,4 +1,3 @@
|
|||||||
|
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
./aimrt_main --cfg_file_path=./cfg/examples_plugins_iceoryx_plugin_pb_chn_benchmark_sub_cfg.yaml
|
./aimrt_main --cfg_file_path=./cfg/examples_plugins_iceoryx_plugin_pb_chn_benchmark_sub_cfg.yaml
|
@ -1,4 +1,3 @@
|
|||||||
|
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
./aimrt_main --cfg_file_path=./cfg/examples_plugins_iceoryx_plugin_pb_chn_pub_cfg.yaml
|
./aimrt_main --cfg_file_path=./cfg/examples_plugins_iceoryx_plugin_pb_chn_pub_cfg.yaml
|
@ -1,4 +1,3 @@
|
|||||||
|
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
./aimrt_main --cfg_file_path=./cfg/examples_plugins_iceoryx_plugin_pb_chn_sub_cfg.yaml
|
./aimrt_main --cfg_file_path=./cfg/examples_plugins_iceoryx_plugin_pb_chn_sub_cfg.yaml
|
@ -1,4 +1,3 @@
|
|||||||
|
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
source install/share/example_ros2/local_setup.bash
|
source install/share/example_ros2/local_setup.bash
|
||||||
|
@ -1,4 +1,3 @@
|
|||||||
|
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
source install/share/example_ros2/local_setup.bash
|
source install/share/example_ros2/local_setup.bash
|
||||||
|
@ -1,4 +1,3 @@
|
|||||||
|
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
./aimrt_main --cfg_file_path=./cfg/examples_plugins_zenoh_plugin_pb_chn_benchmark_pub_cfg.yaml
|
./aimrt_main --cfg_file_path=./cfg/examples_plugins_zenoh_plugin_pb_chn_benchmark_pub_cfg.yaml
|
@ -1,4 +1,3 @@
|
|||||||
|
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
./aimrt_main --cfg_file_path=./cfg/examples_plugins_zenoh_plugin_pb_chn_benchmark_sub_cfg.yaml
|
./aimrt_main --cfg_file_path=./cfg/examples_plugins_zenoh_plugin_pb_chn_benchmark_sub_cfg.yaml
|
@ -1,4 +1,3 @@
|
|||||||
|
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
./aimrt_main --cfg_file_path=./cfg/examples_plugins_zenoh_plugin_pb_chn_pub_cfg.yaml
|
./aimrt_main --cfg_file_path=./cfg/examples_plugins_zenoh_plugin_pb_chn_pub_cfg.yaml
|
@ -1,4 +1,3 @@
|
|||||||
|
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
./aimrt_main --cfg_file_path=./cfg/examples_plugins_zenoh_plugin_pb_chn_sub_cfg.yaml
|
./aimrt_main --cfg_file_path=./cfg/examples_plugins_zenoh_plugin_pb_chn_sub_cfg.yaml
|
@ -1,4 +1,3 @@
|
|||||||
|
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
./aimrt_main --cfg_file_path=./cfg/examples_plugins_zenoh_plugin_pb_rpc_benchmark_client_cfg.yaml
|
./aimrt_main --cfg_file_path=./cfg/examples_plugins_zenoh_plugin_pb_rpc_benchmark_client_cfg.yaml
|
@ -1,4 +1,3 @@
|
|||||||
|
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
./aimrt_main --cfg_file_path=./cfg/examples_plugins_zenoh_plugin_pb_rpc_client_cfg.yaml
|
./aimrt_main --cfg_file_path=./cfg/examples_plugins_zenoh_plugin_pb_rpc_client_cfg.yaml
|
@ -1,4 +1,3 @@
|
|||||||
|
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
./aimrt_main --cfg_file_path=./cfg/examples_plugins_zenoh_plugin_pb_rpc_server_cfg.yaml
|
./aimrt_main --cfg_file_path=./cfg/examples_plugins_zenoh_plugin_pb_rpc_server_cfg.yaml
|
@ -1,4 +1,3 @@
|
|||||||
|
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
source install/share/example_ros2/local_setup.bash
|
source install/share/example_ros2/local_setup.bash
|
||||||
|
@ -1,4 +1,3 @@
|
|||||||
|
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
source install/share/example_ros2/local_setup.bash
|
source install/share/example_ros2/local_setup.bash
|
||||||
|
@ -1,4 +1,3 @@
|
|||||||
|
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
source install/share/example_ros2/local_setup.bash
|
source install/share/example_ros2/local_setup.bash
|
||||||
|
@ -1,4 +1,3 @@
|
|||||||
|
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
source install/share/example_ros2/local_setup.bash
|
source install/share/example_ros2/local_setup.bash
|
||||||
|
@ -30,7 +30,7 @@ test_items = [
|
|||||||
# ------------------------------iceoryx_pb_chn---------------------------------------------
|
# ------------------------------iceoryx_pb_chn---------------------------------------------
|
||||||
{
|
{
|
||||||
"script_path": [
|
"script_path": [
|
||||||
"./iox-roudi",
|
"./iox-roudi --config-file=./cfg/roudi_config.toml",
|
||||||
"./start_examples_plugins_iceoryx_plugin_pb_chn_sub.sh",
|
"./start_examples_plugins_iceoryx_plugin_pb_chn_sub.sh",
|
||||||
"./start_examples_plugins_iceoryx_plugin_pb_chn_pub.sh",
|
"./start_examples_plugins_iceoryx_plugin_pb_chn_pub.sh",
|
||||||
],
|
],
|
||||||
@ -50,7 +50,7 @@ test_items = [
|
|||||||
# ------------------------------iceoryx_ros2_chn---------------------------------------------
|
# ------------------------------iceoryx_ros2_chn---------------------------------------------
|
||||||
{
|
{
|
||||||
"script_path": [
|
"script_path": [
|
||||||
"./iox-roudi",
|
"./iox-roudi --config-file=./cfg/roudi_config.toml",
|
||||||
"./start_examples_plugins_iceoryx_plugin_ros2_chn_sub.sh",
|
"./start_examples_plugins_iceoryx_plugin_ros2_chn_sub.sh",
|
||||||
"./start_examples_plugins_iceoryx_plugin_ros2_chn_pub.sh",
|
"./start_examples_plugins_iceoryx_plugin_ros2_chn_pub.sh",
|
||||||
],
|
],
|
||||||
|
@ -31,7 +31,7 @@ class ExampleRunner:
|
|||||||
if self.args.save is not None:
|
if self.args.save is not None:
|
||||||
self.check_and_create_directory(self.args.save) # todo ...
|
self.check_and_create_directory(self.args.save) # todo ...
|
||||||
subprocess.run(
|
subprocess.run(
|
||||||
["pip3", "install", "./aimrt_py_pkg/dist/aimrt_py-0.9.0-cp310-cp310-linux_x86_64.whl"],
|
["pip3", "install", "./aimrt_py_pkg/dist/aimrt_py-0.9.0-cp310-cp310-linux_x86_64.whl", "--force-reinstall"],
|
||||||
cwd=defualt_build_path,
|
cwd=defualt_build_path,
|
||||||
)
|
)
|
||||||
subprocess.run(
|
subprocess.run(
|
||||||
@ -83,13 +83,13 @@ class ExampleRunner:
|
|||||||
|
|
||||||
width = 65
|
width = 65
|
||||||
report = f"""
|
report = f"""
|
||||||
{CYAN}{BOLD}
|
{CYAN}{BOLD}
|
||||||
_____ _ ____ _
|
_____ _ ____ _
|
||||||
|_ _|__ ___| |_ | _ \\ ___ _ __ ___ _ __| |_ _
|
|_ _|__ ___| |_ | _ \ ___ _ __ ___ _ __| |_ _
|
||||||
| |/ _ \\/ __| __| | |_) / _ \\ '_ \\ / _ \\| '__| __(_)
|
| |/ _ \/ __| __| | |_) / _ \ '_ \ / _ \| '__| __(_)
|
||||||
| | __/\\__ \\ |_ | _ < __/ |_) | (_) | | | |_ _
|
| | __/\__ \ |_ | _ < __/ |_) | (_) | | | |_ _
|
||||||
|_|\\___||___/\\__| |_| \\_\\___| .__/ \\___/|_| \\__(_)
|
|_|\___||___/\__| |_| \_\___| .__/ \___/|_| \__(_)
|
||||||
|_|
|
|_|
|
||||||
{RESET}
|
{RESET}
|
||||||
{YELLOW}{BOLD}► Overall Result:{RESET}
|
{YELLOW}{BOLD}► Overall Result:{RESET}
|
||||||
{WHITE}{'Total tests:':┈<{width}}{CYAN}{total_tests}
|
{WHITE}{'Total tests:':┈<{width}}{CYAN}{total_tests}
|
||||||
|
@ -6,7 +6,8 @@
|
|||||||
# -i <string1> <string2> ... : ignore test tags, with logic is "OR" (default: None)
|
# -i <string1> <string2> ... : ignore test tags, with logic is "OR" (default: None)
|
||||||
# -p : print test log to console (default: False), we don't suggest to use this option with n > 1
|
# -p : print test log to console (default: False), we don't suggest to use this option with n > 1
|
||||||
|
|
||||||
|
source ../../../build/install/share/ros2_plugin_proto/local_setup.bash
|
||||||
|
|
||||||
export PYTHONPATH=$(dirname "$(pwd)"):$PYTHONPATH
|
export PYTHONPATH=$(dirname "$(pwd)"):$PYTHONPATH
|
||||||
|
|
||||||
python3 ./run_all_example.py -n 20 -s "./test_log" -t "python"
|
python3 ./run_all_example.py -n 20 -s "./test_log" $@
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user