Add OCaml code generation #24
@ -70,6 +70,7 @@ steps:
|
|||||||
- name: ocaml_tests
|
- name: ocaml_tests
|
||||||
image: ocaml/opam
|
image: ocaml/opam
|
||||||
commands:
|
commands:
|
||||||
|
- ls -als tests/extracted
|
||||||
- bin/run_tests ocaml ml
|
- bin/run_tests ocaml ml
|
||||||
|
|
||||||
volumes:
|
volumes:
|
||||||
|
@ -19,6 +19,7 @@ EXP = 'expect'
|
|||||||
for path in TEST_LIST:
|
for path in TEST_LIST:
|
||||||
destdir = pf"{DESTINATION}/{path.stem}"
|
destdir = pf"{DESTINATION}/{path.stem}"
|
||||||
mkdir -p @(destdir)
|
mkdir -p @(destdir)
|
||||||
|
chmod ugo+rwx @(destdir)
|
||||||
contents = path.read_text()
|
contents = path.read_text()
|
||||||
tests = re.split(r'test\s*(.+?)\s*\[\[.*?\n', contents)[1:]
|
tests = re.split(r'test\s*(.+?)\s*\[\[.*?\n', contents)[1:]
|
||||||
testit = iter(tests)
|
testit = iter(tests)
|
||||||
|
Loading…
Reference in New Issue
Block a user