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