Skip to content

Commit

Permalink
Update test
Browse files Browse the repository at this point in the history
Signed-off-by: Nicolás Ojeda Bär <n.oje.bar@gmail.com>
  • Loading branch information
nojb committed Apr 4, 2019
1 parent 3cbbec1 commit 5357034
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 0 deletions.
11 changes: 11 additions & 0 deletions test/blackbox-tests/test-cases/explicit_js_mode/dune
Original file line number Diff line number Diff line change
@@ -1,6 +1,17 @@
(rule (with-stdout-to foo.ml (echo "")))
(rule (with-stdout-to bar.ml (echo "")))
(rule (with-stdout-to cha.ml (echo "")))
(rule (with-stdout-to zzz.ml (echo "")))
(rule (with-stdout-to zzz2.ml (echo "")))

(library
(name zzz)
(modes js)
(modules zzz))

(library
(name zzz2)
(modules zzz2))

(executable
(name foo)
Expand Down
20 changes: 20 additions & 0 deletions test/blackbox-tests/test-cases/explicit_js_mode/run.t
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,17 @@
js_of_ocaml .js/stdlib/stdlib.cma.js
jsoo_link bar.bc.js

$ dune clean
$ dune build --display short zzz.cma
ocamldep .zzz.objs/zzz.ml.d
ocamlc .zzz.objs/byte/zzz.{cmi,cmo,cmt}
ocamlc zzz.cma
$ dune build --display short _build/default/.zzz.objs/zzz.cma.js
js_of_ocaml .zzz.objs/zzz.cma.js
$ dune build --display short _build/default/.zzz2.objs/zzz2.cma.js
Don't know how to build _build/default/.zzz2.objs/zzz2.cma.js
[1]

$ dune clean
$ dune build --display short @all
ocamldep .bar.eobjs/bar.ml.d
Expand All @@ -22,11 +33,20 @@
ocamldep .foo.eobjs/foo.ml.d
ocamlc .foo.eobjs/byte/foo.{cmi,cmo,cmt}
ocamlc foo.bc
ocamldep .zzz.objs/zzz.ml.d
ocamlc .zzz.objs/byte/zzz.{cmi,cmo,cmt}
ocamlc zzz.cma
ocamldep .zzz2.objs/zzz2.ml.d
ocamlc .zzz2.objs/byte/zzz2.{cmi,cmo,cmt}
ocamlc zzz2.cma
ocamlc .bar.eobjs/byte/bar.{cmi,cmo,cmt}
js_of_ocaml .bar.eobjs/byte/bar.cmo.js
jsoo_link bar.bc.js
ocamlopt .cha.eobjs/native/cha.{cmx,o}
ocamlopt cha.exe
ocamlopt .foo.eobjs/native/foo.{cmx,o}
ocamlopt foo.exe
ocamlopt .zzz2.objs/native/zzz2.{cmx,o}
ocamlopt zzz2.{a,cmxa}
ocamlopt zzz2.cmxs
ocamlc bar.bc

0 comments on commit 5357034

Please sign in to comment.