From 908778078736bd36f7a60a2d576d415cb8e000fa Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Sat, 22 May 2021 07:31:18 +0100 Subject: gentoo resync : 22.05.2021 --- eclass/tests/autotools_eaclocal_amflags.sh | 4 +++- eclass/tests/flag-o-matic.sh | 4 +++- eclass/tests/tests-common.sh | 3 +++ 3 files changed, 9 insertions(+), 2 deletions(-) (limited to 'eclass/tests') diff --git a/eclass/tests/autotools_eaclocal_amflags.sh b/eclass/tests/autotools_eaclocal_amflags.sh index b39f5420c31c..f9f02bb77893 100755 --- a/eclass/tests/autotools_eaclocal_amflags.sh +++ b/eclass/tests/autotools_eaclocal_amflags.sh @@ -1,9 +1,11 @@ #!/bin/bash -# Copyright 1999-2015 Gentoo Foundation +# Copyright 1999-2021 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 source tests-common.sh +EAPI=7 + inherit autotools test-it() { diff --git a/eclass/tests/flag-o-matic.sh b/eclass/tests/flag-o-matic.sh index 676cc690c75c..dc8cfd375c1e 100755 --- a/eclass/tests/flag-o-matic.sh +++ b/eclass/tests/flag-o-matic.sh @@ -1,9 +1,11 @@ #!/bin/bash -# Copyright 1999-2019 Gentoo Authors +# Copyright 1999-2021 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 source tests-common.sh +EAPI=7 + inherit flag-o-matic CFLAGS="-a -b -c=1 --param l1-cache-size=32" diff --git a/eclass/tests/tests-common.sh b/eclass/tests/tests-common.sh index 2fc849cb69a7..a677842b6ac5 100644 --- a/eclass/tests/tests-common.sh +++ b/eclass/tests/tests-common.sh @@ -61,6 +61,9 @@ die() { } has_version() { + while [[ $1 == -* ]]; do + shift + done portageq has_version / "$@" } -- cgit v1.2.3