diff options
author | Amadeusz Żołnowski <aidecoe@aidecoe.name> | 2016-05-22 22:32:39 +0100 |
---|---|---|
committer | Amadeusz Żołnowski <aidecoe@gentoo.org> | 2016-05-29 10:23:21 +0100 |
commit | 55993260d258f8a81cfcdbfdd9bfe5b91d73366a (patch) | |
tree | 8e798e781ea03395adb9938638537ef1a87b0121 /eclass/rebar.eclass | |
parent | media-sound/gtklick: Add missing die. (diff) | |
download | gentoo-55993260d258f8a81cfcdbfdd9bfe5b91d73366a.tar.gz gentoo-55993260d258f8a81cfcdbfdd9bfe5b91d73366a.tar.bz2 gentoo-55993260d258f8a81cfcdbfdd9bfe5b91d73366a.zip |
rebar.eclass: Run unit tests
Diffstat (limited to 'eclass/rebar.eclass')
-rw-r--r-- | eclass/rebar.eclass | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/eclass/rebar.eclass b/eclass/rebar.eclass index ca86e88ad8a6..9f3d9e22109e 100644 --- a/eclass/rebar.eclass +++ b/eclass/rebar.eclass @@ -30,7 +30,7 @@ case "${EAPI:-0}" in ;; esac -EXPORT_FUNCTIONS src_prepare src_compile src_install +EXPORT_FUNCTIONS src_prepare src_compile src_test src_install RDEPEND="dev-lang/erlang" DEPEND="${RDEPEND} @@ -198,6 +198,15 @@ rebar_src_compile() { erebar compile } +# @FUNCTION: rebar_src_test +# @DESCRIPTION: +# Run unit tests. +rebar_src_test() { + debug-print-function ${FUNCNAME} "${@}" + + erebar eunit +} + # @FUNCTION: rebar_src_install # @DESCRIPTION: # Install BEAM files, include headers, executables and native libraries. |