From dda9802233e27008cdd3206d4474be69d54a55b0 Mon Sep 17 00:00:00 2001 From: Errietta Kostala Date: Thu, 9 Jan 2014 12:15:52 +0000 Subject: [PATCH] vcsh add test --- t/300-add.t | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 t/300-add.t diff --git a/t/300-add.t b/t/300-add.t new file mode 100644 index 0000000..f16f6e1 --- /dev/null +++ b/t/300-add.t @@ -0,0 +1,32 @@ +#!/usr/bin/perl + +use strict; +use warnings; + +use Cwd 'abs_path'; + +use Shell::Command; +use Test::Most; + +chdir 't/etc/' or die $!; + +$ENV{'HOME'} = abs_path ('.vcsh_home'); + +eval { + touch 'a'; +}; + +die $@ if $@; + +system ("./vcsh -d test1 add 'a'"); + +my $output = `./vcsh status`; + +diag $output; + +ok $output eq "test1: +A a +", 'Adding a file worksl'; + +done_testing; + -- 2.39.5