[pacman-dev] [PATCH 0/7] integrate test suite with automake

Andrew Gregory andrew.gregory.8 at gmail.com
Fri Aug 2 08:34:07 EDT 2013


This patchset converts the output of all of our tests to tap [1] and fully
integrates them with automake so that tests can be run in parallel with `make
check`.  The test suite may also be run with other test harnesses such as
perl's prove which can do such interesting things as remember which tests
failed and run only those on subsequent invocations.  The documentation for
integrating tests is here [2].

[1] http://podwiki.hexten.net/TAP/TAP.html?page=TAP
[2] http://www.gnu.org/software/automake/manual/html_node/Parallel-Test-Harness.html

Andrew Gregory (7):
  convert test scripts to tap output
  pactest: treat unknown rules as failures
  convert pactest to TAP output
  provide default values for test scripts
  pactest: accept test names without a switch
  integrate tests with automake
  pactest: remove results summary

 .gitignore                         |   2 +
 Makefile.am                        |  36 +-
 build-aux/tap-driver.sh            | 652 +++++++++++++++++++++++++++++++++++++
 configure.ac                       |   1 +
 test/pacman/pactest.py             |  29 +-
 test/pacman/pmdb.py                |   5 +-
 test/pacman/pmenv.py               |  87 +----
 test/pacman/pmrule.py              |  15 +-
 test/pacman/pmtest.py              |  26 +-
 test/pacman/tap.py                 |  64 ++++
 test/pacman/tests/TESTS            | 288 ++++++++++++++++
 test/pacman/util.py                |   4 +-
 test/scripts/human_to_size_test.sh |  29 +-
 test/scripts/parseopts_test.sh     |  30 +-
 test/util/pacsorttest.sh           |  41 +--
 test/util/vercmptest.sh            |  39 +--
 16 files changed, 1136 insertions(+), 212 deletions(-)
 create mode 100755 build-aux/tap-driver.sh
 create mode 100644 test/pacman/tap.py
 create mode 100644 test/pacman/tests/TESTS

-- 
1.8.3.4



More information about the pacman-dev mailing list