diff --git a/debian/tests.in/cli b/debian/tests.in/cli index 1e38ab97ab1a1b13cbb32721f09167c8878e17f3..fcb7812044cc31232b2f4416ff1a4f644cd6d17e 100644 --- a/debian/tests.in/cli +++ b/debian/tests.in/cli @@ -3,6 +3,7 @@ set -e # Author: Robie Basak +GROUP=cli ./debian/tests/run-tests.sh sapi/cli/tests/ cd "$ADTTMP" cat > hello.php < diff --git a/debian/tests.in/control b/debian/tests.in/control index dfe9a457db3d794191c3a55c76bafe81e0f98c05..bde79776fefc416f83b6beafe22a83438e9abe15 100644 --- a/debian/tests.in/control +++ b/debian/tests.in/control @@ -12,3 +12,15 @@ Restrictions: needs-root Tests: fpm Depends: apache2, php@PHP_VERSION@-fpm, wget Restrictions: needs-root + +Tests: run-basic-tests +Depends: php@PHP_VERSION@-cli, php@PHP_VERSION@-cgi, php@PHP_VERSION@-mbstring + +Tests: run-Zend-tests +Depends: php@PHP_VERSION@-cli + +Tests: run-ext-tests +Depends: php@PHP_VERSION@-cli + +Tests: run-ext-bz2-tests +Depends: php@PHP_VERSION@-cli, php@PHP_VERSION@-bz2 diff --git a/debian/tests.in/run-tests.sh b/debian/tests.in/run-tests.sh new file mode 100755 index 0000000000000000000000000000000000000000..5040397bc4e323bd8d1b8796f836a100ecfcd43f --- /dev/null +++ b/debian/tests.in/run-tests.sh @@ -0,0 +1,6 @@ +#!/bin/sh +# Save any failures to a file, and then diff it against our known failures +# if we have any, to spot any new regressions (or improvements!). +TEST_PHP_EXECUTABLE=/usr/bin/php@PHP_VERSION@ php run-tests.php $@ -w failures.txt +export ARCH=$(dpkg --print-architecture) +php debian/tests/diff-failures.php "./debian/tests/$GROUP-$ARCH-failures.txt" failures.txt diff --git a/debian/tests/basic-amd64-failures.txt b/debian/tests/basic-amd64-failures.txt new file mode 100644 index 0000000000000000000000000000000000000000..ae75e6d037488a18741b107e612b16cff302d55a --- /dev/null +++ b/debian/tests/basic-amd64-failures.txt @@ -0,0 +1,6 @@ +tests/output/stream_isatty_err.phpt +tests/output/stream_isatty_in-err.phpt +tests/output/stream_isatty_in-out.phpt +tests/output/stream_isatty_out-err.phpt +tests/output/stream_isatty_out.phpt +tests/security/open_basedir_linkinfo.phpt diff --git a/debian/tests/cli b/debian/tests/cli index 344223cd42013d5992e8e19b50f267443cb5f251..3a1e26d7dc3c4680cfbf5245e6830bcee6f59d34 100644 --- a/debian/tests/cli +++ b/debian/tests/cli @@ -3,6 +3,7 @@ set -e # Author: Robie Basak +GROUP=cli ./debian/tests/run-tests.sh sapi/cli/tests/ cd "$ADTTMP" cat > hello.php < diff --git a/debian/tests/cli-amd64-failures.txt b/debian/tests/cli-amd64-failures.txt new file mode 100644 index 0000000000000000000000000000000000000000..24db8dfa54ec5024f08ead868cb3a653057155e3 --- /dev/null +++ b/debian/tests/cli-amd64-failures.txt @@ -0,0 +1 @@ +sapi/cli/tests/017.phpt diff --git a/debian/tests/control b/debian/tests/control index 9ee24bbfa9f484caa451c91bd494ccbeb2050ab2..41b19b88b14857d16dc0c6621aa6cc22328ca776 100644 --- a/debian/tests/control +++ b/debian/tests/control @@ -12,3 +12,15 @@ Restrictions: needs-root Tests: fpm Depends: apache2, php7.2-fpm, wget Restrictions: needs-root + +Tests: run-basic-tests +Depends: php7.2-cli, php7.2-cgi, php7.2-mbstring + +Tests: run-Zend-tests +Depends: php7.2-cli + +Tests: run-ext-tests +Depends: php7.2-cli + +Tests: run-ext-bz2-tests +Depends: php7.2-cli, php7.2-bz2 diff --git a/debian/tests/diff-failures.php b/debian/tests/diff-failures.php new file mode 100644 index 0000000000000000000000000000000000000000..f951c64efb7c1fad6b669aa42544d0045489e172 --- /dev/null +++ b/debian/tests/diff-failures.php @@ -0,0 +1,20 @@ +