diff options
author | Arpit Tarang Saxena <[email protected]> | 2019-01-31 18:17:52 +0530 |
---|---|---|
committer | Loïc Hoguin <[email protected]> | 2023-05-15 10:46:40 +0200 |
commit | 2287a1d78feab5b37ada300a56ba7b2e43ad2533 (patch) | |
tree | 30d7c7fd79db59fb908d64b3d6cba02e01969589 /plugins | |
parent | 57798d7dc357528424a36f95c090e86450556885 (diff) | |
download | erlang.mk-2287a1d78feab5b37ada300a56ba7b2e43ad2533.tar.gz erlang.mk-2287a1d78feab5b37ada300a56ba7b2e43ad2533.tar.bz2 erlang.mk-2287a1d78feab5b37ada300a56ba7b2e43ad2533.zip |
Add EUNIT_TEST_SPEC variable
Allows configuring setup/teardown or more complex
test definitions.
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/eunit.mk | 3 |
1 files changed, 2 insertions, 1 deletions
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, |