aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorLoïc Hoguin <[email protected]>2015-06-28 23:08:01 +0200
committerLoïc Hoguin <[email protected]>2015-06-28 23:12:10 +0200
commit857f595ed5293a9dae42ef64062461ee35547663 (patch)
tree27b3fd1690f1141ef51c89ec0507762e2976ae3e /test
parent9a2dd5dfb20b2b5dbb08d9441a184815b5337cbe (diff)
downloaderlang.mk-857f595ed5293a9dae42ef64062461ee35547663.tar.gz
erlang.mk-857f595ed5293a9dae42ef64062461ee35547663.tar.bz2
erlang.mk-857f595ed5293a9dae42ef64062461ee35547663.zip
Bundle the package index directly inside erlang.mk
If you were using the index file as a "lock file", bear with me for a moment, equivalent functionality will soon be added. :-)
Diffstat (limited to 'test')
-rw-r--r--test/Makefile7
1 files changed, 4 insertions, 3 deletions
diff --git a/test/Makefile b/test/Makefile
index 4c26895..0de1b17 100644
--- a/test/Makefile
+++ b/test/Makefile
@@ -232,7 +232,6 @@ pkg-$(1): pkg-$(1)-clean pkg-$(1)-app1
"DEPS = $(1)" \
"include erlang.mk" \
> app1/Makefile
- cp ../packages.v2.tsv app1/.erlang.mk.packages.v2
$t \
if [ "$(1)" = "amqp_client" ]; then \
virtualenv -p python2.7 --distribute temp-python; \
@@ -279,9 +278,11 @@ pkg-$(1): pkg-$(1)-clean pkg-$(1)-app1
fi
endef
-$(foreach pkg,$(shell awk '{print $$1}' ../packages.v2.tsv),$(eval $(call pkg_test_target,$(pkg))))
+PACKAGES = $(foreach pkg,$(sort $(wildcard ../index/*.mk)),$(notdir $(basename $(pkg))))
-pkgs: $(foreach pkg,$(shell awk '{print $$1}' ../packages.v2.tsv),pkg-$(pkg))
+$(foreach pkg,$(PACKAGES),$(eval $(call pkg_test_target,$(pkg))))
+
+pkgs: $(addprefix pkg-,$(PACKAGES))
@if [ -f pkgs.log ]; then \
echo "+-------------------------------+"; \
echo "| ERRORS WHILE TESTING PACKAGES |"; \