8000 automated: linux: ltp: kirk runner: parallelize tests by roxell · Pull Request #561 · Linaro/test-definitions · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

automated: linux: ltp: kirk runner: parallelize tests #561

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 2, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion automated/linux/ltp/ltp.sh
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ SHARD_NUMBER=1
SHARD_INDEX=1

RUNNER=""
KIRK_WORKERS=1

LTP_TMPDIR=/ltp-tmp

Expand Down Expand Up @@ -58,7 +59,7 @@ usage() {
exit 0
}

while getopts "M:T:S:b:d:g:e:i:s:v:R:r:u:p:t:c:n:" arg; do
while getopts "M:T:S:b:d:g:e:i:s:v:R:r:u:p:t:c:n:w:" arg; do
case "$arg" in
T)
TST_CMDFILES="${OPTARG}"
Expand Down Expand Up @@ -135,6 +136,9 @@ while getopts "M:T:S:b:d:g:e:i:s:v:R:r:u:p:t:c:n:" arg; do
n)
SHARD_NUMBER="$OPTARG"
;;
w)
KIRK_WORKERS="$OPTARG"
;;
*)
usage
error_msg "No flag ${OPTARG}"
Expand Down Expand Up @@ -198,6 +202,7 @@ run_ltp() {
pipe0_status "${RUNNER} --framework ltp --run-suite shardfile \
-d ${LTP_TMPDIR} --env LTP_COLORIZE_OUTPUT=0 \
${SKIPFILE_PATH:+--skip-file} ${SKIPFILE_PATH} \
${KIRK_WORKERS:+--workers} ${KIRK_WORKERS} \
--json-report /tmp/kirk-report.json" \
"tee ${OUTPUT}/LTP_${LOG_FILE}.out"
parse_ltp_json_results "/tmp/kirk-report.json"
Expand Down
6 changes: 5 additions & 1 deletion automated/linux/ltp/ltp.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,10 @@ params:
# Set RUNNER to full path to kirk or to kirk if its in the PATH.
RUNNER: ""

# Number of parallel test workers to use with the new KIRK runner.
# # Tests can now run concurrently by specifying '--workers X'.
KIRK_WORKERS: 1

# If the following parameter is set, then the LTP suite is
# cloned and used unconditionally. In particular, the version
# of the suite is set to the commit pointed to by the
Expand Down Expand Up @@ -76,5 +80,5 @@ params:
run:
steps:
- cd ./automated/linux/ltp/
- ./ltp.sh -T "${TST_CMDFILES}" -s "${SKIP_INSTALL}" -v "${LTP_VERSION}" -M "${TIMEOUT_MULTIPLIER}" -R "${ROOT_PASSWD}" -r "${RUNNER}" -b "${BOARD}" -d "${LTP_TMPDIR}" -g "${BRANCH}" -e "${ENVIRONMENT}" -i "${LTP_INSTALL_PATH}" -S "${SKIPFILE}" -p "${TEST_DIR}" -u "${TEST_GIT_URL}" -t "${BUILD_FROM_TAR}" -n "${SHARD_NUMBER}" -c "${SHARD_INDEX}"
- ./ltp.sh -T "${TST_CMDFILES}" -s "${SKIP_INSTALL}" -v "${LTP_VERSION}" -M "${TIMEOUT_MULTIPLIER}" -R "${ROOT_PASSWD}" -r "${RUNNER}" -b "${BOARD}" -d "${LTP_TMPDIR}" -g "${BRANCH}" -e "${ENVIRONMENT}" -i "${LTP_INSTALL_PATH}" -S "${SKIPFILE}" -p "${TEST_DIR}" -u "${TEST_GIT_URL}" -t "${BUILD_FROM_TAR}" -n "${SHARD_NUMBER}" -c "${SHARD_INDEX}" -w "${KIRK_WORKERS}"
- ../../utils/send-to-lava.sh ./output/result.txt
0