Skip to content

Commit

Permalink
Promote a test
Browse files Browse the repository at this point in the history
Signed-off-by: Alpha DIALLO <[email protected]>
  • Loading branch information
moyodiallo committed Aug 29, 2024
1 parent 1de1a77 commit c2f655a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions test/blackbox-tests/test-cases/pkg/ocamlformat-dev-tool.t
Original file line number Diff line number Diff line change
Expand Up @@ -179,9 +179,11 @@ Add a fake binary in the PATH
$ chmod +x .bin/ocamlformat
$ PATH=$PWD/.bin:$PATH
$ which ocamlformat
$TESTCASE_ROOT/.bin/ocamlformat

The ocamlformat binary from the dev-tool (this binary will be used).
$ ./_build/_private/default/.dev-tool/ocamlformat/ocamlformat/target/bin/ocamlformat format_this_file
formatted with version 0.26.2

Update dune and foo.ml files
$ cat > dune <<EOF
Expand All @@ -200,6 +202,7 @@ Update dune and foo.ml files

It uses the fake binary from the PATH
$ dune build
fake ocamlformat from PATH

Make sure that without the feature `dune fmt` takes the binary from the dune-project dependencies.
This is the old behaviour.
Expand Down

0 comments on commit c2f655a

Please sign in to comment.