3 # Some tests for the repodir flag
6 use Test
::More
'no_plan';
12 my $test_name = 'Make sure that a simple init works.';
15 ok
((-d
'_darcs'), '_darcs directory was created');
17 $test_name = 'Make sure that init in a pre-existing darcs directory fails.';
18 like
(darcs
('init'), qr/not run this command in a repository/, $test_name);
20 $test_name = 'Make sure that init --repodir creates the directory if it does not exist';
23 darcs
'init --repodir=temp1';
24 ok
((-d
'temp1/_darcs'), '_darcs directory was created');