Skip to content

Commit 6c84de6

Browse files
committed
Add test
1 parent dc922ea commit 6c84de6

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
// COM: Check that `--spirv-save-validation-files-with-prefix` generates
2+
// COM: a correct number of files.
3+
4+
// REQUIRES: shell
5+
// RUN: rm -rf %t
6+
// RUN: mkdir %t
7+
// RUN: mlir-translate --serialize-spirv --no-implicit-module --split-input-file --spirv-save-validation-files-with-prefix=%t/foo %s
8+
// RUN: ls %t | wc -l | FileCheck %s
9+
// RUN: rm -rf %t
10+
11+
// CHECK: 4
12+
13+
spirv.module Logical GLSL450 requires #spirv.vce<v1.0, [Shader, Linkage], []> {
14+
}
15+
16+
// -----
17+
18+
spirv.module Logical GLSL450 requires #spirv.vce<v1.0, [Shader, Linkage], []> {
19+
}
20+
21+
// -----
22+
23+
spirv.module Logical GLSL450 requires #spirv.vce<v1.0, [Shader, Linkage], []> {
24+
}
25+
26+
// -----
27+
28+
spirv.module Logical GLSL450 requires #spirv.vce<v1.0, [Shader, Linkage], []> {
29+
}

0 commit comments

Comments
 (0)