commit 71ea624c7a367c9d1f16e9cefb2d96de1b7c507013d4409899aa1e3aa237bd2b Author: Dirk Mueller Date: Tue Jun 11 08:00:42 2024 +0000 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 diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -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 diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/_multibuild b/_multibuild new file mode 100644 index 0000000..fcc7b97 --- /dev/null +++ b/_multibuild @@ -0,0 +1,3 @@ + + test + diff --git a/testsweeper-2024.05.31.tar.gz b/testsweeper-2024.05.31.tar.gz new file mode 100644 index 0000000..8b7b52e --- /dev/null +++ b/testsweeper-2024.05.31.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:e200becbf90ce1934f239f391a3c89f7289a48dd6c66fcb3ced7b0caab7b014e +size 53748 diff --git a/testsweeper.changes b/testsweeper.changes new file mode 100644 index 0000000..39839cb --- /dev/null +++ b/testsweeper.changes @@ -0,0 +1,4 @@ +------------------------------------------------------------------- +Sun Jun 9 17:11:26 UTC 2024 - Atri Bhattacharya + +- Initial package. diff --git a/testsweeper.spec b/testsweeper.spec new file mode 100644 index 0000000..9dd362b --- /dev/null +++ b/testsweeper.spec @@ -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