diff --git a/test/blackbox-tests/test-cases/no-name-field/public-name-invalid-wrapped-false/dune b/test/blackbox-tests/test-cases/no-name-field/public-name-invalid-wrapped-false/dune new file mode 100644 index 00000000..9bc81433 --- /dev/null +++ b/test/blackbox-tests/test-cases/no-name-field/public-name-invalid-wrapped-false/dune @@ -0,0 +1,3 @@ +(library + (wrapped false) + (public_name foo.bar)) \ No newline at end of file diff --git a/test/blackbox-tests/test-cases/no-name-field/public-name-invalid-wrapped-false/foo.ml b/test/blackbox-tests/test-cases/no-name-field/public-name-invalid-wrapped-false/foo.ml new file mode 100644 index 00000000..e69de29b diff --git a/test/blackbox-tests/test-cases/no-name-field/public-name-invalid-wrapped-false/foo.opam b/test/blackbox-tests/test-cases/no-name-field/public-name-invalid-wrapped-false/foo.opam new file mode 100644 index 00000000..e69de29b diff --git a/test/blackbox-tests/test-cases/no-name-field/run.t b/test/blackbox-tests/test-cases/no-name-field/run.t index 563dbccd..a25f890b 100644 --- a/test/blackbox-tests/test-cases/no-name-field/run.t +++ b/test/blackbox-tests/test-cases/no-name-field/run.t @@ -26,3 +26,14 @@ there's only a public name but it's invalid as a name Hint: library names must be non-empty and composed only of the following characters: 'A'..'Z', 'a'..'z', '_' or '0'..'9'. Public library names don't have this restriction. You can either change this public name to be a valid library name or add a "name" field with a valid library name. [1] + +there's only a public name which is invalid, but sine the library is unwrapped, +it's just a warning + + $ dune build --root public-name-invalid-wrapped-false + Info: creating file dune-project with this contents: (lang dune 1.1) + File "dune", line 3, characters 14-21: + Error: invalid library name. + Hint: library names must be non-empty and composed only of the following characters: 'A'..'Z', 'a'..'z', '_' or '0'..'9'. + Public library names don't have this restriction. You can either change this public name to be a valid library name or add a "name" field with a valid library name. + [1]