X-Git-Url: https://git.madduck.net/code/vcsh.git/blobdiff_plain/9bb603de8a2a49172513c41ccc8fb4309f90bb95..6b5ef0253b6858e3cb4fd265d2f7d99b597065ee:/t/300-add.t?ds=sidebyside diff --git a/t/300-add.t b/t/300-add.t index 6c8b9cd..4acd0a2 100644 --- a/t/300-add.t +++ b/t/300-add.t @@ -12,21 +12,28 @@ chdir 't/etc/' or die $!; $ENV{'HOME'} = abs_path ('.vcsh_home'); +chdir '.vcsh_home' or die $!; + eval { touch 'a'; }; die $@ if $@; -system ("./vcsh 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: -A a -", 'Adding a file worksl'; +A a +", 'Terse output works'; done_testing;