forked from ocaml/dune
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: format some dune files in tests (ocaml#11078)
Signed-off-by: Rudi Grinberg <me@rgrinberg.com>
- Loading branch information
Showing
42 changed files
with
132 additions
and
165 deletions.
There are no files selected for viewing
3 changes: 1 addition & 2 deletions
3
test/blackbox-tests/test-cases/byte-code-only.t/bin-with-build-info/dune
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,4 @@ | ||
(executable | ||
(name print_version) | ||
(modes exe byte) | ||
(libraries build_info) | ||
) | ||
(libraries build_info)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,3 @@ | ||
|
||
(alias | ||
(name print-contents-of-x) | ||
(deps x (universe)) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,5 +2,3 @@ | |
(name B) | ||
(package B) | ||
(boot)) | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,5 +2,4 @@ | |
(mode vo) | ||
(name Common) | ||
(package example-coq) | ||
(modules Foo) | ||
) | ||
(modules Foo)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
test/blackbox-tests/test-cases/ctypes/lib-pkg_config-multiple-fd.t/dune
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
(executable | ||
(name example) | ||
(libraries examplelib)) | ||
(name example) | ||
(libraries examplelib)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
(executable | ||
(name example) | ||
(libraries examplelib)) | ||
(name example) | ||
(libraries examplelib)) |
3 changes: 1 addition & 2 deletions
3
test/blackbox-tests/test-cases/custom-cross-compilation/topological-loop.t/dune
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,5 @@ | ||
(executable | ||
(name p) | ||
(public_name p) | ||
) | ||
(public_name p)) | ||
|
||
(rule (with-stdout-to file (run ./p.exe))) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -24,5 +24,4 @@ | |
(install | ||
(section share) | ||
(package a) | ||
(files foo.txt) | ||
) | ||
(files foo.txt)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,4 @@ | ||
(env | ||
(default | ||
(c_flags :standard ":standard + in src") | ||
(cxx_flags :standard ":standard + in src") | ||
)) | ||
(cxx_flags :standard ":standard + in src"))) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,11 @@ | ||
(executable | ||
(name a) | ||
) | ||
(name a)) | ||
|
||
(alias | ||
(name without_dep) | ||
(action (run ./a.exe)) | ||
) | ||
(action (run ./a.exe))) | ||
|
||
(alias | ||
(name with_dep) | ||
(deps (env_var X)) | ||
(action (run ./a.exe)) | ||
) | ||
(action (run ./a.exe))) |
3 changes: 1 addition & 2 deletions
3
test/blackbox-tests/test-cases/env/env-variables/precedence.t/dune
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,2 @@ | ||
(executable | ||
(name printenv) | ||
) | ||
(name printenv)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,63 +1,53 @@ | ||
(library | ||
(name a) | ||
(public_name a) | ||
(modules a) | ||
) | ||
(name a) | ||
(public_name a) | ||
(modules a)) | ||
|
||
(library | ||
(name mytool_plugin_b) | ||
(public_name mytool-plugin-b) | ||
(modules mytool_plugin_b) | ||
(libraries a mytool) | ||
) | ||
(name mytool_plugin_b) | ||
(public_name mytool-plugin-b) | ||
(modules mytool_plugin_b) | ||
(libraries a mytool)) | ||
|
||
(library | ||
(name mytool) | ||
(public_name mytool) | ||
(modules register) | ||
) | ||
(name mytool) | ||
(public_name mytool) | ||
(modules register)) | ||
|
||
(executable | ||
(name main) | ||
(modules main) | ||
(public_name mytool) | ||
(package mytool) | ||
(libraries mytool findlib.dynload threads) | ||
) | ||
|
||
(name main) | ||
(modules main) | ||
(public_name mytool) | ||
(package mytool) | ||
(libraries mytool findlib.dynload threads)) | ||
|
||
(rule (copy main.ml main_with_a.ml)) | ||
(rule (copy main.ml main_modes_byte.ml)) | ||
|
||
(executable | ||
(name main_with_a) | ||
(modules main_with_a) | ||
(public_name mytool_with_a) | ||
(package mytool) | ||
(libraries mytool findlib.dynload a threads) | ||
) | ||
(name main_with_a) | ||
(modules main_with_a) | ||
(public_name mytool_with_a) | ||
(package mytool) | ||
(libraries mytool findlib.dynload a threads)) | ||
|
||
(executable | ||
(name main_modes_byte) | ||
(modules main_modes_byte) | ||
(public_name mytool_modes_byte) | ||
(package mytool) | ||
(libraries mytool findlib.dynload threads) | ||
(modes byte) | ||
) | ||
(name main_modes_byte) | ||
(modules main_modes_byte) | ||
(public_name mytool_modes_byte) | ||
(package mytool) | ||
(libraries mytool findlib.dynload threads) | ||
(modes byte)) | ||
|
||
(executable | ||
(name main_auto) | ||
(modules main_auto) | ||
(public_name mytool_auto) | ||
(package mytool) | ||
(libraries mytool findlib.dynload findlib threads) | ||
) | ||
|
||
(name main_auto) | ||
(modules main_auto) | ||
(public_name mytool_auto) | ||
(package mytool) | ||
(libraries mytool findlib.dynload findlib threads)) | ||
|
||
(library | ||
(name c_thread) | ||
(public_name c_thread) | ||
(modules c_thread) | ||
(libraries threads mytool) | ||
) | ||
(name c_thread) | ||
(public_name c_thread) | ||
(modules c_thread) | ||
(libraries threads mytool)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1 @@ | ||
(rule | ||
(write-file target.txt %{findlib:pkg}) | ||
) | ||
(rule (write-file target.txt %{findlib:pkg})) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5 changes: 4 additions & 1 deletion
5
test/blackbox-tests/test-cases/foreign-stubs/c-flags.t/vendor/dune
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,6 @@ | ||
(library | ||
(name testv) | ||
(foreign_stubs (language c) (names barv) (flags))) | ||
(foreign_stubs | ||
(language c) | ||
(names barv) | ||
(flags))) |
14 changes: 7 additions & 7 deletions
14
test/blackbox-tests/test-cases/foreign-stubs/fs-mode-dependent/fsmd-simple.t/lib/dune
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,11 @@ | ||
(library | ||
(name lib_with_md_stubs) | ||
(foreign_stubs | ||
(language c) | ||
(mode byte) | ||
(names c_stubs_lib)) | ||
(language c) | ||
(mode byte) | ||
(names c_stubs_lib)) | ||
(foreign_stubs | ||
(language c) | ||
(mode native) | ||
(flags :standard -DNATIVE_CODE) | ||
(names c_stubs_lib))) | ||
(language c) | ||
(mode native) | ||
(flags :standard -DNATIVE_CODE) | ||
(names c_stubs_lib))) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,4 +5,4 @@ | |
|
||
(alias | ||
(name default) | ||
(action (echo "%{read:foo.install}"))) | ||
(action (echo "%{read:foo.install}"))) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,10 @@ | ||
(test | ||
(name test_a) | ||
(modules test_a) | ||
(package a) | ||
) | ||
(package a)) | ||
|
||
(test | ||
(name test_b) | ||
(modules test_b) | ||
(package b) | ||
(libraries does-not-exist) | ||
) | ||
(libraries does-not-exist)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
(library | ||
(name example) | ||
(inline_tests (backend dune_inline_tests))) | ||
(name example) | ||
(inline_tests (backend dune_inline_tests))) |
5 changes: 2 additions & 3 deletions
5
test/blackbox-tests/test-cases/hidden-deps-supported.t/tyxml/dune
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,3 @@ | ||
(executable | ||
(name run) | ||
(libraries tyxml)) | ||
|
||
(name run) | ||
(libraries tyxml)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,4 +11,3 @@ | |
(name run) | ||
(modules run) | ||
(libraries bar)) | ||
|
3 changes: 1 addition & 2 deletions
3
test/blackbox-tests/test-cases/install-dir/install-libdir.t/bin/dune
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,2 @@ | ||
(executable | ||
(public_name exec) | ||
) | ||
(public_name exec)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,2 @@ | ||
(library | ||
(public_name mylib) | ||
) | ||
(public_name mylib)) |
35 changes: 16 additions & 19 deletions
35
test/blackbox-tests/test-cases/jsoo/jsoo-config.t/bin/dune
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,21 @@ | ||
(executable | ||
(name bin1) | ||
(modules bin1) | ||
(modes js) | ||
(libraries library1) | ||
(js_of_ocaml | ||
(flags (:standard --enable use-js-string))) | ||
) | ||
(name bin1) | ||
(modules bin1) | ||
(modes js) | ||
(libraries library1) | ||
(js_of_ocaml | ||
(flags (:standard --enable use-js-string)))) | ||
|
||
(executable | ||
(name bin2) | ||
(modules bin2) | ||
(modes js) | ||
(libraries library1) | ||
(js_of_ocaml | ||
(flags (:standard --disable use-js-string))) | ||
) | ||
(name bin2) | ||
(modules bin2) | ||
(modes js) | ||
(libraries library1) | ||
(js_of_ocaml | ||
(flags (:standard --disable use-js-string)))) | ||
|
||
(executable | ||
(name bin3) | ||
(modules bin3) | ||
(modes js) | ||
(libraries library1) | ||
) | ||
(name bin3) | ||
(modules bin3) | ||
(modes js) | ||
(libraries library1)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,5 @@ | ||
(env | ||
(_ | ||
(js_of_ocaml | ||
(flags (:standard --quiet)) | ||
(compilation_mode separate) | ||
))) | ||
(_ | ||
(js_of_ocaml | ||
(flags (:standard --quiet)) | ||
(compilation_mode separate)))) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
(library (name library1)) | ||
(library (name library1)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.