• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1LTP User Guidelines
2===================
3
4For compiling and 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| 'LTPROOT'             | Prefix for installed LTP, the default is '/opt/ltp'.
14| 'LTP_COLORIZE_OUTPUT' | Force colorized output behaviour. 'y' or '1': always colorize
15                          'n' or '0': never colorize.
16| 'LTP_TIMEOUT_MUL'     | Multiply timeout, must be number >= 1 (> 1 is useful for
17                          slow machines to avoid unexpected timeout).
18                          Variable is also used in shell tests, but ceiled to int.
19| 'PATH'                | It's required to addjust path:
20                          `PATH="$PATH:$LTPROOT/testcases/bin"`
21| 'TMPDIR'              | Base directory for template directory, which is required by C tests
22                          `tst_test->needs_tmpdir=1` (or others) or shell 'TST_NEEDS_TMPDIR=1').
23| 'TST_NO_CLEANUP'      | Disable running test cleanup (defined in 'TST_CLEANUP').
24|==============================================================================
25
262. Colorized output
27-------------------
28
29By default LTP colorizes it's output unless using pipe or redirect to file.
30It's possible to force behaviour with 'LTP_COLORIZE_OUTPUT' environment variable.
31