-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Extend the testsuite to also check whether dotgentoo initialization/u…
…pdate works
- Loading branch information
Showing
4 changed files
with
77 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
#!/bin/bash | ||
|
||
RET=0 | ||
|
||
DOTGENTOO="${GEBUILDER_ROOT}/tests/dotgentoos/.gentoo" | ||
|
||
DOTGENTOO_ID="$(get_dotgentoo_id "${DOTGENTOO}")" | ||
"$GEBUILDER_ENTRY" "${DOTGENTOO}" initialize | ||
if [ "$?" -eq 0 ] | ||
then | ||
error "Initialization of .gentoo failed" | ||
RET=1 | ||
fi | ||
|
||
if [ "roots/${DOTGENTOO_ID}/root/usr/include/gmp.h" ] | ||
then | ||
error "GMP dependency not pulled in" | ||
RET=1 | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
#!/bin/bash | ||
|
||
RET=0 | ||
|
||
"$GEBUILDER_ENTRY" "${DOTGENTOO}" initialize | ||
if [ "$?" -eq 1 ] | ||
then | ||
error "Second initialization of .gentoo succeeded where it should have failed" | ||
RET=1 | ||
fi | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
#!/bin/bash | ||
|
||
RET=0 | ||
|
||
"$GEBUILDER_ENTRY" "${DOTGENTOO}" update | ||
if [ "$?" -eq 0 ] | ||
then | ||
error "Updating of .gentoo failed" | ||
RET=1 | ||
fi | ||
|
36 changes: 36 additions & 0 deletions
36
gebuilder/tests/dotgentoos/.gentoo/dev-util/numdiff/numdiff-5.9.0.ebuild
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
# Copyright 1999-2019 Gentoo Authors | ||
# Distributed under the terms of the GNU General Public License v2 | ||
|
||
EAPI=6 | ||
|
||
inherit autotools | ||
|
||
DESCRIPTION="File comparision, ignoring small numeric differences and formats" | ||
HOMEPAGE="http://www.nongnu.org/numdiff/" | ||
SRC_URI="http://savannah.nongnu.org/download/numdiff/${P}.tar.gz" | ||
|
||
LICENSE="GPL-3+" | ||
SLOT="0" | ||
KEYWORDS="amd64 x86" | ||
IUSE="+nls +gmp" | ||
|
||
RDEPEND=" | ||
gmp? ( dev-libs/gmp:0= ) | ||
nls? ( sys-devel/gettext ) | ||
!dev-util/ndiff" | ||
DEPEND="${RDEPEND}" | ||
|
||
src_prepare() { | ||
default | ||
# yes, it really only needs eautoconf, due to the | ||
# config.h being hand-written, which would be bulldozered | ||
# when running eautoreconf (due to it invoking autoheader) | ||
eautoconf | ||
} | ||
|
||
src_configure() { | ||
econf \ | ||
--enable-optimization \ | ||
$(use_enable gmp) \ | ||
$(use_enable nls) | ||
} |