Add feature flags to test files.
Cranelift can be compiled with feature flags which can change its output. To accomodate changes of output related to feature flags, test file can now include `feature "..."` and `feature ! "..."` directives in the preamble of the test file. The test runner would skip the test if the flag does not match the expectation of the test case.
This commit is contained in:
committed by
Nicolas B. Pierron
parent
26efc696c6
commit
04b10b3fde
@@ -48,7 +48,8 @@ walkdir = "2.2"
|
||||
default = ["disas", "wasm", "cranelift-codegen/all-arch"]
|
||||
disas = ["capstone"]
|
||||
wasm = ["wabt", "cranelift-wasm"]
|
||||
basic-blocks = ["cranelift-codegen/basic-blocks", "cranelift-frontend/basic-blocks", "cranelift-wasm/basic-blocks"]
|
||||
basic-blocks = ["cranelift-codegen/basic-blocks", "cranelift-frontend/basic-blocks",
|
||||
"cranelift-wasm/basic-blocks", "cranelift-filetests/basic-blocks"]
|
||||
|
||||
# We want debug symbols on release binaries by default since it allows profiling
|
||||
# tools to give more accurate information. We can always strip them out later if
|
||||
|
||||
Reference in New Issue
Block a user