Skip to content

Commit

Permalink
working on .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 b9f1b59 commit a82984b
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions components/admin/tests/SPECS/tests.spec
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ BuildRoot: %{_tmppath}/%{pname}-%{version}-%{release}-root
DocDir: %{OHPC_PUB}/doc/contrib

%define testuser ohpctest
%define debug_package %{nil}

%description

Expand All @@ -42,12 +43,14 @@ is made available under an 'ohpctest' user account.

%build

export PATH=/opt/ohpc/pub/autotools/bin:$PATH
./bootstrap
./configure --prefix=/home/%{testuser}


%install
make install DESTDIR=$RPM_BUILD_ROOT

%{__mkdir_p} %{buildroot}/home/%{testuser}/tests
cp -a * %{buildroot}/home/%{testuser}/tests

%clean
rm -rf $RPM_BUILD_ROOT
Expand All @@ -59,7 +62,7 @@ rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root,-)
%dir /home/%{testuser}
%dir /home/%{testuser}/tests



Expand Down

0 comments on commit a82984b

Please sign in to comment.