tree: 8313533fbc4c51ed9218514540f137eb6cbee8d2 [path history] [tgz]
  1. expected-output/
  2. address-offset-range.fail.wast
  3. address.wast
  4. address64.wast
  5. align.wast
  6. align64.wast
  7. array.wast
  8. atomics.wast
  9. binary-leb128.wast
  10. binary.wast
  11. block.wast
  12. br.wast
  13. br_if.wast
  14. br_on_null.wast
  15. br_table.wast
  16. break-drop.wast
  17. bulk-memory.wast
  18. bulk-memory64.wast
  19. call.wast
  20. call_indirect.wast
  21. call_indirect_sig_mismatch.wast
  22. comments.wast
  23. const.wast
  24. Contributing.md
  25. conversions.wast
  26. custom.wast
  27. data.wast
  28. elem.wast
  29. endianness.wast
  30. endianness64.wast
  31. events.wast
  32. exception-handling.wast
  33. exports.wast
  34. f32.load32.fail.wast
  35. f32.load64.fail.wast
  36. f32.store32.fail.wast
  37. f32.store64.fail.wast
  38. f32.wast
  39. f32_bitwise.wast
  40. f32_cmp.wast
  41. f64.load32.fail.wast
  42. f64.load64.fail.wast
  43. f64.store32.fail.wast
  44. f64.store64.fail.wast
  45. f64.wast
  46. f64_bitwise.wast
  47. f64_cmp.wast
  48. fac.wast
  49. float_exprs.wast
  50. float_literals.wast
  51. float_memory.wast
  52. float_memory64.wast
  53. float_misc.wast
  54. forward.wast
  55. func-local-after-body.fail.wast
  56. func-local-before-param.fail.wast
  57. func-local-before-result.fail.wast
  58. func-param-after-body.fail.wast
  59. func-result-after-body.fail.wast
  60. func-result-before-param.fail.wast
  61. func.wast
  62. func_ptrs.wast
  63. get_local.wast
  64. globals.wast
  65. i32.load32_s.fail.wast
  66. i32.load32_u.fail.wast
  67. i32.load64_s.fail.wast
  68. i32.load64_u.fail.wast
  69. i32.store32.fail.wast
  70. i32.store64.fail.wast
  71. i32.wast
  72. i64.load64_s.fail.wast
  73. i64.load64_u.fail.wast
  74. i64.store64.fail.wast
  75. i64.wast
  76. if.wast
  77. import-after-func.fail.wast
  78. import-after-global.fail.wast
  79. import-after-memory.fail.wast
  80. import-after-table.fail.wast
  81. imports.wast
  82. inline-module.wast
  83. int_exprs.wast
  84. int_literals.wast
  85. labels.wast
  86. left-to-right.wast
  87. LICENSE
  88. linking.wast
  89. load.wast
  90. load64.wast
  91. local_get.wast
  92. local_set.wast
  93. local_tee.wast
  94. loop.wast
  95. memory.wast
  96. memory64.wast
  97. memory_grow.wast
  98. memory_grow64.wast
  99. memory_redundancy.wast
  100. memory_redundancy64.wast
  101. memory_size.wast
  102. memory_trap.wast
  103. memory_trap64.wast
  104. multivalue.wast
  105. names.wast
  106. nop.wast
  107. of_string-overflow-hex-u32.fail.wast
  108. of_string-overflow-hex-u64.fail.wast
  109. of_string-overflow-s32.fail.wast
  110. of_string-overflow-s64.fail.wast
  111. of_string-overflow-u32.fail.wast
  112. of_string-overflow-u64.fail.wast
  113. old_address.wast
  114. old_address64.wast
  115. old_block.wast
  116. old_br_if.wast
  117. old_call.wast
  118. old_call_indirect.wast
  119. old_exports.wast
  120. old_float_exprs.wast
  121. old_float_literals.wast
  122. old_func.wast
  123. old_globals.wast
  124. old_import.wast
  125. old_int_literals.wast
  126. old_loop.wast
  127. old_select.wast
  128. old_start.wast
  129. old_unreachable.wast
  130. README.md
  131. ref_func.wast
  132. ref_is_null.wast
  133. ref_null.wast
  134. resizing.wast
  135. resizing64.wast
  136. return.wast
  137. run.py
  138. select.wast
  139. set_local.wast
  140. simd.wast
  141. skip-stack-guard-page.wast
  142. stack.wast
  143. start.wast
  144. store.wast
  145. store_retval.wast
  146. switch.wast
  147. tee_local.wast
  148. token.wast
  149. traps.wast
  150. type.wast
  151. typecheck.wast
  152. unreachable.wast
  153. unreached-invalid.wast
  154. unwind.wast
  155. utf8-custom-section-id.wast
  156. utf8-import-field.wast
  157. utf8-import-module.wast
  158. utf8-invalid-encoding.wast
test/spec/README.md

This directory contains tests for the core WebAssembly semantics, as described in Semantics.md and specified by the spec interpreter.

Tests are written in the S-Expression script format defined by the interpreter.

The test suite can be run with the spec interpreter as follows:

./run.py --wasm <path-to-wasm-interpreter>

where the path points to the spec interpreter executable (or a tool that understands similar options). If the binary is in the working directory, this option can be omitted.

In addition, the option --js <path-to-js-interpreter> can be given to point to a stand-alone JavaScript interpreter supporting the WebAssembly API. If provided, all tests are also executed in JavaScript.