commit:     37657ba6e7dbc892298e7ef31add4aa989a08e39
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Fri Feb  6 01:43:06 2026 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Fri Feb  6 01:48:31 2026 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=37657ba6

dev-db/sqlcipher: restrict tests, partially wire them up

Partially wire up tests and include a link to the upstream docs on this,
but they still fail and we need to use multibuild.eclass to build w/
a test-only option (-DSQLCIPHER_TEST).

Closes: https://bugs.gentoo.org/692310
Signed-off-by: Sam James <sam <AT> gentoo.org>

 dev-db/sqlcipher/sqlcipher-4.6.1.ebuild | 14 +++++++++++---
 1 file changed, 11 insertions(+), 3 deletions(-)

diff --git a/dev-db/sqlcipher/sqlcipher-4.6.1.ebuild 
b/dev-db/sqlcipher/sqlcipher-4.6.1.ebuild
index 99f5e84a11ec..2dad943a6daa 100644
--- a/dev-db/sqlcipher/sqlcipher-4.6.1.ebuild
+++ b/dev-db/sqlcipher/sqlcipher-4.6.1.ebuild
@@ -1,9 +1,9 @@
-# Copyright 1999-2025 Gentoo Authors
+# Copyright 1999-2026 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=8
 
-inherit flag-o-matic multilib-minimal
+inherit edo flag-o-matic multilib-minimal
 
 DESCRIPTION="Full Database Encryption for SQLite"
 HOMEPAGE="
@@ -21,7 +21,9 @@ REQUIRED_USE="
        ?? ( libedit readline )
        test? ( tcl )
 "
-RESTRICT="!test? ( test )"
+# Extra flags are needed like -DSQLCIPHER_TEST which add undesirable
+# test-only code into the main binary. multibuild for tests?
+RESTRICT="!test? ( test ) test"
 
 RDEPEND="
        dev-libs/openssl:=[${MULTILIB_USEDEP}]
@@ -59,6 +61,12 @@ multilib_src_configure() {
                econf "${myeconfargs[@]}"
 }
 
+multilib_src_test() {
+       # https://github.com/sqlcipher/sqlcipher#testing
+       emake testfixture
+       edo ./testfixture "${S}"/test/sqlcipher.test
+}
+
 multilib_src_install_all() {
        einstalldocs
        find "${ED}" -name '*.la' -type f -delete || die

Reply via email to