-
Notifications
You must be signed in to change notification settings - Fork 412
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
In dune init proj set workspace root to proj dir
Signed-off-by: Stephen Sherratt <stephen@sherra.tt>
- Loading branch information
Showing
8 changed files
with
115 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
54 changes: 54 additions & 0 deletions
54
test/blackbox-tests/test-cases/dune-init-proj-no-spurious-build-dir.t
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
Ensure that running `dune init proj ...` doesn't create a spurious _build | ||
directory in the current directory. | ||
|
||
$ dune init proj foo | ||
Entering directory 'foo' | ||
Success: initialized project component named foo | ||
Leaving directory 'foo' | ||
$ ls | ||
foo | ||
$ ls foo | ||
_build | ||
bin | ||
dune-project | ||
foo.opam | ||
lib | ||
test | ||
|
||
$ dune init proj foo bar | ||
Entering directory 'bar/foo' | ||
Success: initialized project component named foo | ||
Leaving directory 'bar/foo' | ||
$ ls | ||
bar | ||
foo | ||
$ ls bar | ||
foo | ||
$ ls bar/foo | ||
_build | ||
bar | ||
bin | ||
dune-project | ||
foo.opam | ||
lib | ||
test | ||
|
||
$ mkdir baz | ||
$ dune init proj foo baz | ||
Entering directory 'baz/foo' | ||
Success: initialized project component named foo | ||
Leaving directory 'baz/foo' | ||
$ ls | ||
bar | ||
baz | ||
foo | ||
$ ls baz | ||
foo | ||
$ ls baz/foo | ||
_build | ||
baz | ||
bin | ||
dune-project | ||
foo.opam | ||
lib | ||
test |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters