Skip to content
Snippets Groups Projects
Commit bef67ce7 authored by Thibault Martin's avatar Thibault Martin
Browse files

New option -j <jobs>: no more than <jobs> simultaneously

parent e5ef6f68
No related branches found
No related tags found
No related merge requests found
......@@ -74,6 +74,7 @@ function Usage
echo " -u|--update run tests and update oracles (and WP-cache)"
echo " -s|--save save dune logs into $DUNE_LOG"
echo " -v|--verbose print executed commands"
echo " -j|--jobs <jobs> Run no more than <jobs> commands simultaneously."
echo " -h|--help print this help"
echo ""
echo "VARIABLES"
......@@ -155,13 +156,22 @@ do
PULLCACHE=yes
;;
"-u"|"--update")
DUNE_OPT+="--auto-promote"
DUNE_OPT+="--auto-promote "
UPDATE=yes
;;
"-v"|"--verbose")
DUNE_OPT+="--display=short"
DUNE_OPT+="--display=short "
VERBOSE=yes
;;
"-j"|"--jobs")
if [[ $2 != \-* ]] && [ "$2" -ge 1 ]; then
DUNE_OPT+="-j $2 "
shift
else
ErrorUsage \
"wrong argument ('$2') for '-j|--jobs', int >= 1 expected"
fi
;;
"-l"|"--logs")
LOGS=yes
;;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment