From 7f608415063f04a1035bfe7d0f8ddfb9f0215e5c Mon Sep 17 00:00:00 2001 From: Anand Avati Date: Sun, 15 Sep 2013 19:56:25 -0700 Subject: 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 Reviewed-on: http://review.gluster.org/5986 Reviewed-by: Harshavardhana Tested-by: Gluster Build System --- glusterfs.spec.in | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'glusterfs.spec.in') diff --git a/glusterfs.spec.in b/glusterfs.spec.in index 39fc23aa6..96341adf9 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 -- cgit