]> git.pld-linux.org Git - packages/Perlbal.git/commitdiff
- randomize base tests port
authorElan Ruusamäe <glen@pld-linux.org>
Sun, 13 Jan 2008 23:22:22 +0000 (23:22 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    Perlbal.spec -> 1.7

Perlbal.spec

index 20926c52ba84eea0a2ecdb1894cd31f14d86d432..c59759790f2b5cc6895aa5f9bcb0cd3dda0d2532 100644 (file)
@@ -18,6 +18,7 @@ Source1:      perlbal.init
 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
@@ -60,6 +61,7 @@ instancji Perlbala.
 %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
@@ -70,7 +72,11 @@ instancji Perlbala.
        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
This page took 0.073037 seconds and 4 git commands to generate.