File ocfs2-test.spec of Package ocfs2

# spec file for package ocfs2test (Version 1.0)
# Copyright (c) 2009 SUSE LINUX Products GmbH,Nuernberg,Germany.
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners,unless otherwise agreed
# upon.The license for this file,and modifications and additions to the
# file,is the same license as for the pristine package itself(unless the 
# license for the pristine package is not an Open Source License,in which
# case the license is the MIT License).An "Open Source License" is a 
# license that conforms to the Open Source Definition(Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via

BuildRequires: openmpi openmpi-devel libaio libaio-devel pkg-config libcom_err libcom_err-devel ocfs2-tools ocfs2-tools-devel python >= 2.3  
Name:   ocfs2-test
License: GNU GPL 
Summary: A simple MPI-based testing enviroment to stress and validate OCFS2 
Version: 1.0.2
Release: 1
Autoreqprov: on
Source0: %{name}-%{version}.tar.bz2
Source1: %{name}-%{version}-rpmlintrc
Source2: ocfs2-tools-devel-1.4.1-44.1.i586.rpm
Patch: fix_no-return-in-nonvoid-function.patch
#For subpackage creation
BuildRoot: %{_tmppath}/%{name}-build
Group: SUSE internal

The cluster aware tests are use LAM/MPI for synchronization acreoss nodes.Ensureyou have LAM/MPI installed on all nodes of the cluster and on the ocfs2-test build system.
Nodes where ocfs2-test will be executed need to have ssh equivalence set.One should be able to ssh to any node,including the local node,using ssh and not have to enter any password.For safety reason,it is recommended not to use the root to run the tests.Although,there are some tests that will run as root,they are single node and don't need ssh equivalence set for it to run. 

#%package ctcs-glue
#Summary:  The let-pts-be-run-via-ctcs glue
#Group:    SUSE internal
#Autoreqprov: on
#Requires:    ctcs2 >= 0.1.6
#Requires:    phoronix-test-suite = %{version}

#%description ctcs-glue
#This package contains the glue for phoronix-test-suite into the ctcs testing framework.

%setup -q
%patch -p1
rpm -ivh $RPM_SOURCE_DIR/ocfs2-tools-devel-1.4.1-44.1.i586.rpm


make install DESTDIR=$RPM_BUILD_ROOT/usr/lib/ocfs2test

#mkdir -p $RPM_BUILD_ROOT/usr/lib/ctcs2/tools
#mkdir -p $RPM_BUILD_ROOT/usr/lib/ctcs2/tcf
#mkdir -p $RPM_BUILD_ROOT/usr/lib/ctcs2/bin/xm-test
#ln -s ../../../../bin/phoronix-test-suite $RPM_BUILD_ROOT/usr/lib/ctcs2/bin/phoronix-test-suite

# now fix file permissions
# no suid root
# no world writable
#find $RPM_BUILD_ROOT -type f -print0 |xargs -0 chmod -c o-w,u-s


#%files ctcs-glue


openSUSE Build Service is sponsored by