[pacman-dev,0/4,WIP] makepkg test suite

Message ID 20170225172118.5780-1-andrew.gregory.8@gmail.com
Headers show
Series makepkg test suite | expand

Message

Andrew Gregory Feb. 25, 2017, 5:21 p.m. UTC
The long-awaited makepkg test suite is finally here, or at least the start of
it.  The tests can be run via `make check` or they can also be run directly.
Included so far are a few tests for package generation and a single libmakepkg
test for some of the util/pkgbuild functions.  I made some small changes to the
lib in order to make it easier to use and to allow stricter error checking in
the test suite (set -u).

Andrew Gregory (4):
  util/pkgbuild: guard against unset variable
  util/pkgbuild: manually set extglob
  util/pkgbuild: fix broken indentation
  add basic makepkg test

 Makefile.am                            |   6 +-
 configure.ac                           |   2 +
 scripts/libmakepkg/util/pkgbuild.sh.in |  23 +++---
 test/makepkg/Makefile.am               |   9 +++
 test/makepkg/README                    |  15 ++++
 test/makepkg/test_functions.sh         | 143 +++++++++++++++++++++++++++++++++
 test/makepkg/tests/Makefile.am         |   7 ++
 test/makepkg/tests/TESTS               |   4 +
 test/makepkg/tests/dbfiles.sh          |  35 ++++++++
 test/makepkg/tests/dotfiles.sh         |  33 ++++++++
 test/makepkg/tests/pkgbuild.sh         |  53 ++++++++++++
 test/makepkg/tests/util-pkgbuild.sh    |  35 ++++++++
 12 files changed, 355 insertions(+), 10 deletions(-)
 create mode 100644 test/makepkg/Makefile.am
 create mode 100644 test/makepkg/README
 create mode 100644 test/makepkg/test_functions.sh
 create mode 100644 test/makepkg/tests/Makefile.am
 create mode 100644 test/makepkg/tests/TESTS
 create mode 100755 test/makepkg/tests/dbfiles.sh
 create mode 100755 test/makepkg/tests/dotfiles.sh
 create mode 100755 test/makepkg/tests/pkgbuild.sh
 create mode 100755 test/makepkg/tests/util-pkgbuild.sh