-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #195 from MichaelTimbert/119
Check MANIFEST when PR is created
- Loading branch information
Showing
3 changed files
with
42 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
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
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,37 @@ | ||
#!perl | ||
use v5.14.2; | ||
use strict; | ||
use warnings; | ||
use utf8; | ||
use Test::More tests => 2; | ||
use Test::NoWarnings; | ||
|
||
use File::Basename qw( dirname ); | ||
|
||
chdir dirname( dirname( __FILE__ ) ) or BAIL_OUT( "chdir: $!" ); | ||
|
||
my $makebin = 'make'; | ||
|
||
sub make { | ||
my @make_args = @_; | ||
|
||
undef $ENV{MAKEFLAGS}; | ||
|
||
my $command = join( ' ', $makebin, '-s', @make_args ); | ||
my $output = `$command 2>&1`; | ||
|
||
if ( $? == -1 ) { | ||
BAIL_OUT( "failed to execute: $!" ); | ||
} | ||
elsif ( $? & 127 ) { | ||
BAIL_OUT( "child died with signal %d, %s coredump\n", ( $? & 127 ), ( $? & 128 ) ? 'with' : 'without' ); | ||
} | ||
|
||
return $output, $? >> 8; | ||
} | ||
|
||
subtest "distcheck" => sub { | ||
my ( $output, $status ) = make "distcheck"; | ||
is $status, 0, $makebin . ' distcheck exits with value 0'; | ||
is $output, "", $makebin . ' distcheck gives empty output'; | ||
}; |