From 72910c8559b057af17e1c9f4ffe42e75ed0ad877 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Hoguin?= Date: Tue, 16 May 2023 09:35:35 +0200 Subject: Fix RELX_OUTPUT_DIR Was broken in the move to Relx v4. --- test/plugin_relx.mk | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) (limited to 'test') diff --git a/test/plugin_relx.mk b/test/plugin_relx.mk index 313e043..7e08fe0 100644 --- a/test/plugin_relx.mk +++ b/test/plugin_relx.mk @@ -102,6 +102,23 @@ relx-bare-rel: init $t test -d $(APP)/_rel/$(APP)_release/releases $t test -d $(APP)/_rel/$(APP)_release/releases/1 +relx-output-dir: init + + $i "Bootstrap a new release named $(APP)" + $t mkdir $(APP)/ + $t cp ../erlang.mk $(APP)/ + $t $(MAKE) -C $(APP) -f erlang.mk bootstrap bootstrap-rel $v + + $i "Set RELX_OUTPUT_DIR to _rel2" + $t perl -ni.bak -e 'print;if ($$.==1) {print "RELX_OUTPUT_DIR = _rel2\n"}' $(APP)/Makefile + + $i "Build the release" + $t $(MAKE) -C $(APP) $v + + $i "Check that the release exists in the correct location" + $t ! test -d $(APP)/_rel + $t test -d $(APP)/_rel2 + relx-post-rel: init $i "Bootstrap a new release named $(APP)" -- cgit v1.2.3