From 9a90461dbcdc5406ba0936e07d13bb76ad12cb00 Mon Sep 17 00:00:00 2001 From: Nick Gates Date: Wed, 6 Jan 2016 20:57:24 +0000 Subject: Add a second comma/space to test global substitutions --- test/core_compat.mk | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'test/core_compat.mk') diff --git a/test/core_compat.mk b/test/core_compat.mk index d38d4ef..73a9da1 100644 --- a/test/core_compat.mk +++ b/test/core_compat.mk @@ -220,7 +220,7 @@ core-compat-rebar-pt: build clean $t perl -ni.bak -e 'print;if ($$.==1) {print "DEPS = lager\n"}' $(APP)/Makefile $i "Add the lager_transform parse_transform to ERLC_OPTS" - $t echo "ERLC_OPTS += +'{parse_transform, lager_transform}'" >> $(APP)/Makefile + $t echo "ERLC_OPTS += +'{parse_transform, lager_transform}' +'{lager_truncation_size, 1234}'" >> $(APP)/Makefile $i "Build the application" $t $(MAKE) -C $(APP) $v @@ -236,6 +236,7 @@ core-compat-rebar-pt: build clean {ok, C} = file:consult(\"$(APP)/rebar.config\"), \ {_, Opts} = lists:keyfind(erl_opts, 1, C), \ true = lists:member({parse_transform, lager_transform}, Opts), \ + true = lists:member({lager_truncation_size, 1234}, Opts), \ halt()" # For the new build method, we have to simulate keeping the .app file -- cgit v1.2.3