[pacman-dev] [PATCH v5] Add testrunner for makepkg-template

Andrew Gregory andrew.gregory.8 at gmail.com
Mon Dec 29 03:50:18 UTC 2014


On 12/28/14 at 06:17pm, Florian Pritz wrote:
> Signed-off-by: Florian Pritz <bluewind at xinu.at>
> ---
> 
> v5:
>  - remove wrong comment
>  - look for the executable in PATH
>  - exit after tap_bail
> 
>  Makefile.am                                        |  2 +
>  test/scripts/Makefile.am                           |  1 +
>  .../testcase-config-template                       |  9 ++++
>  test/scripts/makepkg-template_test.sh              | 56 ++++++++++++++++++++++
>  4 files changed, 68 insertions(+)
>  create mode 100644 test/scripts/makepkg-template-tests/testcase-config-template
>  create mode 100755 test/scripts/makepkg-template_test.sh

...

> diff --git a/test/scripts/makepkg-template_test.sh b/test/scripts/makepkg-template_test.sh
> new file mode 100755
> index 0000000..60cbb0c
> --- /dev/null
> +++ b/test/scripts/makepkg-template_test.sh
> @@ -0,0 +1,56 @@
> +#!/bin/bash
> +
> +source "$(dirname "$0")"/../tap.sh || exit 1
> +
> +script=${1:-${PMTEST_SCRIPT_DIR}/makepkg-template}

That slash needs to be removed so that when PMTEST_SCRIPT_DIR isn't
defined we'll look for "makepkg-template" not "/makepkg-template".


More information about the pacman-dev mailing list