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
1818cmake .. -DCMAKE_BUILD_TYPE=Release -DCMAKE_PREFIX_PATH=$PREFIX -DCMAKE_INSTALL_PREFIX=$(pwd)/release -DZIG_STATIC=ON
1919make $JOBS install
2020
21# TODO test everything. right now it's skipping stuff including docs
22# because for some reason @cImport is failing on the CI server.
23release/bin/zig build --build-file ../build.zig test-behavior -Dskip-release
21release/bin/zig build test-fmt
22release/bin/zig build test-behavior
23
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
2557if [ -f ~/.s3cfg ]; then
2658 mv ../LICENSE release/
27 # TODO re-enable this
59 # Enable when `release/bin/zig build docs` passes without "out of memory" or failures
2860 #mv ../zig-cache/langref.html release/
2961 mv release/bin/zig release/
3062 rmdir release/bin
src/link.cpp+4
......@@ -1774,6 +1774,10 @@ static void construct_linker_job_elf(LinkJob *lj) {
17741774 lj->args.append("-lgcc_s");
17751775 lj->args.append("--no-as-needed");
17761776 }
1777
1778 if (g->zig_target->os == OsFreeBSD) {
1779 lj->args.append("-lpthread");
1780 }
17771781 } else if (target_is_glibc(g->zig_target)) {
17781782 if (target_supports_libunwind(g->zig_target)) {
17791783 lj->args.append(build_libunwind(g));
test/standalone/mix_o_files/test.c+1
......@@ -3,6 +3,7 @@
33
44#include <assert.h>
55#include <string.h>
6#include <stdint.h>
67
78extern int *x_ptr;
89