Home | History | Annotate | Download | only in tests
      1 # -*- Python -*-
      2 
      3 # Configuration file for the 'lit' test runner.
      4 
      5 import re
      6 
      7 # name: The name of this test suite.
      8 config.name = 'rs2spirv'
      9 
     10 # suffixes: A list of file extensions to treat as test files.
     11 config.suffixes = ['.ll']
     12 
     13 # testFormat: The test format to use to interpret tests.
     14 import lit.formats
     15 config.test_format = lit.formats.ShTest()
     16 
     17 ANDROID_HOST_OUT = os.getenv("ANDROID_HOST_OUT")
     18 
     19 if 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).
     25 config.test_source_root = None
     26 # test_exec_root: The root path where tests should be run.
     27 config.test_exec_root = os.path.join(ANDROID_HOST_OUT, 'tests', 'rs2spirv')
     28 
     29 tools_dir = os.pathsep.join([os.path.join(ANDROID_HOST_OUT, 'bin'),])
     30