public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/soci] update-to-4.1.4: Enable running tests in %check
@ 2026-06-20  4:39 
  0 siblings, 0 replies; only message in thread
From:  @ 2026-06-20  4:39 UTC (permalink / raw)
  To: git-commits

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

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2026-06-20  4:39 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-06-20  4:39 [rpms/soci] update-to-4.1.4: Enable running tests in %check 

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox