diff options
author | Ben Smith <binjimin@gmail.com> | 2017-04-04 17:09:16 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-04-04 17:09:16 -0700 |
commit | f0045ae5f5e8f842a44af179c0575388adf570e7 (patch) | |
tree | 2667ab98c098e3e53a84157e93f0a213c31ba1c7 /test/run-wasm-link.py | |
parent | fa6a4e0c6cbf253fa6dab9b8da59312d7e7e6b3f (diff) | |
download | wabt-f0045ae5f5e8f842a44af179c0575388adf570e7.tar.gz wabt-f0045ae5f5e8f842a44af179c0575388adf570e7.tar.bz2 wabt-f0045ae5f5e8f842a44af179c0575388adf570e7.zip |
Run tests on AppVeyor (#385)
Fixes issue #326.
* Install target installs all executables; this is required because we don't
actually know where MSVC builds its targets to
* Use absolute paths when running all executables
* Set `PYTHONPATH` to test directory; for some reason the Windows `sys.path`
doesn't include the current script's directory
* In `wasmdump`, strip the directory up to the last slash or backslash
* In `wasm-interp`, Use round-to-nearest-ties-to-even when converting from
uint64 to float or double
* Check for backslash or slash in `get_dirname` in `wasm-interp`, when looking
for modules alongside the JSON file
* print floats in `wasm-interp` using `%f` not `%g`, since MSVC prints using 3
digits for exponent instead of 2
* In `run-wasm-link.py`, remove file before renaming on top of it
Diffstat (limited to 'test/run-wasm-link.py')
-rwxr-xr-x | test/run-wasm-link.py | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/test/run-wasm-link.py b/test/run-wasm-link.py index 39b4d675..83d4d787 100755 --- a/test/run-wasm-link.py +++ b/test/run-wasm-link.py @@ -95,13 +95,15 @@ def main(args): output = os.path.join(out_dir, 'linked.wasm') if options.incremental: - partialy_linked = output + '.partial' + partially_linked = output + '.partial' for i, f in enumerate(wasm_files): if i == 0: wasm_link.RunWithArgs('-o', output, f) else: - os.rename(output, partialy_linked) - wasm_link.RunWithArgs('-r', '-o', output, partialy_linked, f) + if os.path.exists(partially_linked): + os.remove(partially_linked) + os.rename(output, partially_linked) + wasm_link.RunWithArgs('-r', '-o', output, partially_linked, f) #wasmdump.RunWithArgs('-d', '-h', output) wasmdump.RunWithArgs('-d', '-x', '-r', '-h', output) else: |