Luuk de Gram
c0fe135ff3
test/link: remove redundant dependOn statements
...
`runAndCompare` will already depend on the `CheckObject` step itself
so it's not needed to also have the test step depend on the
check object step.
2022-10-18 17:20:08 +02:00
jacobly0
bd0dd225e8
Sema: implement linksection on functions
...
* Sema: implement linksection on functions
* Implement function linksection in Sema.
* Don't clobber function linksection/align/addrspace in Sema.
* Fix copy-paste typo in tests.
* Add a bunch of missing test_step.dependOn.
* Fix checkInSymtab match.
Closes #12546
2022-10-18 14:02:10 +03:00
Luuk de Gram
4776065036
Use EmulatableRunStep for MachO linker tests
2022-07-23 10:03:51 +02:00
Jakub Konka
5834a608fc
link-tests: do not save global extracted var unless a match
...
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-28 10:23:25 +02:00
Jakub Konka
f91503e577
link-tests: defer parsing of the RPN program until running the action
2022-06-25 17:56:03 +02:00
Jakub Konka
03ddb42b8b
link-tests: rename check() to checkStart()
...
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-23 13:16:03 +02:00
Jakub Konka
b35e434cae
link-tests: clean up linker testing harness
2022-06-22 18:34:39 +02:00
Jakub Konka
23a63f4ce4
link-tests: rename CheckMachOStep to CheckObjectStep and accept obj format
2022-06-22 10:27:51 +02:00
Jakub Konka
b5601a2da6
link-tests: extract values into variables
...
We can then collect multiple variables (currently assumed always
in global scope) and run a comparison with some very basic
arithmetic on the values.
2022-06-22 00:49:22 +02:00
Jakub Konka
3bb4d65b2f
link-tests: move macho tests to subfolder
...
Handle `-e` option in MachO linker allowing the user to set a custom
entrypoint address.
2022-06-21 23:01:09 +02:00