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
6 changes: 3 additions & 3 deletions ml-proto/runtests.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,14 +51,14 @@ def find_interpreter(path):
def rebuild_interpreter(path):
print("// building %s" % path)
sys.stdout.flush()
exitCode = subprocess.call(["ocamlbuild", "-libs", "bigarray, str", "-Is", "given, spec, host", "-cflags", "-g", "host/main.native"])
exitCode = subprocess.call(["make"])
if (exitCode != 0):
raise Exception("ocamlbuild failed with exit code %i" % exitCode)
raise Exception("make failed with exit code %i" % exitCode)
if not os.path.exists(path):
raise Exception("Interpreter has not been built. Looked for %s" % path)

if __name__ == "__main__":
interpreterPath = os.path.abspath("./main.native")
interpreterPath = os.path.abspath("./wasm")

try:
os.makedirs("test/output/")
Expand Down
2 changes: 1 addition & 1 deletion ml-proto/travis/build-test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,6 @@ cd $(dirname ${BASH_SOURCE[0]})/..

export PATH=$PWD/../ocaml/install/bin:$PATH

ocamlbuild -libs "bigarray, str" -Is "given, spec, host" main.native
make

./runtests.py