From 720220805da43f760c269859b3bf8d4e4017e8fb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Hoguin?= Date: Tue, 27 Oct 2020 17:02:38 +0100 Subject: Disable Mercurial test There are no popular Mercurial providers anymore. We can enable it again when things change. Gitlab might add it in the future. --- test/core_deps.mk | 57 ++++++++++++++++++++++++++++--------------------------- 1 file changed, 29 insertions(+), 28 deletions(-) (limited to 'test') diff --git a/test/core_deps.mk b/test/core_deps.mk index 31b92f6..977fcaf 100644 --- a/test/core_deps.mk +++ b/test/core_deps.mk @@ -623,34 +623,35 @@ endif {ok, \"1.0.0\"} = application:get_key(cowboy, vsn), \ halt()" -core-deps-fetch-hg: init - - $i "Bootstrap a new OTP library named $(APP)" - $t mkdir $(APP)/ - $t cp ../erlang.mk $(APP)/ - $t $(MAKE) -C $(APP) -f erlang.mk bootstrap-lib $v - - $i "Add Ehsa 4.0.3 to the list of dependencies" - $t perl -ni.bak -e 'print;if ($$.==1) {print "DEPS = ehsa\ndep_ehsa = hg https://bitbucket.org/a12n/ehsa 4.0.3\n"}' $(APP)/Makefile - -ifdef LEGACY - $i "Add ehsa to the applications key in the .app.src file" - $t perl -ni.bak -e 'print;if ($$.==7) {print "\t\tehsa,\n"}' $(APP)/src/$(APP).app.src -endif - - $i "Build the application" - $t $(MAKE) -C $(APP) $v - - $i "Check that all dependencies were fetched" - $t test -d $(APP)/deps/ehsa - - $i "Check that the application was compiled correctly" - $t $(ERL) -pa $(APP)/ebin/ $(APP)/deps/*/ebin/ -eval " \ - [ok = application:load(App) || App <- [$(APP), ehsa]], \ - {ok, Deps} = application:get_key($(APP), applications), \ - true = lists:member(ehsa, Deps), \ - {ok, \"4.0.3\"} = application:get_key(ehsa, vsn), \ - halt()" +# @todo Enable this test again when a host provides Mercurial again. +#core-deps-fetch-hg: init +# +# $i "Bootstrap a new OTP library named $(APP)" +# $t mkdir $(APP)/ +# $t cp ../erlang.mk $(APP)/ +# $t $(MAKE) -C $(APP) -f erlang.mk bootstrap-lib $v +# +# $i "Add Ehsa 4.0.3 to the list of dependencies" +# $t perl -ni.bak -e 'print;if ($$.==1) {print "DEPS = ehsa\ndep_ehsa = hg https://bitbucket.org/a12n/ehsa 4.0.3\n"}' $(APP)/Makefile +# +#ifdef LEGACY +# $i "Add ehsa to the applications key in the .app.src file" +# $t perl -ni.bak -e 'print;if ($$.==7) {print "\t\tehsa,\n"}' $(APP)/src/$(APP).app.src +#endif +# +# $i "Build the application" +# $t $(MAKE) -C $(APP) $v +# +# $i "Check that all dependencies were fetched" +# $t test -d $(APP)/deps/ehsa +# +# $i "Check that the application was compiled correctly" +# $t $(ERL) -pa $(APP)/ebin/ $(APP)/deps/*/ebin/ -eval " \ +# [ok = application:load(App) || App <- [$(APP), ehsa]], \ +# {ok, Deps} = application:get_key($(APP), applications), \ +# true = lists:member(ehsa, Deps), \ +# {ok, \"4.0.3\"} = application:get_key(ehsa, vsn), \ +# halt()" # Legacy must fail for the top-level application, but work for dependencies. core-deps-fetch-legacy: init -- cgit v1.2.3