| ... | @@ -16,18 +16,17 @@ pub fn build(b: *std.Build) void { | ... | @@ -16,18 +16,17 @@ pub fn build(b: *std.Build) void { |
| 16 | .SOME_ENUM = @as(enum { foo, bar }, .foo), | 16 | .SOME_ENUM = @as(enum { foo, bar }, .foo), |
| 17 | .SOME_ENUM_LITERAL = .@"test", | 17 | .SOME_ENUM_LITERAL = .@"test", |
| 18 | .SOME_STRING = "test", | 18 | .SOME_STRING = "test", |
| 19 | | | |
| 20 | .PREFIX_SPACE = null, | 19 | .PREFIX_SPACE = null, |
| 21 | .PREFIX_TAB = null, | 20 | .PREFIX_TAB = null, |
| 22 | .POSTFIX_SPACE = null, | 21 | .POSTFIX_SPACE = null, |
| 23 | .POSTFIX_TAB = null, | 22 | .POSTFIX_TAB = null, |
| 24 | | | |
| 25 | .SOME_UNDERSCORED = true, | 23 | .SOME_UNDERSCORED = true, |
| 26 | }, | 24 | }, |
| 27 | ); | 25 | ); |
| 28 | const check_config_header = b.addCheckFile(config_header.getOutputFile(), .{ | 26 | const check_config_header = b.addCheckFile(config_header.getOutputFile(), .{ |
| 29 | .expected_exact = @embedFile("autoconf_undef/config.h"), | 27 | .expected_exact = @embedFile("autoconf_undef/config.h"), |
| 30 | }); | 28 | }); |
| | 29 | test_step.dependOn(&check_config_header.step); |
| 31 | | 30 | |
| 32 | const config_header_autoconf_at = b.addConfigHeader( | 31 | const config_header_autoconf_at = b.addConfigHeader( |
| 33 | .{ .style = .{ .autoconf_at = b.path("autoconf_at/autoconf_at.h.in") } }, | 32 | .{ .style = .{ .autoconf_at = b.path("autoconf_at/autoconf_at.h.in") } }, |
| ... | @@ -39,7 +38,6 @@ pub fn build(b: *std.Build) void { | ... | @@ -39,7 +38,6 @@ pub fn build(b: *std.Build) void { |
| 39 | .integer = 42, | 38 | .integer = 42, |
| 40 | .string = "text", | 39 | .string = "text", |
| 41 | .string_at = "@string@", | 40 | .string_at = "@string@", |
| 42 | | | |
| 43 | .underscored_var = "value", | 41 | .underscored_var = "value", |
| 44 | .at_sign = "@", | 42 | .at_sign = "@", |
| 45 | }, | 43 | }, |
| ... | @@ -47,8 +45,6 @@ pub fn build(b: *std.Build) void { | ... | @@ -47,8 +45,6 @@ pub fn build(b: *std.Build) void { |
| 47 | const check_config_header_autoconf_at = b.addCheckFile(config_header_autoconf_at.getOutputFile(), .{ | 45 | const check_config_header_autoconf_at = b.addCheckFile(config_header_autoconf_at.getOutputFile(), .{ |
| 48 | .expected_exact = @embedFile("autoconf_at/autoconf_at.h"), | 46 | .expected_exact = @embedFile("autoconf_at/autoconf_at.h"), |
| 49 | }); | 47 | }); |
| 50 | | | |
| 51 | test_step.dependOn(&check_config_header.step); | | |
| 52 | test_step.dependOn(&check_config_header_autoconf_at.step); | 48 | test_step.dependOn(&check_config_header_autoconf_at.step); |
| 53 | | 49 | |
| 54 | const config_header_blank = b.addConfigHeader( | 50 | const config_header_blank = b.addConfigHeader( |
| ... | @@ -109,7 +105,6 @@ fn addCmakeChecks(b: *std.Build, test_step: *std.Build.Step) void { | ... | @@ -109,7 +105,6 @@ fn addCmakeChecks(b: *std.Build, test_step: *std.Build.Step) void { |
| 109 | .ONEVAL = 1, | 105 | .ONEVAL = 1, |
| 110 | .TENVAL = 10, | 106 | .TENVAL = 10, |
| 111 | .STRINGVAL = "test", | 107 | .STRINGVAL = "test", |
| 112 | | | |
| 113 | .BOOLNOVAL = {}, | 108 | .BOOLNOVAL = {}, |
| 114 | .BOOLTRUEVAL = true, | 109 | .BOOLTRUEVAL = true, |
| 115 | .BOOLFALSEVAL = false, | 110 | .BOOLFALSEVAL = false, |