public inbox for gentoo-dev@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-dev] [PATCH 1/2] rebar.eclass: Run unit tests
@ 2016-05-28 16:12 aidecoe
  2016-05-28 16:12 ` [gentoo-dev] [PATCH 2/2] rebar.eclass: Optionally provide alternate rebar config to alter aidecoe
  0 siblings, 1 reply; 2+ messages in thread
From: aidecoe @ 2016-05-28 16:12 UTC (permalink / raw
  To: gentoo-dev; +Cc: Amadeusz Żołnowski

From: Amadeusz Żołnowski <aidecoe@aidecoe.name>

---
 eclass/rebar.eclass | 11 ++++++++++-
 1 file changed, 10 insertions(+), 1 deletion(-)

diff --git a/eclass/rebar.eclass b/eclass/rebar.eclass
index ca86e88..9f3d9e2 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.
-- 
2.8.3



^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2016-05-28 16:13 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-05-28 16:12 [gentoo-dev] [PATCH 1/2] rebar.eclass: Run unit tests aidecoe
2016-05-28 16:12 ` [gentoo-dev] [PATCH 2/2] rebar.eclass: Optionally provide alternate rebar config to alter aidecoe

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox