Added tests for byte-code only architectures (#509)

This commit is contained in:
Jérémie Dimino 2018-02-13 12:46:07 +00:00 committed by GitHub
parent 0d62c34e42
commit 1e6ee05ecc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
10 changed files with 37 additions and 0 deletions

View File

@ -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)))))))

View File

@ -0,0 +1,3 @@
(executable
((name toto)
(public_name toto)))

View File

@ -0,0 +1 @@
print_endline "Hello, world!"

View File

@ -0,0 +1,3 @@
#!/bin/sh
export PATH="$ORIG_PATH"
exec ocamlc "$@"

View File

@ -0,0 +1,3 @@
#!/bin/sh
export PATH="$ORIG_PATH"
exec ocamldep "$@"

View File

@ -0,0 +1,3 @@
#!/bin/sh
export PATH="$ORIG_PATH"
exec ocamlmklib "$@"

View File

@ -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]

View File

@ -0,0 +1 @@
let x = 42

View File

@ -0,0 +1,3 @@
(library
((name foo)
(public_name foo)))