0
Fork 0
mirror of https://codeberg.org/ziglang/zig synced 2026-11-18 07:05:05 +00:00
zig/src
Andrew Kelley ffef5d26b6
significantly increase test coverage
* add zig build option `-Dskip-libc` to skip tests that build libc
   (e.g. if you don't want to wait for musl to build)
 * add `-Denable-wine` option which uses wine to run cross compiled
   windows tests on non-windows hosts
 * add `-Denable-qemu` option which uses qemu to run cross compiled
   foreign architecture tests
 * add `-Denable-foreign-glibc=path` option which combined with
   `-Denable-qemu` enables running cross compiled tests that link
   against glibc. See
   https://github.com/ziglang/zig/wiki/Updating-libc#glibc for how to
   produce this directory.
 * the test matrix is done manually. release test builds are only
   enabled by default for the native target. this should save us some CI
   time, while still providing decent coverage of release builds.
   - add test coverage for `x86_64-linux-musl -lc` (building musl libc)
   - add test coverage for `x86_64-linux-gnu -lc` (building glibc)
   - add test coverage for `aarch64v8_5a-linux-none`
   - add test coverage for `aarch64v8_5a-linux-musl -lc` (building musl libc)
   - add test coverage for `aarch64v8_5a-linux-gnu -lc` (building glibc)
   - add test coverage for `arm-linux-none`
   - test coverage for `arm-linux-musleabihf -lc` (building musl libc) is
     disabled due to #3286
   - test coverage for `arm-linux-gnueabihf -lc` (building glibc) is disabled
     due to #3287
   - test coverage for `x86_64-windows-gnu -lc` (building mingw-w64) is
     disabled due to #3285
 * enable qemu testing on the Linux CI job. There's not really a good
   reason to enable wine, since we have a Windows CI job as well.
 * remove the no longer needed `--build-file ../build.zig` from CI
   scripts
 * fix bug in glibc compilation where it wasn't properly reading the abi
   list txt files, resulting in "key not found" error.
 * std.build.Target gains:
   - isNetBSD
   - isLinux
   - osRequiresLibC
   - getArchPtrBitWidth
   - getExternalExecutor
 * zig build system gains support for enabling wine and enabling qemu.
   `artifact.enable_wine = true;`, `artifact.enable_qemu = true;`. This
   communicates that the system has these tools installed and the build
   system will use them to run tests.
 * zig build system gains support for overriding the dynamic linker of
   an executable artifact.
 * fix std.c.lseek prototype. makes behavior tests for
   arm-linux-musleabihf pass.
 * disable std lib tests that are failing on ARM. See #3288, #3289
 * provide `std.os.off_t`.
 * disable some of the compiler_rt symbols for arm 32 bit. Fixes
   compiler_rt tests for arm 32 bit
 * add __stack_chk_guard when linking against glibc. Fixes std lib tests
   for aarch64-linux-gnu
 * workaround for "unable to inline function" using `@inlineCall`. Fixes
   compiler_rt tests for arm 32 bit.
History 2019-09-22 11:22:17 -04:00
..
all_types.hpp fixups for @splat 2019-09-19 10:58:12 -04:00
analyze.cpp add behavior test for float widening f16 to f128 2019-09-21 14:22:23 -04:00
analyze.hpp fix bad LLVM IR when for target expr needs to be spilled 2019-09-09 15:59:16 -04:00
ast_render.cpp implement noasync function calls 2019-09-05 21:55:32 -04:00
ast_render.hpp translate-c: a little closer to self-hosted implementation 2019-04-25 00:06:54 -04:00
bigfloat.cpp fix NaN comparing equal to itself 2019-04-04 22:07:15 -04:00
bigfloat.hpp fix NaN comparing equal to itself 2019-04-04 22:07:15 -04:00
bigint.cpp Encapsulate bigint representation, assert on cast data loss 2019-08-23 11:14:08 -04:00
bigint.hpp Encapsulate bigint representation, assert on cast data loss 2019-08-23 11:14:08 -04:00
blake2.h stage1: import blake2b implementation 2018-09-05 23:23:11 -04:00
blake2b.c stage1: build blake code with -std=c99 2018-09-11 17:29:18 -04:00
buffer.cpp the same string literal codegens to the same constant 2018-01-11 21:02:30 -05:00
buffer.hpp fix bad LLVM IR when for target expr needs to be spilled 2019-09-09 15:59:16 -04:00
c_tokenizer.cpp fix translate-c regression 2019-05-09 20:11:56 -04:00
c_tokenizer.hpp translate-c: enough C tokenization/parsing to handle shifting in macros 2019-05-09 12:48:38 -04:00
cache_hash.cpp add review changes 2019-05-29 14:39:13 -04:00
cache_hash.hpp stage1 caching system: detect problematic mtimes 2019-03-11 10:26:08 -04:00
codegen.cpp Merge pull request #3278 from LemonBoy/struct-gen 2019-09-21 13:46:13 -04:00
codegen.hpp improve async function semantics 2019-08-06 16:53:22 -04:00
compiler.cpp ability to target any glibc version 2019-07-07 17:56:08 -04:00
compiler.hpp ability to target any glibc version 2019-07-07 17:56:08 -04:00
config.h.in move some of the installation from cmake to zig build 2019-07-15 01:45:26 -04:00
errmsg.cpp Fix the color of compiler messages for light-themed terminal. 2017-12-04 19:22:34 +09:00
errmsg.hpp use size_t for indexes 2016-09-19 11:54:01 -04:00
error.cpp await does not force async if callee is blocking 2019-08-29 21:51:37 -04:00
error.hpp translate-c: a little closer to self-hosted implementation 2019-04-25 00:06:54 -04:00
glibc.cpp significantly increase test coverage 2019-09-22 11:22:17 -04:00
glibc.hpp ability to target any glibc version 2019-07-07 17:56:08 -04:00
hash_map.hpp rewrite scope implementation 2016-12-01 21:08:12 -05:00
install_files.h update bundled musl source to 1.1.23 2019-07-16 19:54:14 -04:00
ir.cpp Fix comptime bitcast inside an expression 2019-09-20 13:13:26 -04:00
ir.hpp stage1 enhance IR print 2019-09-05 13:06:10 -04:00
ir_print.cpp fixups for @splat 2019-09-19 10:58:12 -04:00
ir_print.hpp stage1 enhance IR print 2019-09-05 13:06:10 -04:00
libc_installation.cpp Remove duplicate exe name with zig run 2019-06-17 14:10:10 -04:00
libc_installation.hpp fixed visibility of zig_libc_cc_print_file_name 2019-04-27 16:17:07 -05:00
link.cpp Merge remote-tracking branch 'origin/master' into llvm9 2019-09-15 20:59:53 -04:00
list.hpp pass param as ref in ZigList::append 2019-09-19 11:41:18 -04:00
main.cpp zig test: don't skip execution when explicit command provided 2019-09-21 15:57:09 -04:00
os.cpp os: raise maximum file descriptor limit 2019-09-05 15:09:13 -04:00
os.hpp Revert "Merge pull request #2991 from emekoi/mingw-ci" 2019-09-01 00:33:02 -04:00
parse_f128.c parse_f128.c: fix whitespace 2019-03-23 13:46:50 -04:00
parse_f128.h get rid of restrict; it's not supported by MSVC 2019-03-22 16:08:19 -04:00
parser.cpp implement noasync function calls 2019-09-05 21:55:32 -04:00
parser.hpp remove namespace type; files are empty structs 2019-02-28 10:11:32 -05:00
range_set.cpp better bigint/bigfloat implementation 2017-07-08 17:59:10 -04:00
range_set.hpp better bigint/bigfloat implementation 2017-07-08 17:59:10 -04:00
softfloat.hpp depend on embedded SoftFloat-3d instead of __float128 2017-09-14 01:46:47 -04:00
stack_report.cpp fix build on macOS + xcode + clang 2019-09-10 14:38:39 -04:00
stack_report.hpp make the std lib support event-based I/O 2019-09-10 10:26:52 -04:00
target.cpp Merge remote-tracking branch 'origin/master' into llvm9 2019-09-15 20:59:53 -04:00
target.hpp Merge remote-tracking branch 'origin/master' into llvm9 2019-08-16 16:43:56 -04:00
tokenizer.cpp Recognize & skip the UTF-8 BOM 2019-09-11 15:20:18 -04:00
tokenizer.hpp implement noasync function calls 2019-09-05 21:55:32 -04:00
translate_c.cpp Merge remote-tracking branch 'origin/master' into llvm9 2019-09-10 13:00:35 -04:00
translate_c.hpp translate-c: unify API for self-hosted and C++ translate-c 2019-04-25 00:06:57 -04:00
userland.cpp enable segfault stack traces in stage1 compiler 2019-07-02 13:41:17 -04:00
userland.h await does not force async if callee is blocking 2019-08-29 21:51:37 -04:00
util.cpp ability to target any glibc version 2019-07-07 17:56:08 -04:00
util.hpp WIN32 -> _WIN32 2019-07-17 16:10:54 -04:00
windows_com.hpp compiling on mingw is now supported (#1542) 2018-09-18 00:13:17 -04:00
windows_sdk.cpp fixed mingw compilation 2018-10-27 11:35:01 -04:00
windows_sdk.h self-hosted: add first compare-output test 2018-07-23 00:35:53 -04:00
zig_clang.cpp update zig codebase to llvm 9 2019-07-17 17:47:39 -04:00
zig_clang.h Merge remote-tracking branch 'origin/master' into llvm9 2019-08-03 12:39:15 -04:00
zig_clang_cc1_main.cpp stage1: fix gcc 9.1.0 compiler error on archlinux 2019-09-19 23:30:48 -04:00
zig_clang_cc1as_main.cpp update clang driver code to llvm9 2019-07-19 18:07:31 -04:00
zig_clang_driver.cpp stage1: fix lost argv[0] 2019-09-22 11:21:22 -04:00
zig_llvm.cpp Correct stack alignment for new stack 2019-09-21 11:39:50 +02:00
zig_llvm.h Correct stack alignment for new stack 2019-09-21 11:39:50 +02:00