aboutsummaryrefslogtreecommitdiff
path: root/t/20-config.t
diff options
context:
space:
mode:
authorAndreas Guldstrand <andreas.guldstrand@gmail.com>2016-05-26 00:21:12 +0200
committerAndreas Guldstrand <andreas.guldstrand@gmail.com>2016-05-26 00:21:12 +0200
commite2834f606a50144ab92e54db830d2fdb06102d78 (patch)
tree9948f78c629efa3ca985b58aad08dd899f501ca1 /t/20-config.t
parent1ea640c056822140171b4fec212bb98fdac39214 (diff)
downloadsbotools2-e2834f606a50144ab92e54db830d2fdb06102d78.tar.xz
Rename some test files
Diffstat (limited to 't/20-config.t')
-rwxr-xr-xt/20-config.t19
1 files changed, 19 insertions, 0 deletions
diff --git a/t/20-config.t b/t/20-config.t
new file mode 100755
index 0000000..9f1d48c
--- /dev/null
+++ b/t/20-config.t
@@ -0,0 +1,19 @@
+#!/usr/bin/env perl
+
+use 5.16.0;
+use strict;
+use warnings FATAL => 'all';
+use Test::More;
+use FindBin '$RealBin';
+use lib $RealBin;
+use Test::Sbotools qw/ sboconfig /;
+
+plan tests => 7;
+
+sboconfig '-c', 'invalid', { exit => 1, expected => "You have provided an invalid parameter for -c\n" };
+sboconfig '-d', 'invalid', { exit => 1, expected => "You have provided an invalid parameter for -d\n" };
+sboconfig '-j', 'invalid', { exit => 1, expected => "You have provided an invalid parameter for -j\n" };
+sboconfig '-p', 'invalid', { exit => 1, expected => "You have provided an invalid parameter for -p\n" };
+sboconfig '-s', 'invalid', { exit => 1, expected => "You have provided an invalid parameter for -s\n" };
+sboconfig '-o', 'invalid', { exit => 1, expected => "You have provided an invalid parameter for -o\n" };
+sboconfig '-V', 'invalid', { exit => 1, expected => "You have provided an invalid parameter for -V\n" };