Browse Source

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.
Loïc Hoguin 4 years ago
parent
commit
720220805d
1 changed files with 29 additions and 28 deletions
  1. 29 28
      test/core_deps.mk

+ 29 - 28
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