Compare commits

..

No commits in common. "rawhide" and "f42" have entirely different histories.

3 changed files with 14 additions and 17 deletions

4
.gitignore vendored
View file

@ -1,7 +1,3 @@
/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-3484d22ea2e9cb80ca87d556c49924e158035ae4.tar.gz) = f5360463bf13b05ceda315cfe1c582abf048d56c3960de3b445afba96e82988d747389855c92d88c2cbcbf8f81384d189cfbb64ad845df8230175984cf41808a
SHA512 (utest.h-b9c006f31b266408bd53079ce7ad57939a237d9a.tar.gz) = 7e91354a58407d26fbd077273c84ba8370c87916ed586f82dfc0852c3f49290f011706c240724904d25d6baa72ca87d96330e04877ab5534591dee1a61ef0bb6

View file

@ -1,5 +1,5 @@
%global commit 3484d22ea2e9cb80ca87d556c49924e158035ae4
%global snapdate 20260822
%global commit b9c006f31b266408bd53079ce7ad57939a237d9a
%global snapdate 20260309
Name: utest
Version: 0^%{snapdate}.%{sub %{commit} 1 7}
@ -11,14 +11,9 @@ 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++
# 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.
BuildRequires: cmake
# No compiled binaries are installed, so this would be empty.
%global debug_package %{nil}
@ -47,7 +42,7 @@ that use %{name}.
%autosetup -n utest.h-%{commit}
# -Werror is too strict for distribution packaging:
sed --regexp-extended --in-place 's/-Werror//' test/CMakeLists.txt
sed -r -i 's/-Werror//' test/CMakeLists.txt
%conf
@ -61,13 +56,19 @@ cd test
%install
install -D --preserve-timestamps --mode=0644 \
--target='%{buildroot}%{_includedir}' utest.h
install -t '%{buildroot}%{_includedir}' -D -p -m 0644 utest.h
%check
cd test
%ctest
# 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
%files devel