summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
dafd026)
auster is a scipt that kicks off the Lustre test suites.
auster assumes that all scirpts are written in bash and
runs all script using bash. We may want to run other scripts
to test Lustre and we need to allow the user to choose what
scripting language to use to kick off their scripts.
Test-Parameters: trivial
Signed-off-by: James Nunez <jnunez@whamcloud.com>
Change-Id: Ifbd3707171de57912306cf051a98922249c4b2a9
Reviewed-on: https://review.whamcloud.com/34737
Tested-by: Jenkins
Reviewed-by: Joseph Gmitter <jgmitter@whamcloud.com>
Reviewed-by: Jian Yu <yujian@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
-v Verbose mode
-l Send logs to the Maloo database after run
(can be done later by running maloo_upload.sh)
-v Verbose mode
-l Send logs to the Maloo database after run
(can be done later by running maloo_upload.sh)
+ -L Script language of test suite. Default: bash
-h This help.
Suite options
-h This help.
Suite options
repeat_count=1
upload_logs=false
reformat=false
repeat_count=1
upload_logs=false
reformat=false
test_logs_dir=/tmp/test_logs/$(date +%Y-%m-%d)/$(date +%H%M%S)
export ${SLOW:=no}
export ${NAME:=local}
test_logs_dir=/tmp/test_logs/$(date +%Y-%m-%d)/$(date +%H%M%S)
export ${SLOW:=no}
export ${NAME:=local}
-while getopts "c:d:D:nkf:S:g:i:rRslhv" opt
+while getopts "c:d:D:nkf:S:g:i:rRslL:hv" opt
- case "$opt" in
- c) export CONFIG=$OPTARG;;
- d) test_logs_dir=$OPTARG/$(date +%Y-%m-%d)/$(date +%H%M%S);;
- D) test_logs_dir=$OPTARG;;
- g) test_group_file=$OPTARG;;
- S) FIRST_SUITE=$OPTARG;;
- k) export FAIL_ON_ERROR=false;;
- n) dry_run=:;;
- v) verbose=:;;
- i) repeat_count=$OPTARG;;
- f) NAME=$OPTARG;;
- R) do_reset=:;;
- r) reformat=:;;
- s) export SLOW=yes;;
- l) upload_logs=true;;
- h|\?) usage;;
- esac
+ case "$opt" in
+ c) export CONFIG=$OPTARG;;
+ d) test_logs_dir=$OPTARG/$(date +%Y-%m-%d)/$(date +%H%M%S);;
+ D) test_logs_dir=$OPTARG;;
+ g) test_group_file=$OPTARG;;
+ S) FIRST_SUITE=$OPTARG;;
+ k) export FAIL_ON_ERROR=false;;
+ n) dry_run=:;;
+ v) verbose=:;;
+ i) repeat_count=$OPTARG;;
+ f) NAME=$OPTARG;;
+ R) do_reset=:;;
+ r) reformat=:;;
+ s) export SLOW=yes;;
+ l) upload_logs=true;;
+ L) script_lang=$OPTARG;;
+ h|\?) usage;;
+ esac
done
# If a test_group_file is specified, then ignore rest of command line
done
# If a test_group_file is specified, then ignore rest of command line
-#
-# Various paramters for the tests scripts
-#
-#: ${SIZE:=$((RAMKB * 2))}
-#: ${RSIZE:=512}
-#: ${UID:=1000}
-#: ${MOUNT=/mnt/lustre}
-#: ${MOUNT2:=${MOUNT}2}
-#: ${COUNT:=1000}
-#: ${TMP:=/tmp}
-
reset_lustre() {
if $do_reset; then
stopall
reset_lustre() {
if $do_reset; then
stopall
rm -f $TF_FAIL
touch $TF_SKIP
local start_ts=$(date +%s)
rm -f $TF_FAIL
touch $TF_SKIP
local start_ts=$(date +%s)
- doit bash $suite_script
+ doit $script_lang $suite_script
local rc=$?
local duration=$(($(date +%s) - $start_ts))
local rc=$?
local duration=$(($(date +%s) - $start_ts))