AimRT/src/examples/utils/run_all_example.sh
han J f22a869be3
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>
2024-10-21 15:20:21 +08:00

14 lines
579 B
Bash
Executable File

#!/bin/bash
# -n <int> : number of iterations (default: 10)
# -s <string> : fault test log output directory (default: "build/test_log")
# -t <string1> <string2> ... : test tags, with logic is "AND" (default: "all")
# -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
source ../../../build/install/share/ros2_plugin_proto/local_setup.bash
export PYTHONPATH=$(dirname "$(pwd)"):$PYTHONPATH
python3 ./run_all_example.py -n 20 -s "./test_log" $@