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