1# -*- Python -*- 2 3# Configuration file for the 'lit' test runner. 4 5import re 6 7# name: The name of this test suite. 8config.name = 'rs2spirv' 9 10# suffixes: A list of file extensions to treat as test files. 11config.suffixes = ['.ll'] 12 13# testFormat: The test format to use to interpret tests. 14import lit.formats 15config.test_format = lit.formats.ShTest() 16 17ANDROID_HOST_OUT = os.getenv("ANDROID_HOST_OUT") 18 19if not ANDROID_HOST_OUT: 20 import sys 21 sys.exit(1) 22 23# test_source_root: The path where tests are located (default is the test suite 24# root). 25config.test_source_root = None 26# test_exec_root: The root path where tests should be run. 27config.test_exec_root = os.path.join(ANDROID_HOST_OUT, 'tests', 'rs2spirv') 28 29tools_dir = os.pathsep.join([os.path.join(ANDROID_HOST_OUT, 'bin'),]) 30