]> git.pld-linux.org Git - packages/lighttpd.git/commitdiff
- randomize test port on builders on same hardware auto/ac/lighttpd-1_4_30-1
authorElan Ruusamäe <glen@pld-linux.org>
Mon, 19 Dec 2011 12:42:48 +0000 (12:42 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    lighttpd.spec -> 1.353
    test-port-setup.patch -> 1.1

lighttpd.spec
test-port-setup.patch [new file with mode: 0644]

index d91119696e97dabc81b0d9b49d21be2cbf7fa80f..598d398ea1c388b8ac6540f814788ad8c7450725 100644 (file)
@@ -96,9 +96,10 @@ Patch0:              %{name}-use_bin_sh.patch
 Patch1:                %{name}-mod_evasive-status_code.patch
 Patch2:                %{name}-mod_h264_streaming.patch
 Patch3:                %{name}-branding.patch
-#Patch4:               %{name}-modinit-before-fork.patch
 Patch5:                %{name}-mod_deflate.patch
-#Patch8:               %{name}-errorlog-before-fork.patch
+Patch6:                test-port-setup.patch
+#Patch:                %{name}-modinit-before-fork.patch
+#Patch:                %{name}-errorlog-before-fork.patch
 URL:           http://www.lighttpd.net/
 %{?with_xattr:BuildRequires:   attr-devel}
 BuildRequires: autoconf >= 2.57
@@ -826,6 +827,7 @@ Plik monitrc do monitorowania serwera www lighttpd.
 %patch2 -p1
 %patch3 -p1
 %{?with_deflate:%patch5 -p1}
+%patch6 -p1
 
 rm -f src/mod_ssi_exprparser.h # bad patching: should be removed by is emptied instead
 
@@ -866,6 +868,7 @@ fi
 %{__make} -j1
 
 %if %{with tests}
+export LIGHTTPD_TEST_PORT=$((2048 + RANDOM % 10))
 %{__make} check
 %endif
 
diff --git a/test-port-setup.patch b/test-port-setup.patch
new file mode 100644 (file)
index 0000000..16c3b5d
--- /dev/null
@@ -0,0 +1,11 @@
+--- lighttpd-1.4.30/tests/LightyTest.pm~       2010-02-02 01:28:20.000000000 +0200
++++ lighttpd-1.4.30/tests/LightyTest.pm        2011-12-19 14:37:44.255526606 +0200
+@@ -43,7 +43,7 @@
+               $self->{MODULES_PATH} = $self->{BASEDIR}.'/build';
+       }
+       $self->{LIGHTTPD_PATH} = $self->{BINDIR}.'/lighttpd';
+-      $self->{PORT} = 2048;
++      $self->{PORT} = $ENV{LIGHTTPD_TEST_PORT} ? int($ENV{LIGHTTPD_TEST_PORT}) : 2048;
+       my ($name, $aliases, $addrtype, $net) = gethostbyaddr(inet_aton("127.0.0.1"), AF_INET);
This page took 0.094961 seconds and 4 git commands to generate.