From: aidecoe@gentoo.org
To: gentoo-dev@lists.gentoo.org
Cc: "Amadeusz Żołnowski" <aidecoe@aidecoe.name>
Subject: [gentoo-dev] [PATCH 1/2] rebar.eclass: Run unit tests
Date: Sat, 28 May 2016 17:12:57 +0100 [thread overview]
Message-ID: <20160528161258.8966-1-aidecoe@gentoo.org> (raw)
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
next reply other threads:[~2016-05-28 16:13 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-05-28 16:12 aidecoe [this message]
2016-05-28 16:12 ` [gentoo-dev] [PATCH 2/2] rebar.eclass: Optionally provide alternate rebar config to alter aidecoe
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20160528161258.8966-1-aidecoe@gentoo.org \
--to=aidecoe@gentoo.org \
--cc=aidecoe@aidecoe.name \
--cc=gentoo-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox