Skip to content

Commit c93b5d8

Browse files
authored
optimizes functional tests (#1200)
* optimizes functional tests This PR removes `expect` from the most of the test cases and adds a couple of primitives to match against output of any command. Match `bap` `bir` and find the `main` function according to the pattern: ``` match $file bir "" { "sub .*main" {pass "$test $file"} default {fail "$test $file"} } ``` Match bap ouptut for `--version` option: ``` match_output "bap" "--version" { "error" {fail $test} "1" {pass $test} } ``` Check that all strings can be found in the output: ``` find_all $file bir $lines $test ``` Fixes #1136 * optimizes mc * updates testsuite * updates testsuite * updates testsuite * updates testsuite
1 parent cc73915 commit c93b5d8