[pacman-dev] [PATCH] Add make target for TESTS
Allan McRae
allan at archlinux.org
Wed Oct 2 23:12:00 EDT 2013
On 20/09/13 12:00, Andrew Gregory wrote:
> This causes make to update TESTS when tests are added (or updated).
> For simplicity, this changes TESTS from a single multi-line list to
> individually appending each test file.
>
> Signed-off-by: Andrew Gregory <andrew.gregory.8 at gmail.com>
> ---
> Makefile.am | 3 +
> test/pacman/tests/TESTS | 583 ++++++++++++++++++++++++------------------------
> 2 files changed, 294 insertions(+), 292 deletions(-)
>
> diff --git a/Makefile.am b/Makefile.am
> index f81fd79..a37be33 100644
> --- a/Makefile.am
> +++ b/Makefile.am
> @@ -23,6 +23,9 @@ dist_pkgdata_DATA = \
> proto/proto.install \
> proto/ChangeLog.proto
>
> +$(top_srcdir)/test/pacman/tests/TESTS: $(wildcard test/pacman/tests/*.py*)
> + @printf "TESTS += %s\n" $^ | sed -e "s/\.py\.in/.py/" | sort -u > "$@"
> +
Ack. I adjusted the line to "... | LC_ALL=C sort -u ..." for
consistent sorting.
Allan
More information about the pacman-dev
mailing list