@@ -10,7 +10,7 @@
# the loop devices.
basedir=""
-runners=64
+runners=$(getconf _NPROCESSORS_CONF)
runner_list=()
runtimes=()
show_test_list=
@@ -30,6 +30,7 @@ usage()
check options
-D <dir> Directory to run in
+ -t <n> Number of concurrent tests to run
-n Output test list, do not run tests
-r randomize test order
--exact-order run tests in the exact order specified
@@ -81,6 +82,7 @@ while [ $# -gt 0 ]; do
-\? | -h | --help) usage ;;
-D) basedir=$2; shift ;;
+ -t) runners=$2; shift ;;
-g) _tl_setup_group $2 ; shift ;;
-e) _tl_setup_exclude_tests $2 ; shift ;;
-E) _tl_setup_exclude_file $2 ; shift ;;
@@ -111,6 +113,11 @@ if [ ! -d "$basedir" ]; then
echo "Invalid basedir specification"
usage
fi
+if [[ $runners -le 0 || $runners -gt 1024 ]]; then
+ echo "Invalid thread specificaton: $runners"
+ usage
+fi
+
if [ -d "$basedir/runner-0/" ]; then
prev_results=`ls -tr $basedir/runner-0/ | grep results | tail -1`
fi