summaryrefslogtreecommitdiffstats
path: root/glusterfs.spec.in
diff options
context:
space:
mode:
authorAnand Avati <avati@redhat.com>2013-09-15 19:56:25 -0700
committerAnand Avati <avati@redhat.com>2013-09-20 21:12:39 -0700
commit7f608415063f04a1035bfe7d0f8ddfb9f0215e5c (patch)
tree547deabfc9053525165b1d9719640f715aac0e24 /glusterfs.spec.in
parent2e4064fe08e929fb4db30ae63c5cd404ab2d8b20 (diff)
tests: take regression tests out of autotools
make run-tests.sh "location independent" and replace 'make install' with cpio in glusterfs.spec.in Change-Id: I140473c7f558e1e0af93a863b79098ced516a76b BUG: 764966 Signed-off-by: Anand Avati <avati@redhat.com> Reviewed-on: http://review.gluster.org/5986 Reviewed-by: Harshavardhana <harsha@harshavardhana.net> Tested-by: Gluster Build System <jenkins@build.gluster.com>
Diffstat (limited to 'glusterfs.spec.in')
-rw-r--r--glusterfs.spec.in6
1 files changed, 4 insertions, 2 deletions
diff --git a/glusterfs.spec.in b/glusterfs.spec.in
index 39fc23aa645..96341adf9ec 100644
--- a/glusterfs.spec.in
+++ b/glusterfs.spec.in
@@ -588,6 +588,8 @@ touch %{buildroot}%{_sharedstatedir}/glusterd/options
touch %{buildroot}%{_sharedstatedir}/glusterd/nfs/nfs-server.vol
touch %{buildroot}%{_sharedstatedir}/glusterd/nfs/run/nfs.pid
+find ./tests ./run-tests.sh -type f | cpio -pd %{buildroot}%{_prefix}/share/glusterfs
+
%clean
%{__rm} -rf %{buildroot}
@@ -790,8 +792,8 @@ fi
%files regression-tests
%defattr(-,root,root,-)
-%{_datarootdir}/glusterfs/*
-%exclude %{_datarootdir}/glusterfs/tests/basic/rpm.t
+%{_prefix}/share/glusterfs/*
+%exclude %{_prefix}/share/glusterfs/tests/basic/rpm.t
%post server
# Legacy server