Skip to content

Commit 0a5396c

Browse files
authored
[lit] convert verify test as lit FileCheck test part1 (microsoft#5904)
Convert first part of verify test shaders as lit FileCheck test. This is for microsoft#5870 CppErrorsHV2015 is skipped for cannot set hlsl 2015 thru dxc. CppErrors is skipped for non-expected warning when test with taef.
1 parent c8de4c3 commit 0a5396c

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

50 files changed

+63
-288
lines changed

tools/clang/test/HLSL/array-index-out-of-bounds-HV-2016.hlsl renamed to tools/clang/test/SemaHLSL/array-index-out-of-bounds-HV-2016.hlsl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: %clang_cc1 -Wno-unused-value -fsyntax-only -ffreestanding -HV 2016 -verify %s
1+
// RUN: %dxc -Tlib_6_3 -Wno-unused-value -HV 2016 -verify %s
22

33
void dead()
44
{

tools/clang/test/HLSL/array-index-out-of-bounds.hlsl renamed to tools/clang/test/SemaHLSL/array-index-out-of-bounds.hlsl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: %clang_cc1 -Wno-unused-value -fsyntax-only -ffreestanding -verify %s
1+
// RUN: %dxc -Tlib_6_3 -Wno-unused-value -verify %s
22

33
void main()
44
{

tools/clang/test/HLSL/array-length.hlsl renamed to tools/clang/test/SemaHLSL/array-length.hlsl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: %clang_cc1 -fsyntax-only -ffreestanding -verify -HV 2016 %s
1+
// RUN: %dxc -Tlib_6_3 -verify -HV 2016 %s
22
// :FXC_VERIFY_ARGUMENTS: /T ps_5_0 /E main
33

44
float4 planes1[8];

tools/clang/test/HLSL/atomic-float-errors.hlsl renamed to tools/clang/test/SemaHLSL/atomic-float-errors.hlsl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: %clang_cc1 -fsyntax-only -ffreestanding -verify %s
1+
// RUN: %dxc -Tlib_6_3 -verify %s
22

33
// Verify that the first arg determines the overload and the others can be what they will
44

tools/clang/test/HLSL/attributes.hlsl renamed to tools/clang/test/SemaHLSL/attributes.hlsl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: %clang_cc1 -fsyntax-only -ffreestanding -HV 2018 -verify %s
1+
// RUN: %dxc -Tlib_6_3 -HV 2018 -verify %s
22

33
// To test with the classic compiler, run
44
// %sdxroot%\tools\x86\fxc.exe /T ps_5_1 attributes.hlsl

tools/clang/test/HLSL/builtin-types-no-inheritance.hlsl renamed to tools/clang/test/SemaHLSL/builtin-types-no-inheritance.hlsl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: %clang_cc1 -Wno-unused-value -fsyntax-only -ffreestanding -verify %s
1+
// RUN: %dxc -Tlib_6_3 -Wno-unused-value -verify %s
22

33
// expected-note@? {{'vector' declared here}}
44
// expected-note@? {{'matrix' declared here}}

tools/clang/test/HLSL/const-assign.hlsl renamed to tools/clang/test/SemaHLSL/const-assign.hlsl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: %clang_cc1 -fsyntax-only -Wno-unused-value -ffreestanding -verify %s
1+
// RUN: %dxc -Tlib_6_3 -Wno-unused-value -verify %s
22

33
float4 main() : SV_TARGET
44
{

tools/clang/test/HLSL/const-default.hlsl renamed to tools/clang/test/SemaHLSL/const-default.hlsl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: %clang_cc1 -fsyntax-only -Wno-unused-value -ffreestanding -verify %s
1+
// RUN: %dxc -Tlib_6_3 -Wno-unused-value -verify %s
22

33
float g_float1; /* expected-note {{variable 'g_float1' declared const here}} expected-note {{variable 'g_float1' declared const here}} fxc-pass {{}} */
44
int4 g_vec1; /* expected-note {{variable 'g_vec1' declared const here}} expected-note {{variable 'g_vec1' declared const here}} fxc-pass {{}} */

tools/clang/test/HLSL/const-expr.hlsl renamed to tools/clang/test/SemaHLSL/const-expr.hlsl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: %clang_cc1 -fsyntax-only -Wno-unused-value -ffreestanding -verify %s
1+
// RUN: %dxc -Tlib_6_3 -Wno-unused-value -verify %s
22

33
float overload1(float f) { return 1; } /* expected-note {{candidate function}} expected-note {{candidate function}} expected-note {{candidate function}} expected-note {{candidate function}} expected-note {{candidate function}} fxc-pass {{}} */
44
double overload1(double f) { return 2; } /* expected-note {{candidate function}} expected-note {{candidate function}} expected-note {{candidate function}} expected-note {{candidate function}} expected-note {{candidate function}} fxc-pass {{}} */

tools/clang/test/HLSL/conversions-between-type-shapes-strictudt.hlsl renamed to tools/clang/test/SemaHLSL/conversions-between-type-shapes-strictudt.hlsl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: %clang_cc1 -HV 2021 -Wno-unused-value -fsyntax-only -ffreestanding -verify %s
1+
// RUN: %dxc -Tlib_6_3 -HV 2021 -Wno-unused-value -verify %s
22

33
// Tests all implicit conversions and explicit casts between type shapes
44
// (scalars, vectors, matrices, arrays and structs).

0 commit comments

Comments
 (0)