diff --git a/components/admin/tests/SPECS/tests.spec b/components/admin/tests/SPECS/tests.spec new file mode 100644 index 0000000000..604676637f --- /dev/null +++ b/components/admin/tests/SPECS/tests.spec @@ -0,0 +1,66 @@ +#----------------------------------------------------------------------------bh- +# This RPM .spec file is part of the OpenHPC project. +# +# It may have been modified from the default version supplied by the underlying +# release package (if available) in order to apply patches, perform customized +# build/install configurations, and supply additional files to support +# desired integration conventions. +# +#----------------------------------------------------------------------------eh- + +%include %{_sourcedir}/OHPC_macros +%{!?PROJ_DELIM: %global PROJ_DELIM -ohpc} + +Summary: Integration test stuie for OpenHPC +Name: tests%{PROJ_DELIM} +Version: 1.3 +Release: 1 +License: Apache-2.0 +Group: %{PROJ_NAME}/admin +BuildArch: noarch +URL: https://github.com/openhpc/ohpc/tests +Source0: tests-ohpc.tar +Source1: OHPC_macros + +BuildRequires: autoconf%{PROJ_DELIM} +BuildRequires: automake%{PROJ_DELIM} + +BuildRoot: %{_tmppath}/%{pname}-%{version}-%{release}-root +DocDir: %{OHPC_PUB}/doc/contrib + +%define testuser ohpctest + +%description + +This package provides a suite of integration tests used by the OpenHPC project +during continuous integration. Most components can be tested individually, but +a default configuration is setup to enable collective testing. The test suite +is made available under an 'ohpctest' user account. + +%prep +%setup -n tests-ohpc + +%build + +./bootstrap +./configure --prefix=/home/%{testuser} + +%install +make install DESTDIR=$RPM_BUILD_ROOT + + +%clean +rm -rf $RPM_BUILD_ROOT + +%post + +%postun + + +%files +%defattr(-,root,root,-) +%dir /home/%{testuser} + + + +