Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- 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.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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(); | ||
|