8
0
forked from pool/testsweeper

Accepting request 1179582 from home:badshah400:lapack2023

A C++ testing framework for parameter sweeps.

Needed by new package blaspp (currently incubating in home:badshah400:lapack2023, but to be submitted to science and thence to oS:F) to run its tests.

OBS-URL: https://build.opensuse.org/request/show/1179582
OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/testsweeper?expand=0&rev=1
This commit is contained in:
2024-06-11 08:00:42 +00:00
committed by Git OBS Bridge
commit 71ea624c7a
6 changed files with 144 additions and 0 deletions

23
.gitattributes vendored Normal file
View File

@@ -0,0 +1,23 @@
## Default LFS
*.7z filter=lfs diff=lfs merge=lfs -text
*.bsp filter=lfs diff=lfs merge=lfs -text
*.bz2 filter=lfs diff=lfs merge=lfs -text
*.gem filter=lfs diff=lfs merge=lfs -text
*.gz filter=lfs diff=lfs merge=lfs -text
*.jar filter=lfs diff=lfs merge=lfs -text
*.lz filter=lfs diff=lfs merge=lfs -text
*.lzma filter=lfs diff=lfs merge=lfs -text
*.obscpio filter=lfs diff=lfs merge=lfs -text
*.oxt filter=lfs diff=lfs merge=lfs -text
*.pdf filter=lfs diff=lfs merge=lfs -text
*.png filter=lfs diff=lfs merge=lfs -text
*.rpm filter=lfs diff=lfs merge=lfs -text
*.tbz filter=lfs diff=lfs merge=lfs -text
*.tbz2 filter=lfs diff=lfs merge=lfs -text
*.tgz filter=lfs diff=lfs merge=lfs -text
*.ttf filter=lfs diff=lfs merge=lfs -text
*.txz filter=lfs diff=lfs merge=lfs -text
*.whl filter=lfs diff=lfs merge=lfs -text
*.xz filter=lfs diff=lfs merge=lfs -text
*.zip filter=lfs diff=lfs merge=lfs -text
*.zst filter=lfs diff=lfs merge=lfs -text

1
.gitignore vendored Normal file
View File

@@ -0,0 +1 @@
.osc

3
_multibuild Normal file
View File

@@ -0,0 +1,3 @@
<multibuild>
<package>test</package>
</multibuild>

View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:e200becbf90ce1934f239f391a3c89f7289a48dd6c66fcb3ced7b0caab7b014e
size 53748

4
testsweeper.changes Normal file
View File

@@ -0,0 +1,4 @@
-------------------------------------------------------------------
Sun Jun 9 17:11:26 UTC 2024 - Atri Bhattacharya <badshah400@gmail.com>
- Initial package.

110
testsweeper.spec Normal file
View File

@@ -0,0 +1,110 @@
#
# spec file for package testsweeper
#
# Copyright (c) 2024 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/
#
%global flavor @BUILD_FLAVOR@%{nil}
%global pname testsweeper
%if "%{flavor}" == "test"
%define psuffix -test
%bcond_without test
%else
%define psuffix %{nil}
%bcond_with test
%endif
%define __builder ninja
Name: testsweeper
Version: 2024.05.31
Release: 0
Summary: C++ testing framework for parameter sweeps
License: BSD-3-Clause
URL: https://github.com/icl-utk-edu/testsweeper
Source: %{url}/releases/download/v%{version}/testsweeper-%{version}.tar.gz
BuildRequires: cmake >= 3.15
BuildRequires: gcc-c++
BuildRequires: ninja
%if %{with test}
BuildRequires: python3
BuildRequires: cmake(lapack)
BuildRequires: cmake(cblas)
BuildRequires: cmake(testsweeper) = %{version}
%endif
%description
TestSweeper is a C++ testing framework for parameter sweeps. It handles parsing
command line options, iterating over the test space, and printing results. This
simplifies test functions by allowing them to concentrate on setting up and
solving one problem at a time.
%package -n lib%{name}1
Summary: Shared library for testsweeper, a C++ testing framework for parameter sweeps
%description -n lib%{name}1
TestSweeper is a C++ testing framework for parameter sweeps. It handles parsing
command line options, iterating over the test space, and printing results. This
simplifies test functions by allowing them to concentrate on setting up and
solving one problem at a time.
This package provides the share library for %{name}.
%package -n %{name}-devel
Summary: Headers and sources for developing apps against testsweeper
Requires: lib%{name}1 = %{version}
%description -n %{name}-devel
TestSweeper is a C++ testing framework for parameter sweeps. It handles parsing
command line options, iterating over the test space, and printing results. This
simplifies test functions by allowing them to concentrate on setting up and
solving one problem at a time.
This package provides the headers and sources needed to develop apps against
testsweeper.
%prep
%autosetup -p1
%build
%cmake -Dcolor=OFF \
-Duse_openmp=ON \
-Dbuild_tests=%{?with_test:ON}%{!?with_test:OFF} \
%{nil}
%cmake_build
%install
%if %{without test}
%cmake_install
%ldconfig_scriptlets -n lib%{name}1
%files -n lib%{name}1
%license LICENSE
%{_libdir}/lib%{name}.so.1*
%files -n %{name}-devel
%license LICENSE
%{_libdir}/lib%{name}.so
%{_libdir}/cmake/testsweeper/
%{_includedir}/testsweeper.hh
%else
%check
pushd %{__builddir}/test
python3 ./run_tests.py
popd
%endif
%changelog