summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2017-03-11 14:25:42 +0100
committerMichał Górny <mgorny@gentoo.org>2017-03-18 08:33:16 +0100
commitf7a4c94d344b6c73773bf83bd397ba468386e294 (patch)
treec6f666a98059eae3eb2afabc621f4ef4a89f789e /eclass/tests
parenteutils.eclass: Deprecate validate_desktop_entries (diff)
downloadgentoo-f7a4c94d344b6c73773bf83bd397ba468386e294.tar.gz
gentoo-f7a4c94d344b6c73773bf83bd397ba468386e294.tar.bz2
gentoo-f7a4c94d344b6c73773bf83bd397ba468386e294.zip
estack.eclass: Split estack* logic from eutils
Split the estack_* and related functions from eutils into a dedicated estack.eclass. Those functions have significant complexity and are not used frequently, therefore they benefit from having a separate file and an explicit dedicated maintainer. The new eclass is implicitly inherited by eutils to preserve compatibility. However, the inherit will be removed in EAPI 7, and the ebuilds should switch to using estack directly. Thanks to Ulrich Müller for doing the research on this.
Diffstat (limited to 'eclass/tests')
-rwxr-xr-xeclass/tests/estack_eshopts.sh (renamed from eclass/tests/eutils_eshopts.sh)4
-rwxr-xr-xeclass/tests/estack_estack.sh (renamed from eclass/tests/eutils_estack.sh)4
-rwxr-xr-xeclass/tests/estack_evar.sh (renamed from eclass/tests/eutils_evar.sh)4
3 files changed, 6 insertions, 6 deletions
diff --git a/eclass/tests/eutils_eshopts.sh b/eclass/tests/estack_eshopts.sh
index 2e9bbb6d4612..606a17cfb053 100755
--- a/eclass/tests/eutils_eshopts.sh
+++ b/eclass/tests/estack_eshopts.sh
@@ -1,10 +1,10 @@
#!/bin/bash
-# Copyright 1999-2015 Gentoo Foundation
+# Copyright 1999-2017 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
source tests-common.sh
-inherit eutils
+inherit estack
test-it() {
local s0 s1 s2
diff --git a/eclass/tests/eutils_estack.sh b/eclass/tests/estack_estack.sh
index c1fecf323133..4845243d3ae4 100755
--- a/eclass/tests/eutils_estack.sh
+++ b/eclass/tests/estack_estack.sh
@@ -1,10 +1,10 @@
#!/bin/bash
-# Copyright 1999-2015 Gentoo Foundation
+# Copyright 1999-2017 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
source tests-common.sh
-inherit eutils
+inherit estack
tbegin "initial stack state"
estack_pop teststack
diff --git a/eclass/tests/eutils_evar.sh b/eclass/tests/estack_evar.sh
index f8db340f723d..29badba0079e 100755
--- a/eclass/tests/eutils_evar.sh
+++ b/eclass/tests/estack_evar.sh
@@ -1,10 +1,10 @@
#!/bin/bash
-# Copyright 1999-2015 Gentoo Foundation
+# Copyright 1999-2017 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
source tests-common.sh
-inherit eutils
+inherit estack
tbegin "simple push/pop"
VAR=1