authorgravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2017-09-16 18:09:16-04:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2017-09-16 20:30:39-04:00
log21a55d89b6f14f03c905220ce174bc72cd6a91b0
tree17155456a12b265ec9d4dc5d46a5634c84d2a182
parent71342f824991a8b183f895577e81d27dd6494bee

add release-safe to the test matrix

See #449 the llvm assertion that is being triggered appears to be an llvm bug that is harmless with assertions off.

1 files changed, 4 insertions(+), 4 deletions(-)

test/tests.zig+4-4
...@@ -148,7 +148,7 @@ pub fn addPkgTestsRaw(b: &build.Builder, test_filter: ?[]const u8, root_src: []c...@@ -148,7 +148,7 @@ pub fn addPkgTestsRaw(b: &build.Builder, test_filter: ?[]const u8, root_src: []c
148 const step = b.step(b.fmt("test-{}", name), desc);148 const step = b.step(b.fmt("test-{}", name), desc);
149 for (test_targets) |test_target| {149 for (test_targets) |test_target| {
150 const is_native = (test_target.os == builtin.os and test_target.arch == builtin.arch);150 const is_native = (test_target.os == builtin.os and test_target.arch == builtin.arch);
151 for ([]Mode{Mode.Debug, Mode.ReleaseFast}) |mode| {151 for ([]Mode{Mode.Debug, Mode.ReleaseSafe, Mode.ReleaseFast}) |mode| {
152 for (libc_bools) |link_libc| {152 for (libc_bools) |link_libc| {
153 if (link_libc and !is_native) {153 if (link_libc and !is_native) {
154 // don't assume we have a cross-compiling libc set up154 // don't assume we have a cross-compiling libc set up
...@@ -418,7 +418,7 @@ pub const CompareOutputContext = struct {...@@ -418,7 +418,7 @@ pub const CompareOutputContext = struct {
418 self.step.dependOn(&run_and_cmp_output.step);418 self.step.dependOn(&run_and_cmp_output.step);
419 },419 },
420 Special.None => {420 Special.None => {
421 for ([]Mode{Mode.Debug, Mode.ReleaseFast}) |mode| {421 for ([]Mode{Mode.Debug, Mode.ReleaseSafe, Mode.ReleaseFast}) |mode| {
422 const annotated_case_name = %%fmt.allocPrint(self.b.allocator, "{} {} ({})",422 const annotated_case_name = %%fmt.allocPrint(self.b.allocator, "{} {} ({})",
423 "compare-output", case.name, @enumTagName(mode));423 "compare-output", case.name, @enumTagName(mode));
424 if (self.test_filter) |filter| {424 if (self.test_filter) |filter| {
...@@ -664,7 +664,7 @@ pub const CompileErrorContext = struct {...@@ -664,7 +664,7 @@ pub const CompileErrorContext = struct {
664 pub fn addCase(self: &CompileErrorContext, case: &const TestCase) {664 pub fn addCase(self: &CompileErrorContext, case: &const TestCase) {
665 const b = self.b;665 const b = self.b;
666666
667 for ([]Mode{Mode.Debug, Mode.ReleaseFast}) |mode| {667 for ([]Mode{Mode.Debug, Mode.ReleaseSafe, Mode.ReleaseFast}) |mode| {
668 const annotated_case_name = %%fmt.allocPrint(self.b.allocator, "compile-error {} ({})",668 const annotated_case_name = %%fmt.allocPrint(self.b.allocator, "compile-error {} ({})",
669 case.name, @enumTagName(mode));669 case.name, @enumTagName(mode));
670 if (self.test_filter) |filter| {670 if (self.test_filter) |filter| {
...@@ -730,7 +730,7 @@ pub const BuildExamplesContext = struct {...@@ -730,7 +730,7 @@ pub const BuildExamplesContext = struct {
730 pub fn addAllArgs(self: &BuildExamplesContext, root_src: []const u8, link_libc: bool) {730 pub fn addAllArgs(self: &BuildExamplesContext, root_src: []const u8, link_libc: bool) {
731 const b = self.b;731 const b = self.b;
732732
733 for ([]Mode{Mode.Debug, Mode.ReleaseFast}) |mode| {733 for ([]Mode{Mode.Debug, Mode.ReleaseSafe, Mode.ReleaseFast}) |mode| {
734 const annotated_case_name = %%fmt.allocPrint(self.b.allocator, "build {} ({})",734 const annotated_case_name = %%fmt.allocPrint(self.b.allocator, "build {} ({})",
735 root_src, @enumTagName(mode));735 root_src, @enumTagName(mode));
736 if (self.test_filter) |filter| {736 if (self.test_filter) |filter| {