Remove unused Module::Build tests
[p5sagit/p5-mst-13.2.git] / lib / Module / Build / t / versions.t
CommitLineData
bb4e9162 1#!/usr/bin/perl -w
2
3use strict;
4use lib $ENV{PERL_CORE} ? '../lib/Module/Build/t/lib' : 't/lib';
5use MBTest tests => 2;
6
7use Cwd ();
8my $cwd = Cwd::cwd;
9my $tmp = File::Spec->catdir( $cwd, 't', '_tmp' );
10
11use DistGen;
12my $dist = DistGen->new( dir => $tmp );
13$dist->regen;
14
15#########################
16
17use Module::Build;
18
19my @mod = split( /::/, $dist->name );
20my $file = File::Spec->catfile( $dist->dirname, 'lib', @mod ) . '.pm';
21is( Module::Build->version_from_file( $file ), '0.01', 'version_from_file' );
22
23ok( Module::Build->compare_versions( '1.01_01', '>', '1.01' ), 'compare: 1.0_01 > 1.0' );
24
25
26# cleanup
27$dist->remove;
28
29use File::Path;
30rmtree( $tmp );