summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFlorent 'Skia' Jacquet <[email protected]>2023-11-10 12:05:21 +0200
committerFlorent 'Skia' Jacquet <[email protected]>2023-11-10 17:23:02 +0200
commit5d0fe870745356869c0804b57a16fd671b8a3c6c (patch)
tree30e08d08453809b5453ab16d207215e21cabe076
parenta349105809af6188cb394e300a99846df3d117f0 (diff)
tools: add usage to jenkins-runner
-rwxr-xr-xtools/jenkins-runner21
1 files changed, 21 insertions, 0 deletions
diff --git a/tools/jenkins-runner b/tools/jenkins-runner
index 375dc3c1..55658940 100755
--- a/tools/jenkins-runner
+++ b/tools/jenkins-runner
@@ -44,6 +44,23 @@ cleanup() {
esac
fi
}
+usage() {
+ echo -e "Curtin jenkins-runner"
+ echo -e ""
+ echo -e "This script is just a wrapper for calling underlying nosetests3 tests."
+ echo -e "Filtering options are passed to that tool, so you may want to have a look at its usage too."
+ echo -e ""
+ echo -e "USAGE:"
+ echo -e "\tjenkins-runner [OPTIONS] [PATH ...]"
+ echo -e ""
+ echo -e "ARGS:"
+ echo -e "\t<PATH>...\n\t\tA list of tests/vmtest* files to run"
+ echo -e "OPTIONS:"
+ echo -e "\tCURTIN_VMTEST_*\t\tSet some CURTIN_VMTEST_ variables from command line"
+ echo -e "\t--skip-images-dirlock\tSkip image directory lock"
+ echo -e "\t--filter\t\tFilter the tests to run"
+ echo -e "\t-p, --parallel\t\tSet the number of parallel jobs"
+}
if [ "$reuse" != "1" ]; then
if [ -d "$topdir" ]; then
@@ -70,6 +87,10 @@ tests=( )
skip_images_dirlock=0
while [ $# -ne 0 ]; do
case "$1" in
+ -h|--help)
+ usage
+ exit 0
+ ;;
# allow setting these environment variables on cmdline.
CURTIN_VMTEST_*=*) export "$1";;
--filter=*) ntfilters[${#ntfilters[@]}]="${1#--filter=}";;