| ... | ... | @@ -1657,16 +1657,23 @@ pub fn addCliTests(b: *std.Build) *Step { |
| 1657 | 1657 | } |
| 1658 | 1658 | |
| 1659 | 1659 | { |
| 1660 | | // TODO this should move to become a CLI test rather than standalone |
| 1661 | | // cases.addBuildFile("test/standalone/options/build.zig", .{ |
| 1662 | | // .extra_argv = &.{ |
| 1663 | | // "-Dbool_true", |
| 1664 | | // "-Dbool_false=false", |
| 1665 | | // "-Dint=1234", |
| 1666 | | // "-De=two", |
| 1667 | | // "-Dstring=hello", |
| 1668 | | // }, |
| 1669 | | // }); |
| 1660 | const run_test = b.addSystemCommand(&.{ |
| 1661 | b.graph.zig_exe, |
| 1662 | "build", |
| 1663 | "test", |
| 1664 | "-Dbool_true", |
| 1665 | "-Dbool_false=false", |
| 1666 | "-Dint=1234", |
| 1667 | "-De=two", |
| 1668 | "-Dstring=hello", |
| 1669 | }); |
| 1670 | run_test.addArg("--build-file"); |
| 1671 | run_test.addFileArg(b.path("test/standalone/options/build.zig")); |
| 1672 | run_test.addArg("--cache-dir"); |
| 1673 | run_test.addFileArg(.{ .cwd_relative = b.cache_root.join(b.allocator, &.{}) catch @panic("OOM") }); |
| 1674 | run_test.setName("test build options"); |
| 1675 | |
| 1676 | step.dependOn(&run_test.step); |
| 1670 | 1677 | } |
| 1671 | 1678 | |
| 1672 | 1679 | return step; |