Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion ml-proto/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ wasm [option] [file ...]
where `file` is a script file (see below) to be run. If no file is given, you'll get into the REPL and can enter script commands interactively. You can also get into the REPL by explicitly passing `-` as a file name. You can do that in combination to giving a module file, so that you can then invoke its exports interactively, e.g.:

```
./wasm module.wase -
./wasm module.wast -
```
Note however that the REPL currently is too dumb to allow multi-line input. :)

Expand Down
6 changes: 3 additions & 3 deletions ml-proto/runtests.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

class RunTests(unittest.TestCase):
def _runTestFile(self, shortName, fileName, interpreterPath):
logPath = fileName.replace("test/", "test/output/").replace(".wase", ".wase.log")
logPath = fileName.replace("test/", "test/output/").replace(".wast", ".wast.log")
try:
os.remove(logPath)
except OSError:
Expand All @@ -20,7 +20,7 @@ def _runTestFile(self, shortName, fileName, interpreterPath):
self.assertEqual(0, exitCode, "test runner failed with exit code %i" % exitCode)

try:
expected = open(fileName.replace("test/", "test/expected-output/").replace(".wase", ".wase.log"))
expected = open(fileName.replace("test/", "test/expected-output/").replace(".wast", ".wast.log"))
except IOError:
# print("// WARNING: No expected output found for %s" % fileName)
return
Expand Down Expand Up @@ -72,6 +72,6 @@ def rebuild_interpreter(path):
else:
find_interpreter(interpreterPath)

testFiles = glob.glob("test/*.wase")
testFiles = glob.glob("test/*.wast")
generate_test_cases(RunTests, interpreterPath, testFiles)
unittest.main()
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.