From 1f116488ab42f3af054fa486c517563b63374d93 Mon Sep 17 00:00:00 2001 From: Mark Elvers Date: Tue, 14 Jan 2025 10:08:25 +0000 Subject: [PATCH 1/2] Issue 11290 Signed-off-by: Mark Elvers --- test/blackbox-tests/test-cases/github11290.t | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 test/blackbox-tests/test-cases/github11290.t diff --git a/test/blackbox-tests/test-cases/github11290.t b/test/blackbox-tests/test-cases/github11290.t new file mode 100644 index 00000000000..80ff4de17f0 --- /dev/null +++ b/test/blackbox-tests/test-cases/github11290.t @@ -0,0 +1,8 @@ +Running `dune subst` should succeed in a directory containing just a `.opam` file. +Regression test for https://github.com/ocaml/dune/issues/11290 + + $ cat > foo.opam << EOF + > authors: [ "John Doe " ] + > EOF + + $ dune subst From b63151af0d9fcab672fa3181eefac849c48b5b76 Mon Sep 17 00:00:00 2001 From: Marek Kubica Date: Wed, 22 Jan 2025 17:16:49 +0100 Subject: [PATCH 2/2] Include test output Signed-off-by: Marek Kubica --- test/blackbox-tests/test-cases/github11290.t | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/test/blackbox-tests/test-cases/github11290.t b/test/blackbox-tests/test-cases/github11290.t index 80ff4de17f0..c629ea2201f 100644 --- a/test/blackbox-tests/test-cases/github11290.t +++ b/test/blackbox-tests/test-cases/github11290.t @@ -6,3 +6,8 @@ Regression test for https://github.com/ocaml/dune/issues/11290 > EOF $ dune subst + File ".", line 1, characters 0-0: + Error: There is no dune-project file in the current directory, please add one + with a (name ) field in it. + Hint: 'dune subst' must be executed from the root of the project. + [1]