1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43
|
use Test::More skip_all => 'For later...';
#use Test::More tests => 3;
use Dpkg::IPC;
SKIP: {
unless ( -x '/usr/bin/gulp' ) {
skip "gulp is not installed", 3;
}
my $pwd = `pwd`;
chdir "t/gulp";
spawn( exec => ['dh_clean'], wait_child => 1 );
mkdir 'node_modules';
symlink `../../tools/nodepath gulp`, 'node_modules/gulp';
symlink `../../tools/nodepath gulp-concat`, 'node_modules/gulp-concat';
spawn(
exec => [ 'dh_auto_build', '--buildsystem=nodejs' ],
wait_child => 1
);
foreach (qw(dist/index.js)) {
ok( -f $_, "build creates $_" );
}
spawn(
exec => [ 'dh_auto_install', '--buildsystem=nodejs' ],
wait_child => 1
);
foreach (
qw(
debian/foo/usr/share/nodejs/foo/package.json
debian/foo/usr/share/nodejs/foo/dist/index.js
)
)
{
ok( -f $_, "$_ installed" );
}
spawn(
exec => [ 'dh_auto_clean', '--buildsystem=nodejs' ],
wait_child => 1
);
spawn( exec => ['dh_clean'], wait_child => 1 );
chdir $pwd;
}
|