From 3a6bb2735b7715a8275826826ac3c525f03b121c Mon Sep 17 00:00:00 2001 From: Andrew Gregory Date: Thu, 19 Sep 2013 22:00:11 -0400 Subject: Add make target for TESTS 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 [Allan: use C locale for sorting] Signed-off-by: Allan McRae Signed-off-by: Allan McRae --- Makefile.am | 3 +++ 1 file changed, 3 insertions(+) (limited to 'Makefile.am') diff --git a/Makefile.am b/Makefile.am index f81fd79e..0729be3d 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/" | LC_ALL=C sort -u > "$@" + TESTS = test/scripts/parseopts_test.sh \ test/scripts/human_to_size_test.sh \ test/util/pacsorttest.sh \ -- cgit v1.2.3-24-g4f1b