From d153473c987631216f8c2a36e130f4250ae601e6 Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Wed, 24 Mar 2021 10:19:28 +0100 Subject: skip more test (build without internet) --- php-react-dns.spec | 26 ++++++++++++-------------- 1 file 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 - 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 - 1.4.0-1 - update to 1.4.0 -- cgit