diff options
author | Naresh Kamboju <naresh.kamboju@linaro.org> | 2017-07-06 17:18:33 +0530 |
---|---|---|
committer | Naresh Kamboju <naresh.kamboju@linaro.org> | 2017-07-06 17:18:33 +0530 |
commit | 6e9847a7446013431d1bf8b316359a20177a4c5a (patch) | |
tree | 82e6aab55bf445a39e13e49363433ec194752db1 | |
parent | 58e8b0952ce44d94cb186ce9e912fc1ff6c42018 (diff) |
ltp.sh: runltp update args
Signed-off-by: Naresh Kamboju <naresh.kamboju@linaro.org>
-rwxr-xr-x | automated/linux/ltp/ltp.sh | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/automated/linux/ltp/ltp.sh b/automated/linux/ltp/ltp.sh index 49f4a36..89b2534 100755 --- a/automated/linux/ltp/ltp.sh +++ b/automated/linux/ltp/ltp.sh @@ -20,7 +20,12 @@ LTP_TMPDIR="" LTP_PATH=/opt/ltp usage() { - echo "Usage: ${0} [-T mm,math,syscalls] [-S skipfile-lsk-juno] [-s <flase>] [-v LTP_VERSION] [-M Timeout_Multiplier] [-d LTP_TMPDIR]" 1>&2 + echo "Usage: ${0} [-T mm,math,syscalls] + [-S skipfile-lsk-juno] + [-s True|False] + [-v LTP_VERSION] + [-M Timeout_Multiplier] + [-d LTP_TMPDIR] " 1>&2 exit 0 } @@ -49,6 +54,7 @@ while getopts "M:T:S:s:v:d:" arg; do v) LTP_VERSION="${OPTARG}";; # Slow machines need more timeout Default is 5min and multiply * MINUTES M) export LTP_TIMEOUT_MUL="${OPTARG}";; + # LTP_TMPDIR is needed case of OE builds where /tmp is mounted as tmpfs d) mkdir -p "${OPTARG}" LTP_TMPDIR="-d ${OPTARG}" @@ -80,7 +86,11 @@ run_ltp() { # shellcheck disable=SC2164 cd "${LTP_PATH}" - pipe0_status "./runltp -p -q -f ${TST_CMDFILES} -l ${OUTPUT}/LTP_${LOG_FILE}.log -C ${OUTPUT}/LTP_${LOG_FILE}.failed ${SKIPFILE} ${LTP_TMPDIR}" "tee ${OUTPUT}/LTP_${LOG_FILE}.out" + pipe0_status "./runltp -p -q -f ${TST_CMDFILES} \ + -l ${OUTPUT}/LTP_${LOG_FILE}.log \ + -C ${OUTPUT}/LTP_${LOG_FILE}.failed \ + ${SKIPFILE} \ + ${LTP_TMPDIR}" "tee ${OUTPUT}/LTP_${LOG_FILE}.out" check_return "runltp_${LOG_FILE}" parse_ltp_output "${OUTPUT}/LTP_${LOG_FILE}.log" |