diff --git a/.gitignore b/.gitignore index a439f23..2b73505 100644 --- a/.gitignore +++ b/.gitignore @@ -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 diff --git a/sources b/sources index 9abec0d..fe2c4f7 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (utest.h-b9c006f31b266408bd53079ce7ad57939a237d9a.tar.gz) = 7e91354a58407d26fbd077273c84ba8370c87916ed586f82dfc0852c3f49290f011706c240724904d25d6baa72ca87d96330e04877ab5534591dee1a61ef0bb6 +SHA512 (utest.h-3484d22ea2e9cb80ca87d556c49924e158035ae4.tar.gz) = f5360463bf13b05ceda315cfe1c582abf048d56c3960de3b445afba96e82988d747389855c92d88c2cbcbf8f81384d189cfbb64ad845df8230175984cf41808a diff --git a/utest.spec b/utest.spec index 512f6b7..5ee6673 100644 --- a/utest.spec +++ b/utest.spec @@ -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