authorgravatar for stratact@stratacter.comstratact <stratact@stratacter.com> 2019-09-10 11:50:54-07:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2019-09-10 14:50:54-04:00
loga165cc05359114dc20af90232184a1af75dc9795
tree0e8c6a43c5674135de924bd3a8e6525958aefefe
parent68d159ea9de5b9f59ad2e658017c45a33698a008

Get more of the tests passing for FreeBSD (#3197)

* Add missing <stdint.h> include for uint8_t type declaration * Add needed FreeBSD check to link to libpthread * Apply patch to enable more tests in the FreeBSD CI

3 files changed, 41 insertions(+), 4 deletions(-)

ci/srht/freebsd_script+36-4
...@@ -18,13 +18,45 @@ cd build...@@ -18,13 +18,45 @@ cd build
18cmake .. -DCMAKE_BUILD_TYPE=Release -DCMAKE_PREFIX_PATH=$PREFIX -DCMAKE_INSTALL_PREFIX=$(pwd)/release -DZIG_STATIC=ON18cmake .. -DCMAKE_BUILD_TYPE=Release -DCMAKE_PREFIX_PATH=$PREFIX -DCMAKE_INSTALL_PREFIX=$(pwd)/release -DZIG_STATIC=ON
19make $JOBS install19make $JOBS install
2020
21# TODO test everything. right now it's skipping stuff including docs21release/bin/zig build test-fmt
22# because for some reason @cImport is failing on the CI server.22release/bin/zig build test-behavior
23release/bin/zig build --build-file ../build.zig test-behavior -Dskip-release23
24# This test is disabled because it triggers "out of memory" on the sr.ht CI service.
25# See https://github.com/ziglang/zig/issues/3210
26# release/bin/zig build test-std
27
28release/bin/zig build test-compiler-rt
29
30# This test is disabled because it triggers "out of memory" on the sr.ht CI service.
31# See https://github.com/ziglang/zig/issues/3210
32# release/bin/zig build test-compare-output
33
34# This test is disabled because it triggers "out of memory" on the sr.ht CI service.
35# See https://github.com/ziglang/zig/issues/3210
36# release/bin/zig build test-standalone
37
38release/bin/zig build test-stack-traces
39release/bin/zig build test-cli
40release/bin/zig build test-asm-link
41release/bin/zig build test-runtime-safety
42
43# This test is disabled because it triggers "out of memory" on the sr.ht CI service.
44# See https://github.com/ziglang/zig/issues/3210
45# release/bin/zig build test-translate-c
46
47release/bin/zig build test-gen-h
48
49# This test is disabled because it triggers "out of memory" on the sr.ht CI service.
50# See https://github.com/ziglang/zig/issues/3210
51# release/bin/zig build test-compile-errors
52
53# This test is disabled because it triggers "out of memory" on the sr.ht CI service.
54# See https://github.com/ziglang/zig/issues/3210
55# release/bin/zig build docs
2456
25if [ -f ~/.s3cfg ]; then57if [ -f ~/.s3cfg ]; then
26 mv ../LICENSE release/58 mv ../LICENSE release/
27 # TODO re-enable this59 # Enable when `release/bin/zig build docs` passes without "out of memory" or failures
28 #mv ../zig-cache/langref.html release/60 #mv ../zig-cache/langref.html release/
29 mv release/bin/zig release/61 mv release/bin/zig release/
30 rmdir release/bin62 rmdir release/bin
src/link.cpp+4
...@@ -1774,6 +1774,10 @@ static void construct_linker_job_elf(LinkJob *lj) {...@@ -1774,6 +1774,10 @@ static void construct_linker_job_elf(LinkJob *lj) {
1774 lj->args.append("-lgcc_s");1774 lj->args.append("-lgcc_s");
1775 lj->args.append("--no-as-needed");1775 lj->args.append("--no-as-needed");
1776 }1776 }
1777
1778 if (g->zig_target->os == OsFreeBSD) {
1779 lj->args.append("-lpthread");
1780 }
1777 } else if (target_is_glibc(g->zig_target)) {1781 } else if (target_is_glibc(g->zig_target)) {
1778 if (target_supports_libunwind(g->zig_target)) {1782 if (target_supports_libunwind(g->zig_target)) {
1779 lj->args.append(build_libunwind(g));1783 lj->args.append(build_libunwind(g));
test/standalone/mix_o_files/test.c+1
...@@ -3,6 +3,7 @@...@@ -3,6 +3,7 @@
33
4#include <assert.h>4#include <assert.h>
5#include <string.h>5#include <string.h>
6#include <stdint.h>
67
7extern int *x_ptr;8extern int *x_ptr;
89