diff options
author | JF Bastien <jfb@chromium.org> | 2016-01-04 12:43:29 -0800 |
---|---|---|
committer | JF Bastien <jfb@chromium.org> | 2016-01-04 12:43:29 -0800 |
commit | c7e7a9215e4c833653549b806a29b02399320bd6 (patch) | |
tree | dee6e0300ecb8c1568039c77a6602d76ebd9aad1 | |
parent | 1f8e4a4da473f6a76e48c3ffb6f0aec2d3c1b5a3 (diff) | |
download | binaryen-c7e7a9215e4c833653549b806a29b02399320bd6.tar.gz binaryen-c7e7a9215e4c833653549b806a29b02399320bd6.tar.bz2 binaryen-c7e7a9215e4c833653549b806a29b02399320bd6.zip |
Test s2wasm using buildbot's last known good .s files
-rw-r--r-- | README.md | 4 | ||||
-rwxr-xr-x | check.py | 14 |
2 files changed, 18 insertions, 0 deletions
@@ -158,6 +158,10 @@ The `WASM_BACKEND` option tells it to use the WebAssembly backend instead of the (or `python check.py`) will run `binaryen-shell`, `asm2wasm`, and `wasm.js` on the testcases in `test/`, and verify their outputs. +It will also run `s2wasm` through the last known good LLVM output from the [build waterfall][], as fetched by `update.py`. + + [build waterfall]: https://build.chromium.org/p/client.wasm.llvm/console + The `check.py` script supports some options: ``` @@ -275,6 +275,20 @@ for s in sorted(os.listdir(os.path.join('test', 'dot_s'))) + sorted(os.listdir(o out, err = proc.communicate() assert proc.returncode == 0, err +print '\n[ checking torture testcases... ]\n' + +import test.experimental.buildbot.link_assembly_files as link_assembly_files +s2wasm_out = os.path.abspath(os.path.join('buildbot', 's2wasm-out')) +if not os.path.isdir(s2wasm_out): + os.mkdir(s2wasm_out) +unexpected_result_count = link_assembly_files.run( + linker=os.path.abspath(os.path.join('bin', 's2wasm')), + files=os.path.abspath(os.path.join('buildbot', 'torture-s', '*.s')), + fails=os.path.abspath(os.path.join('test', 's2wasm_known_gcc_test_failures.txt')), + out=s2wasm_out) +if unexpected_result_count: + fail(unexpected_result_count, 0) + print '\n[ checking example testcases... ]\n' subprocess.check_call(['g++', '-std=c++11', os.path.join('test', 'example', 'find_div0s.cpp'), '-Isrc', '-g', '-lsupport', '-Llib/.']) |