From 2287a1d78feab5b37ada300a56ba7b2e43ad2533 Mon Sep 17 00:00:00 2001 From: Arpit Tarang Saxena Date: Thu, 31 Jan 2019 18:17:52 +0530 Subject: Add EUNIT_TEST_SPEC variable Allows configuring setup/teardown or more complex test definitions. --- plugins/eunit.mk | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'plugins') diff --git a/plugins/eunit.mk b/plugins/eunit.mk index aa4cc9a..211a744 100644 --- a/plugins/eunit.mk +++ b/plugins/eunit.mk @@ -8,6 +8,7 @@ EUNIT_OPTS ?= EUNIT_ERL_OPTS ?= +EUNIT_TEST_SPEC ?= $1 # Core targets. @@ -23,7 +24,7 @@ help:: define eunit.erl $(call cover.erl) CoverSetup(), - case eunit:test($1, [$(EUNIT_OPTS)]) of + case eunit:test($(call EUNIT_TEST_SPEC,$1), [$(EUNIT_OPTS)]) of ok -> ok; error -> halt(2) end, -- cgit v1.2.3