diff options
Diffstat (limited to 't/options_version.t')
| -rw-r--r-- | t/options_version.t | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/t/options_version.t b/t/options_version.t new file mode 100644 index 0000000..bfe45a1 --- /dev/null +++ b/t/options_version.t @@ -0,0 +1,28 @@ +#!/usr/bin/perl + +# Testing --version, -V + +use strict; +use warnings; +use v5.10; + +use JSON; +use Test::More; + +chdir '..'; +my $json; +my $ret; + +my $version = `cat .version`; +chomp $version; + +$ret = `./mon --version`; +chomp $ret; +cmp_ok($ret, 'eq', $version, 'Testing version'); + +$ret = `./mon -V`; +chomp $ret; +cmp_ok($ret, 'eq', $version, 'Testing version'); + + +done_testing(); |
