Skip to content

Commit

Permalink
new test: use Test::Vars
Browse files Browse the repository at this point in the history
  • Loading branch information
Gonéri Le Bouder committed Feb 22, 2012
1 parent 334935a commit af043ad
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions t/05var.t
@@ -0,0 +1,27 @@
#!/usr/bin/perl

use strict;
use warnings;
use Test::More;
use English qw(-no_match_vars);

if (!$ENV{TEST_AUTHOR}) {
my $msg = 'Author test. Set $ENV{TEST_AUTHOR} to a true value to run.';
plan(skip_all => $msg);
}

# use mock modules for non-available ones
if ($OSNAME eq 'MSWin32') {
push @INC, 't/fake/unix';
} else {
push @INC, 't/fake/windows';
}

eval { require Test::Vars; };

if ($EVAL_ERROR) {
plan(skip_all => 'Test::Vars required to validate the code');
}

Test::Vars::all_vars_ok();

0 comments on commit af043ad

Please sign in to comment.