diff --git a/test/blackbox-tests/test-cases/pkg/depexts/error-message.t b/test/blackbox-tests/test-cases/pkg/depexts/error-message.t index 677c20f69d5..ce4807ce4f4 100644 --- a/test/blackbox-tests/test-cases/pkg/depexts/error-message.t +++ b/test/blackbox-tests/test-cases/pkg/depexts/error-message.t @@ -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 < (version 0.0.1) @@ -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 < (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]