1f08c3bdfSopenharmony_ciLTP User Guidelines 2f08c3bdfSopenharmony_ci=================== 3f08c3bdfSopenharmony_ci 4f08c3bdfSopenharmony_ciFor compiling, installing and running the tests see `README.md`. 5f08c3bdfSopenharmony_ciFor running LTP network tests see `testcases/network/README.md`. 6f08c3bdfSopenharmony_ci 7f08c3bdfSopenharmony_ci1. Library environment variables 8f08c3bdfSopenharmony_ci-------------------------------- 9f08c3bdfSopenharmony_ci 10f08c3bdfSopenharmony_ci|============================================================================== 11f08c3bdfSopenharmony_ci| 'KCONFIG_PATH' | The path to the kernel config file, (if not set, it tries 12f08c3bdfSopenharmony_ci the usual paths '/boot/config-RELEASE' or '/proc/config.gz'). 13f08c3bdfSopenharmony_ci| 'KCONFIG_SKIP_CHECK' | Skip kernel config check if variable set (not set by default). 14f08c3bdfSopenharmony_ci| 'LTPROOT' | Prefix for installed LTP, the default is '/opt/ltp'. 15f08c3bdfSopenharmony_ci| 'LTP_COLORIZE_OUTPUT' | Force colorized output behaviour. 'y' or '1': always colorize 16f08c3bdfSopenharmony_ci 'n' or '0': never colorize. 17f08c3bdfSopenharmony_ci| 'LTP_DEV' | Path to the block device to be used 18f08c3bdfSopenharmony_ci (C: '.needs_device = 1', shell: 'TST_NEEDS_DEVICE=1'). 19f08c3bdfSopenharmony_ci| 'LTP_SINGLE_FS_TYPE' | Testing only - specifies filesystem instead all 20f08c3bdfSopenharmony_ci supported (for tests with '.all_filesystems'). 21f08c3bdfSopenharmony_ci| 'LTP_DEV_FS_TYPE' | Filesystem used for testing (default: 'ext2'). 22f08c3bdfSopenharmony_ci| 'LTP_TIMEOUT_MUL' | Multiply timeout, must be number >= 1 (> 1 is useful for 23f08c3bdfSopenharmony_ci slow machines to avoid unexpected timeout). 24f08c3bdfSopenharmony_ci Variable is also used in shell tests, but ceiled to int. 25f08c3bdfSopenharmony_ci| 'LTP_VIRT_OVERRIDE' | Overrides virtual machine detection in the test 26f08c3bdfSopenharmony_ci library. Setting it to empty string tell the library 27f08c3bdfSopenharmony_ci that system is not a virtual machine. Other possible 28f08c3bdfSopenharmony_ci values are 'kvm', 'xen', 'zvm' and 'microsoft' that 29f08c3bdfSopenharmony_ci describe different types supervisors. 30f08c3bdfSopenharmony_ci| 'PATH' | It's required to addjust path: 31f08c3bdfSopenharmony_ci `PATH="$PATH:$LTPROOT/testcases/bin"` 32f08c3bdfSopenharmony_ci| 'TMPDIR' | Base directory for template directory (C: '.needs_tmpdir = 1' 33f08c3bdfSopenharmony_ci and others, which imply it, shell: 'TST_NEEDS_TMPDIR=1'). 34f08c3bdfSopenharmony_ci| 'TST_NO_CLEANUP' | Disable running test cleanup (defined in 'TST_CLEANUP'). 35f08c3bdfSopenharmony_ci|============================================================================== 36f08c3bdfSopenharmony_ci 37f08c3bdfSopenharmony_ci2. Colorized output 38f08c3bdfSopenharmony_ci------------------- 39f08c3bdfSopenharmony_ci 40f08c3bdfSopenharmony_ciBy default LTP colorizes it's output unless using pipe or redirect to file. 41f08c3bdfSopenharmony_ciIt's possible to force behaviour with 'LTP_COLORIZE_OUTPUT' environment variable. 42