Skip to content

Commit

Permalink
test(pkg): Reproduce depexts message bug
Browse files Browse the repository at this point in the history
Signed-off-by: Alpha DIALLO <moyodiallo@gmail.com>
  • Loading branch information
moyodiallo committed Oct 8, 2024
1 parent b70d7bf commit 9be4716
Showing 1 changed file with 25 additions and 1 deletion.
26 changes: 25 additions & 1 deletion test/blackbox-tests/test-cases/pkg/depexts/error-message.t
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ Make a project that uses the foo library:
> (libraries foo))
> EOF

Make dune.lock files
Make dune.lock files with known program "dune".
$ make_lockdir
$ cat > dune.lock/foo.pkg <<EOF
> (version 0.0.1)
Expand All @@ -51,3 +51,27 @@ the depexts error message.
- unzip
- gnupg
[1]

Make dune.lock files with unknown program and unknown package.
$ make_lockdir
$ cat > dune.lock/foo.pkg <<EOF
> (version 0.0.1)
> (build
> (run unknown-program))
> (depexts unknown-package)
> (source
> (fetch
> (url file://$PWD/foo.tar)
> (checksum md5=$(md5sum foo.tar | cut -f1 -d' '))))
> EOF
Doing the same build which is supposed to show the depexts message at the end.
There is a bug at the moment, it shows the correct error message but without
depexts message.
$ dune build
File "dune.lock/foo.pkg", line 3, characters 6-21:
3 | (run unknown-program))
^^^^^^^^^^^^^^^
Error: Program unknown-program not found in the tree or in PATH
(context: default)
[1]

0 comments on commit 9be4716

Please sign in to comment.