diff options
author | Daniel Friesel <derf@finalrewind.org> | 2011-04-27 18:44:09 +0200 |
---|---|---|
committer | Daniel Friesel <derf@finalrewind.org> | 2011-04-27 18:44:09 +0200 |
commit | ded0e7d1400751d3c489859d6b5bb6a7ca7340f6 (patch) | |
tree | 0da348a60cea04b3eda7a0b25640111bcbe0f3c7 /t/50-integration.t | |
parent | 906c8419b0f650785edbfd210d2db06617bad1d3 (diff) |
Add some initial tests
Diffstat (limited to 't/50-integration.t')
-rw-r--r-- | t/50-integration.t | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/t/50-integration.t b/t/50-integration.t new file mode 100644 index 0000000..1219323 --- /dev/null +++ b/t/50-integration.t @@ -0,0 +1,26 @@ +#!/usr/bin/env perl +use strict; +use warnings; +use 5.010; +use autodie; + +use Cwd; +use Test::Command tests => 6; + +my $hashl = '../../bin/hashl'; + +my $EMPTY = q{}; +my $usage = <<'EOF'; +Usage: ../../bin/hashl [options] <update|list|info|...> [args] +See 'perldoc -F ../../bin/hashl' (or 'man hashl' if it is properly installed) +EOF + +chdir('t/in'); + +for my $cmd ("$hashl", "$hashl copy") { + my $tc = Test::Command->new(cmd => $cmd); + + $tc->exit_isnt_num(0); + $tc->stdout_is_eq($EMPTY); + $tc->stderr_is_eq($usage); +} |