diff --git a/test/blackbox-tests/test-cases/github11290.t b/test/blackbox-tests/test-cases/github11290.t new file mode 100644 index 00000000000..c629ea2201f --- /dev/null +++ b/test/blackbox-tests/test-cases/github11290.t @@ -0,0 +1,13 @@ +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 + 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]