Skip to content

Commit

Permalink
Update tests
Browse files Browse the repository at this point in the history
Signed-off-by: Nicolás Ojeda Bär <[email protected]>
  • Loading branch information
nojb committed Nov 9, 2020
1 parent 345b3cb commit 0b17b19
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 18 deletions.
32 changes: 16 additions & 16 deletions test/blackbox-tests/test-cases/describe.t/run.t
Original file line number Diff line number Diff line change
Expand Up @@ -42,11 +42,11 @@ Describe various things
(requires
(c17373aee51bab94097b4b7818553cf3 5dd4bd87ad37b4f5713085aff4bee9c9))
(modules
(((name Main)
(impl (_build/default/main.ml))
(intf ())
(cmt (_build/default/.main.eobjs/byte/dune__exe__Main.cmt))
(cmti ()))))
(((name Main)
(impl (_build/default/main.ml))
(intf ())
(cmt (_build/default/.main.eobjs/byte/dune__exe__Main.cmt))
(cmti ()))))
(include_dirs (_build/default/.main.eobjs/byte))))
(library
((name foo)
Expand All @@ -55,11 +55,11 @@ Describe various things
(requires (c17373aee51bab94097b4b7818553cf3))
(source_dir _build/default)
(modules
(((name Foo)
(impl (_build/default/foo.ml))
(intf ())
(cmt (_build/default/.foo.objs/byte/foo.cmt))
(cmti ()))))
(((name Foo)
(impl (_build/default/foo.ml))
(intf ())
(cmt (_build/default/.foo.objs/byte/foo.cmt))
(cmti ()))))
(include_dirs (_build/default/.foo.objs/byte))))
(library
((name foo.x)
Expand All @@ -68,11 +68,11 @@ Describe various things
(requires ())
(source_dir _build/default)
(modules
(((name Foo_x)
(impl (_build/default/foo_x.ml))
(intf ())
(cmt (_build/default/.foo_x.objs/byte/foo_x.cmt))
(cmti ()))))
(((name Foo_x)
(impl (_build/default/foo_x.ml))
(intf ())
(cmt (_build/default/.foo_x.objs/byte/foo_x.cmt))
(cmti ()))))
(include_dirs (_build/default/.foo_x.objs/byte)))))

Test other formats
Expand Down Expand Up @@ -107,7 +107,7 @@ opam file listing

$ dune describe --lang 0.1 opam-files | dune_cmd expand_lines
((foo.opam
"# This file is generated by dune, edit dune-project instead
"# This file is generated by dune, edit dune-project instead
opam-version: \"2.0\"
synopsis: \"foo bar baz\"
depends: [
Expand Down
13 changes: 11 additions & 2 deletions test/blackbox-tests/test-cases/format-dune-file.t/run.t
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,17 @@ it gets wrapped.
$ echo '(library (name dune) (libraries unix stdune fiber xdg dune_re threads opam_file_format dune_lang ocaml_config which_program) (synopsis "Internal Dune library, do not use!") (preprocess (action (run %{project_root}/src/let-syntax/pp.exe %{input-file}))))' | dune format-dune-file
(library
(name dune)
(libraries unix stdune fiber xdg dune_re threads opam_file_format dune_lang
ocaml_config which_program)
(libraries
unix
stdune
fiber
xdg
dune_re
threads
opam_file_format
dune_lang
ocaml_config
which_program)
(synopsis "Internal Dune library, do not use!")
(preprocess
(action
Expand Down

0 comments on commit 0b17b19

Please sign in to comment.