Commit graph

85 commits

Author SHA1 Message Date
Brian Carroll
fd9a92927b Clean up a stray underscore 2022-05-03 19:13:32 +01:00
Ayaz Hafiz
b86bf94d92
Dev, wasm test bugs 2022-04-12 17:35:00 -04:00
Folkert
311e464b70
add load_internal 2022-03-23 15:18:22 +01:00
Folkert
d8fa2b8d92
stop passing stdlib (use lazy_static) 2022-03-22 19:53:02 +01:00
Brian Carroll
21ee531e8c wasm: Add Roc procedure names to Names section for debug 2022-03-18 14:46:53 +00:00
Folkert
e1d5b748b1
fix wasm/dev tests 2022-03-12 00:13:49 +01:00
Brian Carroll
4d14fbf562 wasm: use a debug-friendly enum for refcount tests 2022-03-08 07:43:01 +00:00
Brian Carroll
338961d202 wasm: go back to custom bytes->string transformation
CStr version is too hard to get working correctly. I get weird test failures
with random characters in the middle of strings.
2022-03-04 19:52:27 +00:00
Brian Carroll
20e46fbda4 wasm: address PR feedback 2022-03-04 19:12:18 +00:00
Brian Carroll
561a1d16ff wasm: add expect_runtime_error_panic test macro 2022-03-02 08:05:48 +00:00
Brian Carroll
85ba3154ec wasm: fix roc_panic message retrieval 2022-03-01 18:47:51 +00:00
Brian Carroll
8d484e8c9e wasm: tests read panic message from a global pointer 2022-02-28 00:53:01 +00:00
Brian Carroll
7ccc5ec768 Merge branch 'trunk' of github.com:rtfeldman/roc into wasm-runtime-error 2022-02-27 22:57:23 +00:00
Brian Carroll
603c98d1d9 wasm tests: use wasmer .unwrap_i32 2022-02-20 09:05:08 +00:00
Folkert
04adbe75ca fix test compilation 2022-02-14 21:09:51 +01:00
Brian Carroll
a9df6f4ff9 test_gen: create a getter for wasm panic messages 2022-02-12 00:19:52 +00:00
Brian Carroll
57179eb458 test_gen: comments about wasm panics 2022-02-11 08:12:36 +00:00
Brian Carroll
0d08c97e44 wasm: enable a test that has a Stmt::RuntimeError 2022-02-09 17:23:36 +00:00
Brian Carroll
c21b2bd0da Formatting and Clippy 2022-02-08 11:03:48 +00:00
Brian Carroll
85b418ebdf wasm: get rid of Result from gen_wasm, rename a function, improve comments 2022-02-08 11:03:48 +00:00
Brian Carroll
2fd2a85887 wasm: delete redundant enum TestType 2022-02-08 11:03:48 +00:00
Brian Carroll
c5ccc99e20 repl: rename Wasm32TestResult -> Wasm32Result 2022-02-08 11:03:48 +00:00
Brian Carroll
1783fa8009 repl: rename FromWasm32Memory -> FromWasmerMemory 2022-02-08 11:03:48 +00:00
Brian Carroll
e9871947d3 repl: move wasm32_test_result to gen_wasm, and extract Wasm32Sized from FromWasm32Memory 2022-02-08 11:03:48 +00:00
Folkert
b9c318e9fb update the tests 2022-01-26 15:59:21 +01:00
Folkert
9ee7198e45 and another 2022-01-25 15:23:53 +01:00
Folkert
3137e14a85 another test fix 2022-01-25 13:37:30 +01:00
Brian Carroll
c7da7ca689 Wasm: Parse the Name section, export init_refcount_test, and don't DCE exports 2022-01-14 18:20:52 +00:00
Brian Carroll
3d00217b53 Wasm: rename build_module_help -> build_module_without_test_wrapper 2022-01-14 18:20:52 +00:00
Brian Carroll
7f5b8c7296 Merge branch 'trunk' of github.com:rtfeldman/roc into wasm-pre-linking 2022-01-14 18:20:24 +00:00
ayazhafiz
72ee2d6327 Mark pretty_print_ir_symbols public 2022-01-13 16:35:09 -05:00
Brian Carroll
9c0abcd0da Wasm: Preload WasmModule from object file bytes 2022-01-13 05:41:52 +00:00
Brian Carroll
fd79613f0d Wasm: load platform object file in tests and pass the bytes to the backend 2022-01-13 05:41:52 +00:00
Brian Carroll
56316da870 Wasm: skip linking step in tests 2022-01-13 05:41:52 +00:00
Brian Carroll
5a39002e8b Wasm: Serialize WasmModule without linking info 2022-01-13 05:41:52 +00:00
Brian Carroll
d88b86e884 Wasm: change TypeSection tests to unit tests rather than integration tests 2022-01-13 05:41:52 +00:00
Brian Carroll
5de9581b62 Wasm: pre-link app-independent code before running tests (builtins, plaform & libc) 2022-01-13 05:41:52 +00:00
Brian Carroll
54f2855349 Merge branch 'trunk' of github.com:rtfeldman/roc into wasm-module-refactor 2022-01-11 21:51:03 +00:00
Brian Carroll
fc677e8d58 Wasm: add preloading logic for Types section 2022-01-10 10:26:43 +00:00
Brian Carroll
8cf82ae1b3 Wasm: Delete old output files before compiling new ones 2022-01-10 10:26:42 +00:00
Brian Carroll
e0d0e1884d Check number of allocations in refcount tests 2022-01-05 12:24:04 +00:00
Brian Carroll
310de090a3 Wasm: Refcounting for struct fields 2022-01-01 11:32:53 +00:00
Brian Carroll
ff0c0766ad Note on why refcount tests need result type 2021-12-31 23:53:51 +00:00
Brian Carroll
6fabeb345b edit comment 2021-12-31 21:23:15 +00:00
Brian Carroll
4a6b79b686 Wasm tests: Skip linking step (and all filesystem access) when not needed 2021-12-31 21:23:15 +00:00
Brian Carroll
84661b7ae1 Rename BuildType -> TestType 2021-12-31 21:23:15 +00:00
Brian Carroll
01f293125a Delete debug code that has been superseded 2021-12-31 21:23:15 +00:00
Brian Carroll
a2e58f8530 Split wasm test code into smaller well-named functions 2021-12-31 21:23:15 +00:00
Brian Carroll
d66d432716 Wasm tests: speed up 3x by only exporting refcount symbols when used
49s vs 2m10s
2021-12-31 21:23:15 +00:00
Brian Carroll
7aa3f77b3c Handle freed values in refcount tests 2021-12-29 17:31:05 +00:00