aboutsummaryrefslogtreecommitdiff
path: root/lib/std/build/CheckObjectStep.zig
AgeCommit message (Collapse)Author
2022-08-03macho: sync with zldJakub Konka
gitrev a2c32e972f8c5adfcda8ed2d99379ae868f59c24 https://github.com/kubkon/zld/commit/a2c32e972f8c5adfcda8ed2d99379ae868f59c24
2022-07-23rename:RunCompareStep -> EmulatableRunStepLuuk de Gram
Renamed to better convery the intention of the step
2022-07-23RunCompareStep: implement new stepLuuk de Gram
This creates a new step that can run foreign binaries when emulation is enabled using options such as `enable_qemu`. When an incompatible binary is found, the binary will not be executed. This differs from `RunStep` which will always execute a binary, regardless of the compatibility. This is useful for usecases where the user wishes to allow for running the binary on any supported platform either natively or through emulation, but not generate an error when met with an incompatibility. The above is useful when creating test cases that rely on running the binary and optionally verifying its output. The addition of this Step was generated by the need for our linker tests. For that reason, a handy function was created on `CheckObjectStep` to ease the setup for that.
2022-07-22link-tests: add checkNotPresent and add -dead_strip smoke testJakub Konka
`checkNotPresent` is the inverse of `checkNext` - if the phrase is found in the output, then it fails the test.
2022-07-12wasm-linker: Implement linker tests (#12006)Luuk de Gram
* test/link: initial wasm support This adds basic parsing and dumping of wasm section so they can be tested using the new linker-test infrastructure. * test/link: all wasm sections parsing and dumping We now parse and dump all sections for the wasm binary format. Currently, this only dumps the name of a custom section. Later this should also dump symbol table, name, linking metadata and relocations. All of those live within the custom sections. * Add wasm linker test This also fixes a parser mistake in reading the flags. * test/link: implement linker tests wasm & fixes Adds several test cases to test the wasm self-hosted linker. This also introduces fixes that were caught during the implementation of those tests. * test-runner: obey omit_stage2 for standalone When a standalone test requires stage2, but stage2 is omit from the compiler, such test case will not be included as part of the test suite that is being ran. This is to support CI's where we omit stage2 to lower the memory usage.
2022-06-28link-tests: do not save global extracted var unless a matchJakub Konka
Improve testing MachO binaries by verbose printing of the symtab which includes segment,section names for defined symbols, and import (dylib) name for imports.
2022-06-28link-tests: test -weak-lx and -weak_framework xJakub Konka
2022-06-25link-tests: defer parsing of the RPN program until running the actionJakub Konka
2022-06-23link-tests: rename check() to checkStart()Jakub Konka
Do not hardcode the symtab label; instead allow each parser to define its own. Check for missing extractor value in the matcher when matching `{}`.
2022-06-23link-tests: fix parsing symtab for machoJakub Konka
2022-06-22link-tests: add better docsJakub Konka
2022-06-22link-tests: clean up error messages in case of failureJakub Konka
2022-06-22link-tests: clean up linker testing harnessJakub Konka
2022-06-22link-tests: fix dumping of LOAD_DYLIB: name instead of path fieldJakub Konka
2022-06-22link-tests: rename CheckMachOStep to CheckObjectStep and accept obj formatJakub Konka