SPECS: Perlbal.spec - randomize base tests port
glen
glen at pld-linux.org
Mon Jan 14 00:22:28 CET 2008
Author: glen Date: Sun Jan 13 23:22:28 2008 GMT
Module: SPECS Tag: HEAD
---- Log message:
- randomize base tests port
---- Files affected:
SPECS:
Perlbal.spec (1.6 -> 1.7)
---- Diffs:
================================================================
Index: SPECS/Perlbal.spec
diff -u SPECS/Perlbal.spec:1.6 SPECS/Perlbal.spec:1.7
--- SPECS/Perlbal.spec:1.6 Mon Jan 14 00:05:44 2008
+++ SPECS/Perlbal.spec Mon Jan 14 00:22:22 2008
@@ -19,6 +19,7 @@
Source2: perlbal.sysconfig
Patch0: %{name}-no_use_lib.patch
Patch1: %{name}-test_15_webserver.patch
+Patch2: perlbal-freeport.patch
URL: http://www.danga.com/perlbal/
BuildRequires: perl-devel >= 1:5.8.0
BuildRequires: rpm-perlprov >= 4.1-13
@@ -61,6 +62,7 @@
%setup -q
%patch0 -p1
%patch1 -p1
+%patch2 -p1
# not good on ac builders as they use same hardware
# just don't send athlon, ix86 requests at once
@@ -71,7 +73,11 @@
INSTALLDIRS=vendor
%{__make}
-%{?with_tests:%{__make} test}
+%if %{with tests}
+# randomize the first base port a little
+export TEST_TCP_FREE_PORT=$((4096 + $(id -u)))
+%{__make} test
+%endif
%install
rm -rf $RPM_BUILD_ROOT
@@ -115,6 +121,9 @@
All persons listed below can be reached at <cvs_login>@pld-linux.org
$Log$
+Revision 1.7 2008-01-13 23:22:22 glen
+- randomize base tests port
+
Revision 1.6 2008-01-13 23:05:44 glen
- something and nothing
================================================================
---- CVS-web:
http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/SPECS/Perlbal.spec?r1=1.6&r2=1.7&f=u
More information about the pld-cvs-commit
mailing list