Skip to content

Commit

Permalink
dev-lua/luadbi: add tests
Browse files Browse the repository at this point in the history
Uunfortunately, the tests must be restricted,
as they need a real database for execution.

Package-Manager: Portage-3.0.8, Repoman-3.0.1
Signed-off-by: Conrad Kostecki <[email protected]>
  • Loading branch information
ConiKost committed Oct 14, 2020
1 parent ac38fe3 commit 4160186
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion dev-lua/luadbi/luadbi-0.7.2.ebuild
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,9 @@ SRC_URI="https://github.com/mwild1/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
LICENSE="MIT"
SLOT="0"
KEYWORDS="~amd64 ~arm ~arm64 ~x86"
IUSE="mysql postgres +sqlite"
IUSE="mysql postgres +sqlite test"
REQUIRED_USE="|| ( mysql postgres sqlite )"
RESTRICT="test"

RDEPEND="
>=dev-lang/lua-5.1:=
Expand Down Expand Up @@ -47,6 +48,10 @@ src_compile() {
use sqlite emake ${myemakeargs} SQLITE3_INC="-I/usr/include" sqlite
}

src_test() {
cd "${S}"/tests && lua run_tests.lua || die
}

src_install() {
local myemakeargs=(
DESTDIR="${ED}"
Expand Down

0 comments on commit 4160186

Please sign in to comment.