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