summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorP. J. McDermott <pj@pehjota.net>2015-12-07 10:36:45 (EST)
committer P. J. McDermott <pj@pehjota.net>2015-12-07 10:36:45 (EST)
commitd6b6c6f2aa5e4b7096679688e3166266883a31d5 (patch)
tree90f3c0ae89be8f5903c81ac0f2301f0700f306fd
parent19e7db791b7f1cbf0058b44b428677cb3ada7c1e (diff)
tests/local.mk: Build TESTS into check_PROGRAMS
-rw-r--r--tests/local.mk50
1 files changed, 48 insertions, 2 deletions
diff --git a/tests/local.mk b/tests/local.mk
index 023eae1..b25b78d 100644
--- a/tests/local.mk
+++ b/tests/local.mk
@@ -1,8 +1,54 @@
-TESTS = \
+check_PROGRAMS = \
+ tests/parse_control.basic \
+ tests/resolve_deps.basic \
+ tests/match_arch \
+ tests/match_plat \
+ tests/arch_is_concerned \
+ tests/plat_is_concerned \
+ tests/reduce_deps
+
+TESTS = $(check_PROGRAMS)
+
+tests_parse_control_basic_SOURCES = \
tests/parse_control.basic.sh \
+ tests/parse_control.common.sh \
+ tests/common.sh \
+ src/output.sh \
+ src/control.sh
+tests_parse_control_basic_LDADD = $(tests_parse_control_basic_SOURCES:.sh=.sho)
+
+tests_resolve_deps_basic_SOURCES =
tests/resolve_deps.basic.sh \
+ tests/common.sh \
+ src/pkg.sh
+tests_resolve_deps_basic_LDADD = $(tests_resolve_deps_basic_SOURCES:.sh=.sho)
+
+tests_match_arch_SOURCES = \
tests/match_arch.sh \
+ tests/common.sh \
+ src/archplat.sh
+tests_match_arch_LDADD = $(tests_match_arch_SOURCES:.sh=.sho)
+
+tests_match_plat_SOURCES = \
tests/match_plat.sh \
+ tests/common.sh \
+ src/archplat.sh
+tests_match_plat_LDADD = $(tests_match_plat_SOURCES:.sh=.sho)
+
+tests_arch_is_concerned_SOURCES = \
tests/arch_is_concerned.sh \
+ tests/common.sh \
+ src/archplat.sh
+tests_arch_is_concerned_LDADD = $(tests_arch_is_concerned_SOURCES:.sh=.sho)
+
+tests_plat_is_concerned_SOURCES = \
tests/plat_is_concerned.sh \
- tests/reduce_deps.sh
+ tests/common.sh \
+ src/archplat.sh
+tests_plat_is_concerned_LDADD = $(tests_plat_is_concerned_SOURCES:.sh=.sho)
+
+tests_reduce_deps_SOURCES = \
+ tests/reduce_deps.sh \
+ tests/common.sh \
+ src/deps.sh
+tests_reduce_deps_LDADD = $(tests_reduce_deps_SOURCES:.sh=.sho)