Skip to content

Commit 681d94f

Browse files
committed
Hacky addition of golden images
This adds a substitution for a golden images directory and a feature check for if it is available.
1 parent 076b2aa commit 681d94f

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

test/lit.cfg.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,3 +73,7 @@
7373
config.available_features.add("Vulkan")
7474
if "NVIDIA" in device['Description']:
7575
config.available_features.add("Vulkan-NV")
76+
77+
if os.path.exists(config.goldenimage_dir):
78+
config.substitutions.append(("%goldenimage_dir", config.goldenimage_dir))
79+
config.available_features.add("goldenimage")

test/lit.site.cfg.py.in

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ config.hlsltest_supports_spirv = @SUPPORTS_SPIRV@
1010
config.hlsltest_test_clang = @FORCE_CLANG@
1111
config.hlsltest_test_warp = @FORCE_WARP@
1212
config.hlsltest_dxc_dir = r"@DXC_DIR@"
13+
config.goldenimage_dir = r"@GOLDENIMAGE_DIR@"
1314

1415
config.hlsltest_suite = "@suite@"
1516
config.hlsltest_enable_d3d12 = @TEST_d3d12@

0 commit comments

Comments
 (0)