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:
Nicolas B. Pierron
2019-08-27 14:25:21 +02:00
committed by Nicolas B. Pierron
parent 26efc696c6
commit 04b10b3fde
7 changed files with 130 additions and 7 deletions

View File

@@ -20,3 +20,6 @@ log = "0.4.6"
memmap = "0.7.0"
num_cpus = "1.8.0"
region = "2.1.2"
[features]
basic-blocks = []