From 13cf9ba379cfc7b2945301453ccb4c804f4e2881 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Hoguin?= Date: Fri, 18 Dec 2015 19:23:50 +0100 Subject: Exclude rabbitmq_codegen from the package check This isn't an Erlang application. --- test/Makefile | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'test/Makefile') diff --git a/test/Makefile b/test/Makefile index 34d647f..d5a3a61 100644 --- a/test/Makefile +++ b/test/Makefile @@ -181,6 +181,7 @@ core-help: build clean-core-help # Packages. PACKAGES = $(foreach pkg,$(sort $(wildcard ../index/*.mk)),$(notdir $(basename $(pkg)))) +EXCLUDE_FROM_CHECK = [rabbitmq_codegen] packages: $(addprefix pkg-,$(PACKAGES)) @@ -217,8 +218,9 @@ pkg-$1: clean build $i "Check that all applications and their modules can be loaded" $t if ! ( cd packages/$1_pkg/ && $(ERL) -pa deps/*/ebin/ -eval " \ - Apps = [list_to_atom(App) || \"deps/\" ++ App \ + Apps0 = [list_to_atom(App) || \"deps/\" ++ App \ <- filelib:wildcard(\"deps/*\")], \ + Apps = [App || App <- Apps0, not lists:member(App, $(EXCLUDE_FROM_CHECK))], \ [begin \ io:format(\"Loading application ~p~n\", [App]), \ case application:load(App) of \ @@ -250,8 +252,9 @@ pkg-$1: clean build $i "Check that all applications and their modules can still be loaded" $t if ! ( cd packages/$1_pkg/ && $(ERL) -pa deps/*/ebin/ -eval " \ - Apps = [list_to_atom(App) || \"deps/\" ++ App \ + Apps0 = [list_to_atom(App) || \"deps/\" ++ App \ <- filelib:wildcard(\"deps/*\")], \ + Apps = [App || App <- Apps0, not lists:member(App, $(EXCLUDE_FROM_CHECK))], \ [begin \ io:format(\"Loading application ~p~n\", [App]), \ case application:load(App) of \ -- cgit v1.2.3