diff options
author | Modestas Vainius <modestas@vainius.eu> | 2009-12-04 00:17:06 +0200 |
---|---|---|
committer | Modestas Vainius <modestas@vainius.eu> | 2009-12-04 23:27:58 +0200 |
commit | b02cb29e726ba44da007dff1c68f02a2c921f474 (patch) | |
tree | 792adb3df9e48280b69ec6d90acbb7cf6e080ea8 /t/buildsystems | |
parent | 3a6520173bbb2eb4c4212d3ce180b846423d5535 (diff) | |
download | debhelper-b02cb29e726ba44da007dff1c68f02a2c921f474.tar.gz |
Add --parallel option.
This patch adds --parallel option that enables parallel builds and does not
impose limits on maximum concurrent processes. --max-parallel (that implies
--parallel) can be used to specify that maximum limit.
Also make necessary adjustments to debhelper.pod and buildsystem_tests for
this option.
Diffstat (limited to 't/buildsystems')
-rwxr-xr-x | t/buildsystems/buildsystem_tests | 16 |
1 files changed, 11 insertions, 5 deletions
diff --git a/t/buildsystems/buildsystem_tests b/t/buildsystems/buildsystem_tests index 1a9e21ca..e69367ed 100755 --- a/t/buildsystems/buildsystem_tests +++ b/t/buildsystems/buildsystem_tests @@ -1,6 +1,6 @@ #!/usr/bin/perl -use Test::More tests => 291; +use Test::More tests => 295; use strict; use warnings; @@ -572,21 +572,27 @@ sub test_is_parallel { test_isnt_parallel( do_parallel_mk(), "No parallel by default" ); +test_isnt_parallel( do_parallel_mk("parallel"), + "No parallel by default with --parallel" ); +test_isnt_parallel( do_parallel_mk("--max-parallel=5"), + "No parallel by default with --max-parallel=5" ); $ENV{DEB_BUILD_OPTIONS}="parallel=5"; test_isnt_parallel( do_parallel_mk(), - "DEB_BUILD_OPTIONS=parallel=5 without --max-parallel" ); + "DEB_BUILD_OPTIONS=parallel=5 without parallel options" ); ++test_is_parallel( do_parallel_mk("--parallel"), ++ "DEB_BUILD_OPTIONS=parallel=5 with --parallel" ); test_is_parallel( do_parallel_mk("--max-parallel=2"), "DEB_BUILD_OPTIONS=parallel=5 with --max-parallel=2" ); test_isnt_parallel( do_parallel_mk("--max-parallel=1"), - "DEB_BUILD_OPTIONS=parallel=5 with --max-parallel=1 (off)" ); + "DEB_BUILD_OPTIONS=parallel=5 with --max-parallel=1" ); $ENV{MAKEFLAGS} = "--jobserver-fds=105,106 -j"; $ENV{DEB_BUILD_OPTIONS}=""; -test_isnt_parallel( do_parallel_mk("--max-parallel=5"), +test_isnt_parallel( do_parallel_mk(), "makefile.pm (no parallel): no make warnings about unavailable jobserver" ); $ENV{DEB_BUILD_OPTIONS}="parallel=5"; -test_is_parallel( do_parallel_mk("--max-paralle=5"), +test_is_parallel( do_parallel_mk("--parallel"), "DEB_BUILD_OPTIONS=parallel=5: no make warnings about unavail parent jobserver" ); $ENV{MAKEFLAGS} = "-j2"; |