From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id BB2E713828B for ; Sat, 28 May 2016 16:13:14 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 4C9A0142A1; Sat, 28 May 2016 16:13:07 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 61989141E9 for ; Sat, 28 May 2016 16:13:06 +0000 (UTC) Received: from localhost (cpc92302-cmbg19-2-0-cust189.5-4.cable.virginm.net [82.1.208.190]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: aidecoe) by smtp.gentoo.org (Postfix) with ESMTPSA id B6C23340B3F; Sat, 28 May 2016 16:13:04 +0000 (UTC) From: aidecoe@gentoo.org To: gentoo-dev@lists.gentoo.org Cc: =?UTF-8?q?Amadeusz=20=C5=BBo=C5=82nowski?= Subject: [gentoo-dev] [PATCH 1/2] rebar.eclass: Run unit tests Date: Sat, 28 May 2016 17:12:57 +0100 Message-Id: <20160528161258.8966-1-aidecoe@gentoo.org> X-Mailer: git-send-email 2.8.3 Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-dev@lists.gentoo.org Reply-to: gentoo-dev@lists.gentoo.org MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Archives-Salt: 7f659c34-f2ad-4d62-92be-9d4473bdbe71 X-Archives-Hash: 713048b11096a897a620f1d095564cae From: Amadeusz Żołnowski --- 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