Skip to content

Commit

Permalink
blackbox tests for tests stanza
Browse files Browse the repository at this point in the history
Signed-off-by: Rudi Grinberg <rudi.grinberg@gmail.com>
  • Loading branch information
rgrinberg committed Jul 4, 2018
1 parent 91077f4 commit 5ff63c8
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 0 deletions.
10 changes: 10 additions & 0 deletions test/blackbox-tests/dune.inc
Original file line number Diff line number Diff line change
Expand Up @@ -571,6 +571,14 @@
test-cases/syntax-versioning
(progn (run %{exe:cram.exe} -test run.t) (diff? run.t run.t.corrected)))))

(alias
(name tests-stanza)
(deps (package dune) (source_tree test-cases/tests-stanza))
(action
(chdir
test-cases/tests-stanza
(progn (run %{exe:cram.exe} -test run.t) (diff? run.t run.t.corrected)))))

(alias
(name use-meta)
(deps (package dune) (source_tree test-cases/use-meta))
Expand Down Expand Up @@ -672,6 +680,7 @@
(alias scope-ppx-bug)
(alias select)
(alias syntax-versioning)
(alias tests-stanza)
(alias use-meta)
(alias utop)
(alias windows-diff)
Expand Down Expand Up @@ -738,6 +747,7 @@
(alias scope-ppx-bug)
(alias select)
(alias syntax-versioning)
(alias tests-stanza)
(alias use-meta)
(alias windows-diff)
(alias workspaces)))
Expand Down
1 change: 1 addition & 0 deletions test/blackbox-tests/test-cases/tests-stanza/bar.ml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
let () = print_endline "test bar"
2 changes: 2 additions & 0 deletions test/blackbox-tests/test-cases/tests-stanza/dune
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
(tests
((names (bar foo))))
1 change: 1 addition & 0 deletions test/blackbox-tests/test-cases/tests-stanza/foo.ml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
let () = print_endline "test foo"
5 changes: 5 additions & 0 deletions test/blackbox-tests/test-cases/tests-stanza/run.t
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
$ dune runtest
foo alias runtest
test foo
bar alias runtest
test bar

0 comments on commit 5ff63c8

Please sign in to comment.