public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
To: git-commits@fedoraproject.org
Subject: [rpms/soci] update-to-4.1.4: Enable running tests in %check
Date: Sat, 20 Jun 2026 04:39:58 GMT [thread overview]
Message-ID: <178193039827.1.17959191569482999846.rpms-soci-2a18c5c0dc05@fedoraproject.org> (raw)
A new commit has been pushed.
Repo : rpms/soci
Branch : update-to-4.1.4
Commit : 2a18c5c0dc0530143dfbb7586969243b2b9a4a68
Author : Dan Čermák <dan.cermak@cgc-instruments.com>
Date : 2021-08-19T16:06:36+02:00
Stats : +7/-6 in 1 file(s)
URL : https://src.fedoraproject.org/rpms/soci/c/2a18c5c0dc0530143dfbb7586969243b2b9a4a68?branch=update-to-4.1.4
Log:
Enable running tests in %check
---
diff --git a/soci.spec b/soci.spec
index 11adf6b..6422f4b 100644
--- a/soci.spec
+++ b/soci.spec
@@ -13,6 +13,7 @@
%bcond_without postgresql
%bcond_without odbc
%bcond_with oracle
+%bcond_without tests
%global _default_oracle_dir /opt/oracle/app/oracle/product/11.1.0/db_1
%{!?_with_oracle_incdir: %define _with_oracle_incdir --with-oracle-include=%{_default_oracle_dir}/rdbms/public}
@@ -32,7 +33,7 @@ Source0: %{url}/archive/%{ups_ver}.tar.gz#/%{name}-%{version}.tar.gz
# Upstream issue: https://github.com/SOCI/soci/pull/815
#Patch0: soci-werror.patch
# Works around a false positive -Wuninitialized error exposed by LTO
-Patch1: soci-uninit.patch
+Patch1: soci-uninit.patch
# Works around the compilation error with gcc 10
Patch2: soci-test-signal-contexpr.patch
@@ -208,11 +209,7 @@ dos2unix AUTHORS README ChangeLog COPYING NEWS
# Support for building tests.
%define soci_testflags -DBUILD_TESTS="NONE"
%if %{with tests}
- %define soci_testflags -DSOCI_TEST=ON \
- -DSOCI_TEST_EMPTY_CONNSTR="dummy" \
- -DSOCI_TEST_SQLITE3_CONNSTR="test.db" \
- -DSOCI_TEST_POSTGRESQL_CONNSTR:STRING="dbname=soci_test" \
- -DSOCI_TEST_MYSQL_CONNSTR:STRING="db=soci_test user=mloskot password=pantera"
+%define soci_testflags -DSOCI_TEST=ON -DSOCI_TEST_EMPTY_CONNSTR="dummy" -DSOCI_TEST_SQLITE3_CONNSTR="test.db" -DSOCI_TEST_POSTGRESQL_CONNSTR:STRING="dbname=soci_test" -DSOCI_TEST_MYSQL_CONNSTR:STRING="db=soci_test user=mloskot password=pantera"
%endif
%cmake \
@@ -236,6 +233,10 @@ mv -f %{buildroot}%{_libdir}/cmake %{buildroot}%{_datadir}/%{name}/CMake
# Remove unpackaged files from the buildroot
rm -f %{buildroot}%{_libdir}/*.a
+%if %{with tests}
+%check
+%{ctest --exclude-regex 'soci_(odbc|mysql|postgresql)_test'}
+%endif
%files
reply other threads:[~2026-06-20 4:39 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=178193039827.1.17959191569482999846.rpms-soci-2a18c5c0dc05@fedoraproject.org \
--to=git-commits@fedoraproject.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox