diff options
author | JF Bastien <github@jfbastien.com> | 2016-01-06 15:32:47 -0800 |
---|---|---|
committer | JF Bastien <github@jfbastien.com> | 2016-01-06 15:32:47 -0800 |
commit | fe7f311a4365ac5740ba89fdfaea706ddd2c8b7a (patch) | |
tree | 6476663898c6a80277d50790fe16a4c428ba2707 /check.py | |
parent | acfb322187321f69b8f3cf71009c423ab594e200 (diff) | |
parent | d7632fc6d76289ab2d66f54cb8eb87049b743818 (diff) | |
download | binaryen-fe7f311a4365ac5740ba89fdfaea706ddd2c8b7a.tar.gz binaryen-fe7f311a4365ac5740ba89fdfaea706ddd2c8b7a.tar.bz2 binaryen-fe7f311a4365ac5740ba89fdfaea706ddd2c8b7a.zip |
Merge pull request #75 from WebAssembly/commit-torture-s
Commit the torture .s files
Diffstat (limited to 'check.py')
-rwxr-xr-x | check.py | 13 |
1 files changed, 7 insertions, 6 deletions
@@ -14,7 +14,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -import os, sys, subprocess, difflib, json, time +import os, shutil, sys, subprocess, difflib, json, time interpreter = None requested = [] @@ -278,14 +278,15 @@ for s in sorted(os.listdir(os.path.join('test', 'dot_s'))) + sorted(os.listdir(o 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) +s2wasm_torture_out = os.path.abspath(os.path.join('test', 's2wasm-torture-out')) +if os.path.isdir(s2wasm_torture_out): + shutil.rmtree(s2wasm_torture_out) +os.mkdir(s2wasm_torture_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')), + files=os.path.abspath(os.path.join('test', 'torture-s', '*.s')), fails=os.path.abspath(os.path.join('test', 's2wasm_known_gcc_test_failures.txt')), - out=s2wasm_out) + out=s2wasm_torture_out) if unexpected_result_count: fail(unexpected_result_count, 0) |