From fbd08d42db14eaddcae6c09714e6443f2f63589b Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Mon, 9 Mar 2020 11:06:52 +0100 Subject: update to 0.0.20 re-enable the test suite, only ignore 3 known failed tests --- php-microsoft-tolerant-php-parser.spec | 31 ++++++++++++++++++++++++------- 1 file changed, 24 insertions(+), 7 deletions(-) diff --git a/php-microsoft-tolerant-php-parser.spec b/php-microsoft-tolerant-php-parser.spec index 1c282b4..2b2f41c 100644 --- a/php-microsoft-tolerant-php-parser.spec +++ b/php-microsoft-tolerant-php-parser.spec @@ -1,13 +1,13 @@ # remirepo/fedora spec file for php-microsoft-tolerant-php-parser # -# Copyright (c) 2018-2019 Remi Collet +# Copyright (c) 2018-2020 Remi Collet # License: CC-BY-SA # http://creativecommons.org/licenses/by-sa/4.0/ # # Please, preserve the changelog entries # # Github -%global gh_commit e255aa978b45729094da2a1a6f9954044a244ff2 +%global gh_commit c5e2bf5d8c9f4f27eef1370bd39ea2d1f374eeb4 %global gh_short %(c=%{gh_commit}; echo ${c:0:7}) %global gh_owner Microsoft %global gh_project tolerant-php-parser @@ -22,7 +22,7 @@ Name: php-%{pk_vendor}-%{pk_name} -Version: 0.0.18 +Version: 0.0.20 Release: 1%{?dist} Summary: Tolerant PHP-to-AST parser @@ -91,11 +91,21 @@ sed -e 's:src/bootstrap.php:%{buildroot}%{_datadir}/php/%{ns_vendor}/%{ns_projec : Run the test suite ret=0 -for cmd in php php70 php71 php72 php73; do +for cmd in php php72 php73 php74; do if which $cmd; then - $cmd %{_bindir}/phpunit6 --testsuite invariants || ret=1 - $cmd %{_bindir}/phpunit6 --testsuite grammar || ret=1 - $cmd %{_bindir}/phpunit6 --testsuite api || : ignore + $cmd %{_bindir}/phpunit6 \ + --testsuite invariants \ + || ret=1 + + $cmd %{_bindir}/phpunit6 \ + --testsuite grammar \ + --filter '^((?!(testOutputTreeClassificationAndLength)).)*$' \ + || ret=1 + + $cmd %{_bindir}/phpunit6 \ + --testsuite api\ + --filter '^((?!(testOutOfOrderTextEdits|testOverlappingTextEdits)).)*$' \ + || ret=1 fi done exit $ret @@ -114,6 +124,13 @@ exit $ret %changelog +* Tue Feb 25 2020 Remi Collet - 0.0.20-1 +- update to 0.0.20 +- re-enable the test suite, only ignore 3 known failed tests + +* Mon Feb 17 2020 Remi Collet - 0.0.18-3 +- ignore grammar and api results, FTBFS #1799871 + * Tue Jul 2 2019 Remi Collet - 0.0.18-1 - update to 0.0.18 -- cgit