summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRemi Collet <remi@remirepo.net>2021-03-24 10:19:28 +0100
committerRemi Collet <remi@remirepo.net>2021-03-24 10:19:28 +0100
commitd153473c987631216f8c2a36e130f4250ae601e6 (patch)
tree7f665d084667c938a4efe7c64a22fb70569c738e
parent92b0879db0f71bf4a29cdb2e2922d04f33375cf7 (diff)
skip more test (build without internet)
-rw-r--r--php-react-dns.spec26
1 files changed, 12 insertions, 14 deletions
diff --git a/php-react-dns.spec b/php-react-dns.spec
index f73731c..7fd47fb 100644
--- a/php-react-dns.spec
+++ b/php-react-dns.spec
@@ -178,30 +178,27 @@ require '%{phpdir}/Clue/React/Block/autoload.php';
BOOTSTRAP
: Skip test requiring network access and/or fail in restrictive buildroot env -- i.e. Bodhi
-sed \
- -e 's/function testResolveGoogleResolves/function SKIP_testResolveGoogleResolves/' \
- -e 's/function testResolveGoogleOverUdpResolves/function SKIP_testResolveGoogleOverUdpResolves/' \
- -e 's/function testResolveInvalidRejects/function SKIP_testResolveInvalidRejects/' \
- -e 's/function testResolveCancelledRejectsImmediately/function SKIP_testResolveCancelledRejectsImmediately/' \
- -e 's/function testResolveGoogleOverTcpResolves/function SKIP_testResolveGoogleOverTcpResolves/' \
- -e 's/function testResolveAllGoogleMxResolvesWithCache/function SKIP_testResolveAllGoogleMxResolvesWithCache/' \
- -e 's/function testResolveAllGoogleCaaResolvesWithCache/function SKIP_testResolveAllGoogleCaaResolvesWithCache/' \
- -i tests/FunctionalResolverTest.php
-sed 's/function testLoadsDefaultPath/function SKIP_testLoadsDefaultPath/' \
- -i tests/Config/ConfigTest.php
-sed 's/function testQueryRejectsOnCancellation/function SKIP_testQueryRejectsOnCancellation/' \
- -i tests/Query/UdpTransportExecutorTest.php
+FILTER="testResolveGoogleResolves|testResolveGoogleOverUdpResolves|testResolveInvalidRejects\
+|testResolveCancelledRejectsImmediately|testResolveGoogleOverTcpResolves|testResolveAllGoogleMxResolvesWithCache\
+|testResolveAllGoogleMxResolvesWithCache|testResolveAllGoogleCaaResolvesWithCache|testLoadsDefaultPath\
+|testQueryRejectsOnCancellation|testResolveAllInvalidTypeRejects"
: Lots of Bodhi failures with these tests but everything passes locally
: Figure out the issue later, but for now skip
rm -f tests/Protocol/ParserTest.php
+: Failing on 32-bit
+VER=$(php -r 'echo PHP_INT_SIZE;')
+[ $VER -lt 8 ] && rm tests/Query/TcpTransportExecutorTest.php
+
: Upstream tests
RETURN_CODE=0
for CMDARG in "php %{phpunit}" "php72 %{_bindir}/phpunit" php74 php80; do
if which $CMDARG; then
set $CMDARG
- $1 ${2:-%{_bindir}/phpunit9} -d memory_limit=-1 --verbose \
+ $1 ${2:-%{_bindir}/phpunit9} -d memory_limit=-1 \
+ --filter "^((?!($FILTER)).)*\$" \
+ --verbose \
|| RETURN_CODE=1
fi
done
@@ -222,6 +219,7 @@ exit $RETURN_CODE
%changelog
* Fri Mar 5 2021 Remi Collet <remi@remirepo.net> - 1.5.0-1
- update to 1.5.0
+- open https://github.com/reactphp/dns/issues/176 integer overflow
* Wed Nov 4 2020 Remi Collet <remi@remirepo.net> - 1.4.0-1
- update to 1.4.0