120e9d4caSVladislav Khmelevsky# -*- Python -*- 220e9d4caSVladislav Khmelevsky 320e9d4caSVladislav Khmelevsky# Configuration file for the 'lit' test runner. 420e9d4caSVladislav Khmelevsky 520e9d4caSVladislav Khmelevskyimport os 620e9d4caSVladislav Khmelevskyimport subprocess 720e9d4caSVladislav Khmelevsky 820e9d4caSVladislav Khmelevskyimport lit.formats 920e9d4caSVladislav Khmelevsky 1020e9d4caSVladislav Khmelevsky# name: The name of this test suite. 11*f98ee40fSTobias Hietaconfig.name = "BOLT-Unit" 1220e9d4caSVladislav Khmelevsky 1320e9d4caSVladislav Khmelevsky# suffixes: A list of file extensions to treat as test files. 1420e9d4caSVladislav Khmelevskyconfig.suffixes = [] 1520e9d4caSVladislav Khmelevsky 1620e9d4caSVladislav Khmelevsky# test_source_root: The root path where tests are located. 1720e9d4caSVladislav Khmelevsky# test_exec_root: The root path where tests should be run. 18*f98ee40fSTobias Hietaconfig.test_exec_root = os.path.join(config.bolt_obj_root, "unittests") 1920e9d4caSVladislav Khmelevskyconfig.test_source_root = config.test_exec_root 2020e9d4caSVladislav Khmelevsky 2120e9d4caSVladislav Khmelevsky# testFormat: The test format to use to interpret tests. 22*f98ee40fSTobias Hietaconfig.test_format = lit.formats.GoogleTest(config.llvm_build_mode, "Tests") 23