Commit Graph

181 Commits

Author SHA1 Message Date
Nick Lewycky
f11f231acc Remove unused imports. 2020-10-16 17:02:48 -07:00
Nick Lewycky
797db5cd65 wasi tests should use whichever enginer we're testing. 2020-10-16 17:01:50 -07:00
Nick Lewycky
259c928c25 Thread canonicalize_nans through these utils functions and into the callers. 2020-10-16 17:01:40 -07:00
Nick Lewycky
ff15be3a75 Un-ignore these fixed tests. 2020-10-15 17:05:21 -07:00
Nick Lewycky
69eef6e490 Enable cranelift on aarch64.
Add comments to tests/ignores.txt explaining why they're disabled.

Add a list of engines to test so that we don't test engine-native on aarch64.

Disable tests in tests/compilers/traps.rs that fail with cranelift on aarch64.

Disable tests in examples/ that use cranelift + native, on aarch64.
2020-10-15 15:25:43 -07:00
Nick Lewycky
8d835485b6 Merge branch 'master' into feature/ignore-on-engine 2020-10-14 16:21:45 -07:00
Nick Lewycky
e025778574 Limit these disables to cranelift, add one test failure with link for llvm. 2020-10-14 16:20:21 -07:00
Nick Lewycky
e6cd0ab8d4 Generalize the one-off code for matching of mismatched assert_trap messages.
Use this to match all the mismatching trap messages in engine-native testing.
2020-10-14 13:39:32 -07:00
nlewycky
1f08f66ba6 Update tests/compilers/traps.rs
Ignore the test instead of skipping it.

Co-authored-by: Syrus Akbary <me@syrusakbary.com>
2020-10-14 12:58:03 -07:00
Nick Lewycky
c24cb80105 Remove "test-no-traps" cfg! feature from test-generator, use a runtime bool instead.
Rename "test-no-traps" feature to "coverage".

Update .tarpaulin.toml to set coverage and also set test-jit (to fix breakage introduced in PR 1712).
2020-10-14 12:40:05 -07:00
Nick Lewycky
773ab17a85 Add support for "on native" and "on jit" to the ignores.txt.
Extend test-no-traps feature to cover tests/compiler/traps.rs and enable it
when testing with the native engine.

Turn on testing native engine as part of make test.
2020-10-14 01:01:49 -07:00
Nick Lewycky
84c140ecd8 Remove dead code. 2020-10-12 16:56:58 -07:00
Nick Lewycky
344d082171 cargo fmt 2020-10-12 16:53:01 -07:00
Nick Lewycky
d737ad7d9f Add the ability to run tests with either jit or native.
Don't actually make `make test` run them with native though, it doesn't pass yet.
2020-10-12 16:50:38 -07:00
Nick Lewycky
d4c92c3aaf Restore this function. 2020-10-12 15:45:34 -07:00
Nick Lewycky
331ff2b0d1 Update the commented-out code to run tests with engine-native. 2020-10-12 15:39:51 -07:00
Mark McCaskey
a97f339687 Make Function Env immutable
Work in progress, we still have to update Emscripten
2020-09-30 17:30:17 -07:00
Syrus
1ee8f5b68b SIMD tests passing 2020-08-03 16:24:24 -07:00
Syrus
00ae7f7dde Do nan canonicalization only when necessary 2020-07-29 18:55:01 -07:00
Syrus
dca70d35b0 Enable simd tests 2020-07-29 18:19:25 -07:00
Syrus
a732159514 Use better naming for module functions 2020-07-26 12:02:45 -07:00
Syrus
59715c12e0 Improved API a bit further 2020-07-23 16:07:30 -07:00
Syrus
462693e35b Simplified code a bit more 2020-07-23 15:45:00 -07:00
Syrus
b06f021612 Improved Function API 2020-07-21 20:02:01 -07:00
Syrus
e4163a1eb8 Fixed test compilation 2020-07-13 16:55:35 -07:00
Nick Lewycky
138899c186 Remove verify_ir() from Cranelift and LLVM config classes.
It's replaced by `enable_verifier()` on the CompilerConfig trait.

Enable verifier for all compilers (it's a no-op on singlepass but enabled
nevertheless) when running tests.
2020-07-13 12:13:49 -07:00
Ivan Enderlin
bec12c4700 test(compilers) Improve assertions. 2020-07-07 13:37:59 +02:00
Ivan Enderlin
74c49cb297 test(compilers) Test a static host function that fails. 2020-07-07 13:37:49 +02:00
Ivan Enderlin
daf35afbf7 test(compilers) Test static host function that returns a result. 2020-07-07 13:37:11 +02:00
Ivan Enderlin
1d2ee2d302 test(compilers) Improve and simplify tests. 2020-07-07 13:36:32 +02:00
Ivan Enderlin
d760ac2efc test(compilers) Test native host functions returning a Result.
Also clean up a little bit the other test cases.
2020-07-07 13:33:53 +02:00
Mark McCaskey
81eb1b471c Add support for new temp_dirs directive in WASI WAST 2020-06-24 10:58:25 -07:00
Mark McCaskey
a0ee282f59 Fix up some more WASI tests 2020-06-23 15:31:03 -07:00
Mark McCaskey
b068df84ac Add minor fixes for CI 2020-06-23 12:07:13 -07:00
Mark McCaskey
e67a3089fc Get WASI tests working 2020-06-22 17:11:02 -07:00
Nick Lewycky
21827d8f80 These three tests rely on sourcemap information too, which we aren't adding in this branch. 2020-06-18 15:35:39 -07:00
Nick Lewycky
69ccd86b4a Enable the tests that are failing and will be fixed on this branch. 2020-06-18 15:34:23 -07:00
Syrus
5273fa0cae Moved tunables into Store 2020-06-18 12:56:38 -07:00
Syrus
769ffebb61 Improved feature-generation to be compiler-based 2020-06-18 02:11:54 -07:00
Syrus
422051ebe5 Simplified compiler config names 2020-06-18 01:36:25 -07:00
Syrus
74e4ab0e53 Simplify testing logic 2020-06-18 01:20:26 -07:00
Syrus
f2fa2a9100 Created builders for JIT and Native engines 2020-06-18 00:57:32 -07:00
Syrus
99bd98458a Improved compiler configurations 2020-06-17 22:47:32 -07:00
Syrus
8649f2eb79 Remove target from CompilerConfig 2020-06-17 20:26:50 -07:00
Syrus
e062e87d8b Refactored Compilers 2020-06-17 19:17:06 -07:00
losfair
9d27bd2318 Merge remote-tracking branch 'origin/master' into middleware 2020-06-18 00:41:42 +08:00
Mark McCaskey
3cebca05d2 Require Env to be 'static in Function 2020-06-16 12:18:24 -07:00
losfair
fa3e88dd17 Add middleware tests. 2020-06-17 01:43:40 +08:00
Mark McCaskey
0191ffe598 Add wip 2020-06-15 18:05:59 -07:00
Mark McCaskey
0f0a8dde34 Merge branch 'master' into feature/functions-own-their-envs 2020-06-15 16:17:24 -07:00