aboutsummaryrefslogtreecommitdiff
path: root/test/link.zig
AgeCommit message (Collapse)Author
2024-04-07Promote linker test cases to packagesCarl Åstholm
2024-02-29wasm: gc fixes and re-enable linker testsLuuk de Gram
Certain symbols were left unmarked, meaning they would not be emit into the final binary incorrectly. We now mark the synthetic symbols to ensure they are emit as they are already created under the circumstance they're needed for. This also re-enables disabled tests that were left disabled in a previous merge conflict. Lastly, this adds the shared-memory test to the test harnass as it was previously forgotten and therefore regressed.
2024-01-24test/link/macho: migrate all tests to the new test matrixJakub Konka
2024-01-24test/link/macho: upgrade tbdv3 testJakub Konka
2024-01-24test/link/macho: upgrade unwind info testsJakub Konka
2024-01-24test/link/macho: test stacksize optionJakub Konka
2024-01-24test/link/macho: upgrade search strategy testJakub Konka
2024-01-24test/link/macho: remove converted standalone testsJakub Konka
2024-01-24test/link/macho: upgrade strict validation of layout testJakub Konka
2024-01-24test/link/macho: upgrade entry and entry in archive testsJakub Konka
2024-01-24test/link/macho: upgrade empty object testJakub Konka
2024-01-24test/link/macho: upgrade dylib testJakub Konka
2024-01-24test/link/macho: upgrade dead_strip_dylibs testJakub Konka
2024-01-24test/link/macho: upgrade tls testJakub Konka
2024-01-24test/link/macho: upgrade weak framework testJakub Konka
2024-01-24test/link/macho: upgrade weak library testJakub Konka
2024-01-24test/link/macho: upgrade and migrate headerpad testJakub Konka
2024-01-24test/link/macho: upgrade and migrate needed_library testJakub Konka
2024-01-24test/link/link: pass build options to elf and macho testsJakub Konka
2024-01-24test/link/macho: upgrade and migrate dead_strip testJakub Konka
2024-01-24test/link/macho: migrate entry_in_dylib test to new test formatJakub Konka
2023-11-10test/link: spawn ELF and MachO tests from the same root test/link/link.zigJakub Konka
2023-09-26elf: port some of zld's test harnessJakub Konka
2023-09-19disable failing wasm linking testsAndrew Kelley
These started failing after the LLVM 17 upgrade. See tracking issues #16937 and #16938
2023-08-16macho: add smoke test for re-exports in static libsJakub Konka
2023-08-02link-test: add matching test case for unwind info when ↵Jakub Konka
MH_SUBSECTIONS_VIA_SYMBOLS is not set
2023-07-26Merge pull request #16553 from ziglang/issue-11896Jakub Konka
macho: fix parsing of TBDv3 dylib stubs
2023-07-26link-test: add test case for MachO bug 16308Jakub Konka
2023-07-26link-test: add test for TBDv3 updated parsing logicJakub Konka
2023-07-11test: linking static libraries built from intermediary object filesXavier Bouchoux
2023-06-19link-test: remove now obsolete UUID test for MachOJakub Konka
2023-04-06Merge pull request #15101 from motiejus/glibc_compatAndrew Kelley
glibc: add backwards compatibility for some symbols
2023-04-01link-test: add test for entry in a dynamic library for MachOJakub Konka
2023-04-01link-test: add test for entry in a static archive for MachOJakub Konka
2023-03-28glibc compat: add a test and READMEMotiejus Jakštys
2023-03-15remove redundant link testAndrew Kelley
2023-03-15re-enable the simple standalone testsAndrew Kelley
2023-03-15re-enable macho linker testsAndrew Kelley
2023-03-15re-enable wasm linker testsAndrew Kelley
2023-03-15delete link test "static_lib_as_system_lib"Andrew Kelley
I disagree with this behavior and will be reverting the changes corresponding to this test case. Also this test case unnecessarily uses a .c file when a .zig file would be preferred, and has a problematic dependency on the install step, preventing this test case from playing nicely with the cache.
2023-03-15new linker test harnessAndrew Kelley
It's simpler and it takes advantage of `std.Build.addAnonymousDependency`, which has a number of benefits, including concurrenc and preventing extra zig-cache and zig-out directories being created. 4 tests are ported over as an example.
2023-01-20link-tests: test unwind info emitter via c++ exceptionsJakub Konka
2023-01-03wasm-linker: Fix & mangle symbol name of importsLuuk de Gram
When outputting the names section, we should output the actual symbol name rather than the import name. This makes sure that symbols with an explicit name set have the correct name but retain the import name too. We also now correctly mangle the name of an extern function with an explicit library name. This ensures that functions that have a different library name, but the same import/function name, can be resolved correctly with other modules and don't resolve to the same symbol.
2023-01-02test/link: add test case for exporting data symsLuuk de Gram
2023-01-02test/link: add test case for function tableLuuk de Gram
Adds 3 linker tests to verify the indirect function table functionality for importing, exporting and its regular definitions.
2023-01-02test/link: linker tests for all export casesLuuk de Gram
Adds a linker test case for each possible export case. This means one where no exports are done (i.e. no flags set), when the -dynamic flag is set, and finally when --export=<value> flag(s) are set.
2022-12-23link-tests: add macho strict validation testJakub Konka
Support more operators when running simple arithmetic tests, and allow for int literals in the program spec.
2022-12-16macho: add uuid link testJakub Konka
2022-11-26'fmt'kcbanner
2022-11-26test-link: add -Denable-symlinks-windows to opt-in to using symlinkskcbanner
Adds a way for standalone tests to declare they need symlinks, and these tests won't be run on windows unless -Denable-symlinks-windows is set