|
@@ -12,8 +12,8 @@ import lit.util
|
|
config.name = 'clang-taef'
|
|
config.name = 'clang-taef'
|
|
|
|
|
|
# Check that the object root is known.
|
|
# Check that the object root is known.
|
|
-llvm_obj_root = getattr(config, 'llvm_obj_root', None)
|
|
|
|
-if llvm_obj_root is None:
|
|
|
|
|
|
+te = getattr(config, 'te', None)
|
|
|
|
+if te is None:
|
|
# Otherwise, we haven't loaded the site specific configuration (the user is
|
|
# Otherwise, we haven't loaded the site specific configuration (the user is
|
|
# probably trying to run on a test file directly, and either the site
|
|
# probably trying to run on a test file directly, and either the site
|
|
# configuration hasn't been created by the build system, or we are in an
|
|
# configuration hasn't been created by the build system, or we are in an
|
|
@@ -29,11 +29,9 @@ if llvm_obj_root is None:
|
|
if platform.system() != 'Windows':
|
|
if platform.system() != 'Windows':
|
|
config.unsupported = True
|
|
config.unsupported = True
|
|
else:
|
|
else:
|
|
- te = os.path.join(config.llvm_obj_root, "TAEF", config.arch, 'te.exe')
|
|
|
|
-
|
|
|
|
test_dll = os.path.join(config.llvm_obj_root, config.llvm_build_mode, 'bin', 'ClangHLSLTests.dll')
|
|
test_dll = os.path.join(config.llvm_obj_root, config.llvm_build_mode, 'bin', 'ClangHLSLTests.dll')
|
|
|
|
|
|
hlsl_data_dir = os.path.join(config.llvm_src_root, 'tools', 'clang', 'test', 'HLSL')
|
|
hlsl_data_dir = os.path.join(config.llvm_src_root, 'tools', 'clang', 'test', 'HLSL')
|
|
|
|
|
|
test_dir = os.path.join(config.llvm_obj_root, config.llvm_build_mode, 'test')
|
|
test_dir = os.path.join(config.llvm_obj_root, config.llvm_build_mode, 'test')
|
|
- config.test_format = lit.formats.TaefTest(te, test_dll, hlsl_data_dir, test_dir)
|
|
|
|
|
|
+ config.test_format = lit.formats.TaefTest(config.te, test_dll, hlsl_data_dir, test_dir)
|