Skip to content

Commit

Permalink
Starting .spec file for integration tests #63
Browse files Browse the repository at this point in the history
  • Loading branch information
koomie committed Feb 28, 2017
1 parent 515b68c commit b9f1b59
Showing 1 changed file with 66 additions and 0 deletions.
66 changes: 66 additions & 0 deletions components/admin/tests/SPECS/tests.spec
Original file line number Diff line number Diff line change
@@ -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}




0 comments on commit b9f1b59

Please sign in to comment.