add upstream patch to skip online test
This commit is contained in:
parent
ead464760f
commit
c0666ed384
|
@ -0,0 +1,24 @@
|
|||
From 530650958e4801374827cf3bbbc95b3fbf3e89d2 Mon Sep 17 00:00:00 2001
|
||||
From: Remi Collet <remi@php.net>
|
||||
Date: Mon, 1 Sep 2014 13:48:46 +0200
|
||||
Subject: [PATCH] skip this test for offline build
|
||||
|
||||
---
|
||||
tests/client015.phpt | 1 +
|
||||
1 file changed, 1 insertion(+)
|
||||
|
||||
diff --git a/tests/client015.phpt b/tests/client015.phpt
|
||||
index 35981a5..60d3132 100644
|
||||
--- a/tests/client015.phpt
|
||||
+++ b/tests/client015.phpt
|
||||
@@ -10,6 +10,7 @@ try {
|
||||
} catch (Exception $e) {
|
||||
die("skip ".$e->getMessage());
|
||||
}
|
||||
+skip_online_test();
|
||||
?>
|
||||
--FILE--
|
||||
<?php
|
||||
--
|
||||
1.8.3.1
|
||||
|
|
@ -37,6 +37,8 @@ Source0: http://pecl.php.net/get/%{proj_name}-%{version}%{?prever}.tgz
|
|||
# From http://www.php.net/manual/en/http.configuration.php
|
||||
Source1: %{proj_name}.ini
|
||||
|
||||
Patch0: %{proj_name}-offline.patch
|
||||
|
||||
BuildRequires: php-devel >= 5.3.0
|
||||
BuildRequires: php-hash
|
||||
BuildRequires: php-iconv
|
||||
|
@ -129,6 +131,9 @@ These are the files needed to compile programs using HTTP extension.
|
|||
|
||||
mv %{proj_name}-%{version}%{?prever} NTS
|
||||
cd NTS
|
||||
|
||||
%patch0 -p1 -b .offline
|
||||
|
||||
extver=$(sed -n '/#define PHP_PECL_HTTP_VERSION/{s/.* "//;s/".*$//;p}' php_http.h)
|
||||
if test "x${extver}" != "x%{version}%{?prever}"; then
|
||||
: Error: Upstream HTTP version is now ${extver}, expecting %{version}%{?prever}.
|
||||
|
@ -282,6 +287,7 @@ fi
|
|||
- Update to 2.1.0
|
||||
- ignore known failed tests with PHP 5.3.3
|
||||
- run test suite during build
|
||||
- add upstream patch to skip online test
|
||||
|
||||
* Sun Aug 17 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.0.7-2
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
|
||||
|
|
Loading…
Reference in New Issue