Skip to content

Commit 9c97ea8

Browse files
committed
Move "simple" standalone test cases to a new directory
1 parent 8519fa8 commit 9c97ea8

File tree

16 files changed

+17
-14
lines changed

16 files changed

+17
-14
lines changed

test/standalone.zig

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -11,47 +11,47 @@ pub const SimpleCase = struct {
1111

1212
pub const simple_cases = [_]SimpleCase{
1313
.{
14-
.src_path = "test/standalone/hello_world/hello.zig",
14+
.src_path = "test/standalone/simple/hello_world/hello.zig",
1515
.all_modes = true,
1616
},
1717
.{
18-
.src_path = "test/standalone/hello_world/hello_libc.zig",
18+
.src_path = "test/standalone/simple/hello_world/hello_libc.zig",
1919
.link_libc = true,
2020
.all_modes = true,
2121
},
2222
.{
23-
.src_path = "test/standalone/cat/main.zig",
23+
.src_path = "test/standalone/simple/cat/main.zig",
2424
},
2525
// https://github.com/ziglang/zig/issues/6025
2626
//.{
27-
// .src_path = "test/standalone/issue_9693/main.zig",
27+
// .src_path = "test/standalone/simple/issue_9693/main.zig",
2828
//},
2929
.{
30-
.src_path = "test/standalone/brace_expansion.zig",
30+
.src_path = "test/standalone/simple/brace_expansion.zig",
3131
.is_test = true,
3232
},
3333
.{
34-
.src_path = "test/standalone/issue_7030.zig",
34+
.src_path = "test/standalone/simple/issue_7030.zig",
3535
.target = .{
3636
.cpu_arch = .wasm32,
3737
.os_tag = .freestanding,
3838
},
3939
},
4040

41-
.{ .src_path = "test/standalone/issue_12471/main.zig" },
42-
.{ .src_path = "test/standalone/guess_number/main.zig" },
43-
.{ .src_path = "test/standalone/main_return_error/error_u8.zig" },
44-
.{ .src_path = "test/standalone/main_return_error/error_u8_non_zero.zig" },
45-
.{ .src_path = "test/standalone/noreturn_call/inline.zig" },
46-
.{ .src_path = "test/standalone/noreturn_call/as_arg.zig" },
41+
.{ .src_path = "test/standalone/simple/issue_12471/main.zig" },
42+
.{ .src_path = "test/standalone/simple/guess_number/main.zig" },
43+
.{ .src_path = "test/standalone/simple/main_return_error/error_u8.zig" },
44+
.{ .src_path = "test/standalone/simple/main_return_error/error_u8_non_zero.zig" },
45+
.{ .src_path = "test/standalone/simple/noreturn_call/inline.zig" },
46+
.{ .src_path = "test/standalone/simple/noreturn_call/as_arg.zig" },
4747

4848
.{
49-
.src_path = "test/standalone/issue_9402/main.zig",
49+
.src_path = "test/standalone/simple/issue_9402/main.zig",
5050
.os_filter = .windows,
5151
.link_libc = true,
5252
},
5353
.{
54-
.src_path = "test/standalone/http.zig",
54+
.src_path = "test/standalone/simple/http.zig",
5555
.all_modes = true,
5656
},
5757

test/standalone/build.zig.zon

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@
22
.name = "standalone_test_cases",
33
.version = "0.0.0",
44
.dependencies = .{
5+
// "Simple" test cases (those in the 'simple' directory) are configured by the root build
6+
// script, outside of this package.
7+
58
.test_runner_path = .{
69
.path = "test_runner_path",
710
},
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)