From 5d0fe870745356869c0804b57a16fd671b8a3c6c Mon Sep 17 00:00:00 2001 From: Florent 'Skia' Jacquet Date: Fri, 10 Nov 2023 12:05:21 +0200 Subject: tools: add usage to jenkins-runner --- tools/jenkins-runner | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) 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...\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=}";; -- cgit v1.2.3