Compare commits

..

6 commits

Author SHA1 Message Date
Benjamin A. Beasley
bdb315a620 Update to 0^20260822.3484d22 2026-08-22 08:50:17 +01:00
Benjamin A. Beasley
3a915ca994 Update to 0^20260818.b6230bc 2026-08-18 21:21:57 +01:00
Benjamin A. Beasley
29cf5ee6b9 Update to 0^20260620.1f1f6c2 2026-07-21 06:33:43 +01:00
Fedora Release Engineering
46400703ed Rebuilt for https://fedoraproject.org/wiki/Fedora_45_Mass_Rebuild 2026-07-17 08:18:00 +00:00
Benjamin A. Beasley
4050b6e3e9 Update to 0^20260602.aca9d89, with ctest-based testing 2026-06-02 11:35:53 +01:00
Benjamin A. Beasley
a72131bf14 Use various long options 2026-05-19 22:30:33 +01:00
3 changed files with 17 additions and 14 deletions

4
.gitignore vendored
View file

@ -1,3 +1,7 @@
/utest.h-fb622dc480a56cc53ac9562a4436281bef91c989.tar.gz
/utest.h-c08902bf53126c02bf320529e15306c7ddb6514e.tar.gz
/utest.h-b9c006f31b266408bd53079ce7ad57939a237d9a.tar.gz
/utest.h-aca9d89481e13f583ce35a715be286c89c9e0161.tar.gz
/utest.h-1f1f6c2efc893eed31323caf3469dfe603e85243.tar.gz
/utest.h-b6230bc831f17e6c677daca8bd19894375a7c1b0.tar.gz
/utest.h-3484d22ea2e9cb80ca87d556c49924e158035ae4.tar.gz

View file

@ -1 +1 @@
SHA512 (utest.h-b9c006f31b266408bd53079ce7ad57939a237d9a.tar.gz) = 7e91354a58407d26fbd077273c84ba8370c87916ed586f82dfc0852c3f49290f011706c240724904d25d6baa72ca87d96330e04877ab5534591dee1a61ef0bb6
SHA512 (utest.h-3484d22ea2e9cb80ca87d556c49924e158035ae4.tar.gz) = f5360463bf13b05ceda315cfe1c582abf048d56c3960de3b445afba96e82988d747389855c92d88c2cbcbf8f81384d189cfbb64ad845df8230175984cf41808a

View file

@ -1,5 +1,5 @@
%global commit b9c006f31b266408bd53079ce7ad57939a237d9a
%global snapdate 20260309
%global commit 3484d22ea2e9cb80ca87d556c49924e158035ae4
%global snapdate 20260822
Name: utest
Version: 0^%{snapdate}.%{sub %{commit} 1 7}
@ -11,9 +11,14 @@ URL: https://github.com/sheredom/utest.h
Source: %{url}/archive/%{commit}/utest.h-%{commit}.tar.gz
# For tests:
BuildRequires: cmake
BuildRequires: gcc
BuildRequires: gcc-c++
BuildRequires: cmake
# The file test/subprocess.h is a vendored copy of
# https://github.com/sheredom/subprocess.h, but it is used only for testing and
# does not contribute to the binary RPMs, so we do not treat it as a bundled
# dependency.
# No compiled binaries are installed, so this would be empty.
%global debug_package %{nil}
@ -42,7 +47,7 @@ that use %{name}.
%autosetup -n utest.h-%{commit}
# -Werror is too strict for distribution packaging:
sed -r -i 's/-Werror//' test/CMakeLists.txt
sed --regexp-extended --in-place 's/-Werror//' test/CMakeLists.txt
%conf
@ -56,19 +61,13 @@ cd test
%install
install -t '%{buildroot}%{_includedir}' -D -p -m 0644 utest.h
install -D --preserve-timestamps --mode=0644 \
--target='%{buildroot}%{_includedir}' utest.h
%check
cd test
# Note that utest_cmdline.filter_with_list only works if the current working
# directory contains the test executable.
cd %{_vpath_builddir}
for testbin in utest_test*
do
printf '\n==== %s ====\n\n' "${testbin}" 1>&2
"./${testbin}"
done
%ctest
%files devel