ltp

The testing suites contain a collection of tools for testing the Linux kernel and related features.

What It Tests

  • Linux Kernel and Related Features: validate reliability, robustness, and stability of the Linux Kernel and features.

Preconditions

  • System requires root privileges

  • LTP test suites should be available

Test Parameters

Parameter

Default

Description

TST_CMDFILES

"syscalls,mm,math,timers,fcntl-locktests,ipc,fsx,fs,hugetlb,io,nptl,pty,containers,fs_bind,filecaps,admin_tools,connectors"

Specify test set

SKIP_INSTALL

"false"

Skip package installation

LTP_VERSION

""

LTP version

TIMEOUT_MULTIPLIER

3

Timeout

ROOT_PASSWD

root

Root user password

BOARD

""

Match board name with a list of board names in skipfile

LTP_TMPDIR

"/ltp-tmp"

LTP temporary directory

BRANCH

""

Match branch name with a list of branch names in skipfile

ENVIRONMENT

""

Match environment name with a list of environment names in skipfile

LTP_INSTALL_PATH

"/opt/ltp"

LTP installation path

SKIPFILE

""

List of known unsupported test cases to be skipped

TEST_DIR

""

LTP download or clone directory

TEST_GIT_URL

""

LTP clone url

BUILD_FROM_TAR

"false"

Download and build LTP from a released tarball

SHARD_NUMBER

1

Number of shards that will be done

SHARD_INDEX

1

Which bucket to run

Test Steps

- cd ./automated/linux/ltp/
- ./ltp.sh -T "${TST_CMDFILES}" -s "${SKIP_INSTALL}" -v "${LTP_VERSION}" -M "${TIMEOUT_MULTIPLIER}" -R "${ROOT_PASSWD}" -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}"

Refer to ltp.yaml for complete test definition and execution details.

Expected Results

  • The sub test cases are PASS

References