b=13908
Re-enable building lustre-client-tests, so oslo can find tests for all clients,
especially clients we don't build a server for like ia64.
Tested with "make rpms"
This package has RPM dependencies appropriate for RHEL, RHL, and FC
systems.
This package has RPM dependencies appropriate for RHEL, RHL, and FC
systems.
%package tests
Summary: Lustre testing framework
Group: Development/Kernel
%package tests
Summary: Lustre testing framework
Group: Development/Kernel
%description tests
This package contains a set of test binaries and scripts that are intended
to be used by the Lustre testing framework.
%description tests
This package contains a set of test binaries and scripts that are intended
to be used by the Lustre testing framework.
%prep
%setup -qn lustre-%{version}
%prep
%setup -qn lustre-%{version}
# Remove ldiskfs module(s) - they are packaged by the ldiskfs .spec.
rm -rf $RPM_BUILD_ROOT/lib/modules/%{kversion}/kernel/fs/lustre-ldiskfs
# Remove ldiskfs module(s) - they are packaged by the ldiskfs .spec.
rm -rf $RPM_BUILD_ROOT/lib/modules/%{kversion}/kernel/fs/lustre-ldiskfs
-%if %{is_client}
-# remove the tests that were installed
-rm -rf $RPM_BUILD_ROOT%{_libdir}/lustre/tests \
- $RPM_BUILD_ROOT%{_libdir}/lustre/liblustre/tests
-%else
# hack to include the llog_test module in lustre-tests
llog_base=$RPM_BUILD_DIR/lustre-%{version}/lustre/obdclass/llog_test
if [ -e ${llog_base}.ko ]; then
# hack to include the llog_test module in lustre-tests
llog_base=$RPM_BUILD_DIR/lustre-%{version}/lustre/obdclass/llog_test
if [ -e ${llog_base}.ko ]; then
ln -s $RPM_BUILD_ROOT/usr/src lustre-source
make distdir distdir=lustre-source/lustre-%{version}
chmod -R go-w lustre-source/lustre-%{version}
ln -s $RPM_BUILD_ROOT/usr/src lustre-source
make distdir distdir=lustre-source/lustre-%{version}
chmod -R go-w lustre-source/lustre-%{version}
cat >lustre.files <<EOF
%attr(-, root, root) /sbin/mount.lustre
cat >lustre.files <<EOF
%attr(-, root, root) /sbin/mount.lustre
# %files deps-sles
# %files deps-rhel
# %files deps-sles
# %files deps-rhel
%files tests -f lustre-tests.files
%files tests -f lustre-tests.files
%post modules
if [ -f /boot/System.map-%{kversion} ]; then
%post modules
if [ -f /boot/System.map-%{kversion} ]; then
depmod -ae %{kversion} || exit 0
fi
depmod -ae %{kversion} || exit 0
fi
%post tests
if [ -f /boot/System.map-%{kversion} ]; then
depmod -ae -F /boot/System.map-%{kversion} %{kversion} || exit 0
%post tests
if [ -f /boot/System.map-%{kversion} ]; then
depmod -ae -F /boot/System.map-%{kversion} %{kversion} || exit 0
else
depmod -ae %{kversion} || exit 0
fi
else
depmod -ae %{kversion} || exit 0
fi
%clean
rm -rf $RPM_BUILD_ROOT
%clean
rm -rf $RPM_BUILD_ROOT