summaryrefslogtreecommitdiff
path: root/test/lit/lit.cfg.py
Commit message (Collapse)AuthorAgeFilesLines
* Move lit test temporary files to out/test/ (#6887)Thomas Lively2024-08-291-1/+1
| | | | Previously for in-tree builds, they were put directly into test/, which unnecessarily pollutes the tree.
* Propagate environment variables to lit test commands (#4159)Thomas Lively2021-09-161-0/+3
| | | | | | This means that when check.py tries to run the lit tests with BINARYEN_PASS_DEBUG, this is now correctly reflected in the tests. Manually validated to catch the bug identified in https://github.com/WebAssembly/binaryen/pull/4130#discussion_r709619855.
* Handle extra info in dylink section (#4112)Sam Clegg2021-08-311-0/+2
| | | | | If extra data is found in this section simply propagate it. Also, remove some dead code from wasm-binary.cpp.
* Do not execute lit tests via an external shell (#3974)Thomas Lively2021-07-081-1/+1
| | | | | | We were previously configuring lit to execute test scripts via an external shell, which caused lit to look for a bash installation on Windows. To make lit tests work more "out of the box" on Windows, change the configuration to use lit's built in shell capabilities instead.
* Add a `foreach` script for use in lit testsThomas Lively2021-06-171-4/+5
| | | | | | | The major drawback of lit tests is that so far they have only supported a single module per test file. This commit adds a new utility script that splits an input file into multiple files and runs a command on each of them, giving lit tests a simple way to test multiple modules per file.
* [wasm-split] Make option validation declarative (#3916)Thomas Lively2021-06-011-1/+1
| | | | | | In anticipation of adding a third wasm-split mode, merge-profiles, in addition to the existing split and instrument modes, refactor wasm-split's option validation to let the valid modes be declared for each option. This approach is more scalable and robust than the ad-hoc validation we had previously.
* Improve lit support (#3426)Sam Clegg2020-12-091-4/+4
| | | | | | | | This uses the same technique used in llvm-lit to enable running on in-tree tests with out-of-tree builds. So you can run something like this: ../binaryen-out/bin/binaryen-lit test/lit/
* Introduce lit/FileCheck tests (#3367)Thomas Lively2020-11-181-0/+21
lit and FileCheck are the tools used to run the majority of tests in LLVM. Each lit test file contains the commands to be run for that test, so lit tests are much more flexible and can be more precise than our current ad hoc testing system. FileCheck reads expected test output from comments, so it allows test output to be written alongside and interspersed with test input, making tests more readable and precise than in our current system. This PR adds a new suite to check.py that runs lit tests in the test/lit directory. A few tests have been ported to demonstrate the features of the new test runner. This change is motivated by a need for greater flexibility in testing wasm-split. See #3359.