Added tests for byte-code only architectures (#509)
This commit is contained in:
parent
0d62c34e42
commit
1e6ee05ecc
|
@ -307,3 +307,14 @@
|
|||
(progn
|
||||
(run ${exe:cram.exe} run.t)
|
||||
(diff? run.t run.t.corrected)))))))
|
||||
|
||||
|
||||
(alias
|
||||
((name runtest)
|
||||
(deps ((files_recursively_in test-cases/byte-code-only)))
|
||||
(action
|
||||
(chdir test-cases/byte-code-only
|
||||
(setenv JBUILDER ${bin:jbuilder}
|
||||
(progn
|
||||
(run ${exe:cram.exe} run.t)
|
||||
(diff? run.t run.t.corrected)))))))
|
||||
|
|
|
@ -0,0 +1,3 @@
|
|||
(executable
|
||||
((name toto)
|
||||
(public_name toto)))
|
|
@ -0,0 +1 @@
|
|||
print_endline "Hello, world!"
|
|
@ -0,0 +1,3 @@
|
|||
#!/bin/sh
|
||||
export PATH="$ORIG_PATH"
|
||||
exec ocamlc "$@"
|
|
@ -0,0 +1,3 @@
|
|||
#!/bin/sh
|
||||
export PATH="$ORIG_PATH"
|
||||
exec ocamldep "$@"
|
|
@ -0,0 +1,3 @@
|
|||
#!/bin/sh
|
||||
export PATH="$ORIG_PATH"
|
||||
exec ocamlmklib "$@"
|
|
@ -0,0 +1,9 @@
|
|||
$ env ORIG_PATH="$PATH" PATH="$PWD/ocaml-bin:$PATH" $JBUILDER build --root . -j1 --display short
|
||||
No rule found for src/.foo.objs/foo.cmx
|
||||
ocamldep bin/toto.ml.d
|
||||
ocamldep src/foo.ml.d
|
||||
ocamlc bin/.toto.eobjs/toto.{cmi,cmo,cmt}
|
||||
ocamlc src/.foo.objs/foo.{cmi,cmo,cmt}
|
||||
ocamlc bin/toto.exe
|
||||
ocamlc src/foo.cma
|
||||
[1]
|
|
@ -0,0 +1 @@
|
|||
let x = 42
|
|
@ -0,0 +1,3 @@
|
|||
(library
|
||||
((name foo)
|
||||
(public_name foo)))
|
Loading…
Reference in New Issue