Skip to content
GitLab
  • Menu
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • P php
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Merge requests 4
    • Merge requests 4
  • Deployments
    • Deployments
    • Releases
  • Packages & Registries
    • Packages & Registries
    • Container Registry
  • Analytics
    • Analytics
    • Value stream
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Commits
Collapse sidebar
  • Debian PHP Team
  • php
  • Merge requests
  • !1

Run test suite during autopkgtest

  • Review changes

  • Download
  • Email patches
  • Plain diff
Open Kunal Mehta (guest) requested to merge legoktm-guest/php:autopkgtest into master-7.2 Aug 14, 2018
  • Overview 10
  • Commits 1
  • Changes 14

Introduce two wrapper scripts as wrappers for run-tests.php:

  • run-tests.sh
  • run-tests-with-failures.sh

The first is straightforward, sets the correct environment variables, and passes on any arguments to run-tests.php.

The second is intended for test groups where there are currently failures, and we want to fail only if there are new regressions. The diff-failures.php helper is a wrapper around diff to re-format the run-tests.php output into an easily diffable format. A unified diff is output, so it's easy to update *-failures.txt files.

Tests are broken down into groups mostly for ease of maintenance.

  • basic: tests/
  • Zend: Zend/tests/
  • ext: ext/*/tests/ (that are included in -common)
  • ext-bz2: ext/bz2/tests/ (example of extension in a separate package)

If this system works, then future patches can add the rest of extension tests, and sapi tests.

Assignee
Assign to
Reviewer
Request review from
Time tracking
Source branch: autopkgtest