[AArch64] Add fpext and fpround costs (#119292)
[llvm-project.git] / mlir / test / Unit / lit.cfg.py
blob1898b72adf00280bbb0eae60151afe8f4c072f5f
1 # -*- Python -*-
3 # Configuration file for the 'lit' test runner.
5 import os
6 import subprocess
8 import lit.formats
10 # name: The name of this test suite.
11 config.name = "MLIR-Unit"
13 # suffixes: A list of file extensions to treat as test files.
14 config.suffixes = []
16 # test_source_root: The root path where tests are located.
17 # test_exec_root: The root path where tests should be run.
18 config.test_exec_root = os.path.join(config.mlir_obj_root, "unittests")
19 config.test_source_root = config.test_exec_root
21 # testFormat: The test format to use to interpret tests.
22 config.test_format = lit.formats.GoogleTest(config.llvm_build_mode, "Tests")
24 # Propagate the temp directory. Windows requires this because it uses \Windows\
25 # if none of these are present.
26 if "TMP" in os.environ:
27 config.environment["TMP"] = os.environ["TMP"]
28 if "TEMP" in os.environ:
29 config.environment["TEMP"] = os.environ["TEMP"]
31 # Propagate HOME as it can be used to override incorrect homedir in passwd
32 # that causes the tests to fail.
33 if "HOME" in os.environ:
34 config.environment["HOME"] = os.environ["HOME"]
36 # Propagate sanitizer options.
37 for var in [
38 "ASAN_SYMBOLIZER_PATH",
39 "HWASAN_SYMBOLIZER_PATH",
40 "MSAN_SYMBOLIZER_PATH",
41 "TSAN_SYMBOLIZER_PATH",
42 "UBSAN_SYMBOLIZER_PATH",
43 "ASAN_OPTIONS",
44 "HWASAN_OPTIONS",
45 "MSAN_OPTIONS",
46 "TSAN_OPTIONS",
47 "UBSAN_OPTIONS",
49 if var in os.environ:
50 config.environment[var] = os.environ[var]