51 lines
780 B
Perl
51 lines
780 B
Perl
|
|
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'
|
||
|
|
Success: initialized project component named foo
|
||
|
|
Leaving directory 'bar'
|
||
|
|
$ ls
|
||
|
|
bar
|
||
|
|
foo
|
||
|
|
$ ls bar
|
||
|
|
_build
|
||
|
|
bar
|
||
|
|
bin
|
||
|
|
dune-project
|
||
|
|
foo.opam
|
||
|
|
lib
|
||
|
|
test
|
||
|
|
|
||
|
|
$ mkdir baz
|
||
|
|
$ dune init proj foo baz
|
||
|
|
Entering directory 'baz'
|
||
|
|
Success: initialized project component named foo
|
||
|
|
Leaving directory 'baz'
|
||
|
|
$ ls
|
||
|
|
bar
|
||
|
|
baz
|
||
|
|
foo
|
||
|
|
$ ls baz
|
||
|
|
_build
|
||
|
|
baz
|
||
|
|
bin
|
||
|
|
dune-project
|
||
|
|
foo.opam
|
||
|
|
lib
|
||
|
|
test
|