3e1552686e
- Update to 2.4.9 * Visual Studio's Test Explorer and Resharper C++'s Unit Test Explorer don't see Doctest's tests * How to get detailed information about testcases failing due to thrown exceptions? * Add clang-tidy integration and fix all warnings * Avoid static init problem in insufficient_procs() (MPI) * Use MPI_Isend in MpiConsoleReporter to avoid deadlock * Deadlock in MpiConsoleReporter when root rank fails assert * Cleanup of DOCTEST_DO_BINARY_EXPRESSION_COMPARISON. Fixes * Comparison with implicit cast from non-const value can't be decomposed * Local structured bindings cannot be used in CHECK macros (since 2.4.8) * Add tests for DOCTEST_CONFIG_USE_STD_HEADERS * Stringification amendments * Clean up defines a bit; Implement * New doctest version gives me an error: reference to local binding '...' declared in enclosing function 'DOCTEST_ANON_FUNC_16' * The tutorial example does not work (linker errors) with clang 10 * Implementing `DOCTEST_ASSERT_IMPLEMENT_1` as lambda prevents testing structured bindings * re-re-remove overly restrictive minimum version of meson * Fix move-only types failing to decompose correctly * Weird compilation error when using CHECK_THROWS/CHECK_THROWS_AS on Visual Studio 2019 with no exceptions * Error triggered by comparing typeid with new doctest 2.4.8 * Improve Mac PowerPC support * issue introduced in 2.4.7 * Decompose expressions containing the spaceship operator * added nolint for cert-err58 * Fix properties not being passed in doctest_discover_tests * Config no multithreading * wasm\*-support? * Fix MPI extension to work with no parallel tests * string comparison leads to gotting stuck * doctest_discover_tests no longer sets ENVIRONMENT variables for discovered tests. OBS-URL: https://build.opensuse.org/request/show/1035102 OBS-URL: https://build.opensuse.org/package/show/devel:tools/doctest?expand=0&rev=17
75 lines
1.9 KiB
RPMSpec
75 lines
1.9 KiB
RPMSpec
#
|
|
# spec file for package doctest
|
|
#
|
|
# Copyright (c) 2022 SUSE LLC
|
|
#
|
|
# All modifications and additions to the file contributed by third parties
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
# upon. The license for this file, and modifications and additions to the
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
# license for the pristine package is not an Open Source License, in which
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
# published by the Open Source Initiative.
|
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
|
#
|
|
|
|
|
|
Name: doctest
|
|
Version: 2.4.9
|
|
Release: 0
|
|
Summary: Single-header testing framework
|
|
License: MIT
|
|
URL: https://github.com/doctest/doctest
|
|
Source0: https://github.com/doctest/doctest/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz
|
|
BuildRequires: cmake
|
|
BuildRequires: gcc-c++
|
|
BuildRequires: pkgconfig
|
|
|
|
%description
|
|
C++98/C++11 single-header testing framework for unit tests and TDD.
|
|
|
|
%package devel
|
|
Summary: Single-header testing framework
|
|
|
|
%description devel
|
|
C++98/C++11 single-header testing framework for unit tests and TDD.
|
|
|
|
%prep
|
|
%autosetup -p1
|
|
|
|
%build
|
|
# fix cmake module path
|
|
sed -i 's|lib/cmake|%{_lib}/cmake|g' CMakeLists.txt
|
|
|
|
%cmake
|
|
%cmake_build
|
|
|
|
%install
|
|
%cmake_install
|
|
|
|
# creates support file for pkg-config
|
|
mkdir -p %{buildroot}/%{_libdir}/pkgconfig
|
|
tee %{buildroot}/%{_libdir}/pkgconfig/doctest.pc << "EOF"
|
|
prefix=%{_prefix}
|
|
exec_prefix=${prefix}
|
|
libdir=${exec_prefix}/%{_lib}
|
|
includedir=${prefix}/include
|
|
|
|
Name: doctest
|
|
Description: Single-header testing framework
|
|
Version: %{version}
|
|
Libs:
|
|
Cflags: -I${includedir}/doctest
|
|
EOF
|
|
|
|
%files devel
|
|
%doc CHANGELOG.md README.md
|
|
%license LICENSE.txt
|
|
%{_includedir}/doctest
|
|
%{_libdir}/cmake/doctest
|
|
%{_libdir}/pkgconfig/doctest.pc
|
|
|
|
%changelog
|