]> git.madduck.net Git - code/vcsh.git/blobdiff - t/300-add.t

madduck's git repository

Every one of the projects in this repository is available at the canonical URL git://git.madduck.net/madduck/pub/<projectpath> — see each project's metadata for the exact URL.

All patches and comments are welcome. Please squash your changes to logical commits before using git-format-patch and git-send-email to patches@git.madduck.net. If you'd read over the Git project's submission guidelines and adhered to them, I'd be especially grateful.

SSH access, as well as push access can be individually arranged.

If you use my repositories frequently, consider adding the following snippet to ~/.gitconfig and using the third clone URL listed for each project:

[url "git://git.madduck.net/madduck/"]
  insteadOf = madduck:

Fix: list-tracked in subdir would print invalid paths
[code/vcsh.git] / t / 300-add.t
index f16f6e1b7e2712c70bee5b85ec0a790be33e9474..4acd0a2cc64cccb34ca66cf9ae35f38c95712ca0 100644 (file)
@@ -12,21 +12,28 @@ chdir 't/etc/' or die $!;
 
 $ENV{'HOME'} = abs_path ('.vcsh_home');
 
 
 $ENV{'HOME'} = abs_path ('.vcsh_home');
 
+chdir '.vcsh_home' or die $!;
+
 eval {
        touch 'a';
 };
 
 die $@ if $@;
 
 eval {
        touch 'a';
 };
 
 die $@ if $@;
 
-system ("./vcsh -d test1 add 'a'");
+system (".././vcsh test1 add 'a'");
+
+my $output = `.././vcsh status`;
+
+ok $output eq "test1:
+A  a
 
 
-my $output = `./vcsh status`;
+", 'Adding a file works';
 
 
-diag $output;
+$output = `.././vcsh status --terse`;
 
 ok $output eq "test1:
 
 ok $output eq "test1:
-A a
-", 'Adding a file worksl';
+A  a
+", 'Terse output works';
 
 done_testing;
 
 
 done_testing;