diff options
author | Joey Hess <joey@gnu.kitenet.net> | 2009-07-14 17:26:19 -0400 |
---|---|---|
committer | Joey Hess <joey@gnu.kitenet.net> | 2009-07-14 17:27:09 -0400 |
commit | f902459dfc2f7079263acb2bdcae30e36b7ba78c (patch) | |
tree | 78a178788699e8342334885d4ecad1d5a0ada71d /t | |
parent | 0349d8fc464aaebecf5b1b6f76883eedcfbc6e1a (diff) | |
download | debhelper-f902459dfc2f7079263acb2bdcae30e36b7ba78c.tar.gz |
test suite should not need modification to add a new build system
Diffstat (limited to 't')
-rwxr-xr-x | t/buildsystems/buildsystem_tests | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/t/buildsystems/buildsystem_tests b/t/buildsystems/buildsystem_tests index 7d383157..8f7a275a 100755 --- a/t/buildsystems/buildsystem_tests +++ b/t/buildsystems/buildsystem_tests @@ -1,6 +1,6 @@ #!/usr/bin/perl -use Test::More tests => 227; +use Test::More tests => 228; use strict; use warnings; @@ -19,7 +19,6 @@ use_ok( 'Debian::Debhelper::Dh_Buildsystems' ); my $TOPDIR = "../.."; my @STEPS = qw(configure build test install clean); -my @BUILDSYSTEMS = qw(autoconf perl_makemaker makefile python_distutils perl_build cmake); my $BS_CLASS = 'Debian::Debhelper::Buildsystem'; my ($bs, @bs, %bs); @@ -188,7 +187,8 @@ test_buildsystem_paths_api($bs, "builddir=../bld/dir, sourcedir=autoconf", \%tmp ### Test if all buildsystems can be loaded @bs = load_all_buildsystems([ $INC[0] ]); @tmp = map { $_->NAME() } @bs; -is_deeply( \@tmp, \@BUILDSYSTEMS, "load_all_buildsystems() loads all built-in buildsystems" ); +ok(@Debian::Debhelper::Dh_Buildsystems::BUILDSYSTEMS >= 1, "some build systems are built in" ); +is_deeply( \@tmp, \@Debian::Debhelper::Dh_Buildsystems::BUILDSYSTEMS, "load_all_buildsystems() loads all built-in buildsystems" ); ### Test check_auto_buildable() of each buildsystem sub test_check_auto_buildable { |