File autotest.spec of Package autotest
#
# spec file for package autotest (Version 0.1.1686)
#
# 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 http://bugs.opensuse.org/
#
# norootforbuild
Name: autotest
License: GPL v2 only
Group: Development/Tools/Other
Requires: kernel-source gcc make python readline-devel postgresql postgresql-devel
AutoReqProv: on
Summary: kernel test suite
Url: http://test.kernel.org/autotest
Version: 0.1.1686
Release: 27
Source0: %{name}-%{version}.tar.bz2
Source1: ctcstools-%{version}.tar.bz2
Patch0: set_dir_abuild.patch
Patch1: kernelbuild.patch
Patch2: sparse.patch
Patch3: disktest.patch
#Patch4: pgsql.patch
Patch5: disktest_freespace.patch
Patch6: get_blktrace.patch
Patch7: python-universal.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
Autotest with the packed tests/suites is used for kernel testing. This
harness especially is used for testing the mainline kernel.
Authors:
--------
Various people from test.kernel.org
%package ctcs-glue
License: GPL v2 only
Summary: kernel test suite
Group: Development/Tools/Other
AutoReqProv: on
Requires: ctcs2 >= 0.1.6
Requires: autotest = %{version}
%description ctcs-glue
Autotest with the packed tests/suites is used for kernel testing. This
harness especially is used for testing the mainline kernel.
Authors:
--------
Various people from test.kernel.org
%prep
%setup -a1
%patch0
%patch1
%patch2
%patch3
#%patch4
%patch5
%patch6
%patch7
%build
%install
mkdir -p $RPM_BUILD_ROOT/usr/lib/autotest
mkdir -p $RPM_BUILD_ROOT/usr/lib/ctcs2/tools
mkdir -p $RPM_BUILD_ROOT/usr/lib/ctcs2/config/autotest
mkdir -p $RPM_BUILD_ROOT/usr/lib/ctcs2/tcf
mkdir -p $RPM_BUILD_ROOT/usr/lib/ctcs2/bin/autotest
cp -a bin common_lib deps LICENSE mnt profilers samples setup_modules.py tests tools $RPM_BUILD_ROOT/usr/lib/autotest
find $RPM_BUILD_ROOT/usr/lib/autotest -name "*orig" -exec rm {} \;
cp ctcstools/autotest-run $RPM_BUILD_ROOT/usr/lib/ctcs2/tools
cp ctcstools/*.tcf $RPM_BUILD_ROOT/usr/lib/ctcs2/tcf
%files
%defattr(-,root,root)
/usr/lib/autotest
#%doc README
%files ctcs-glue
%defattr(-,root,root)
/usr/lib/ctcs2
%clean
rm -rf $RPM_BUILD_ROOT
%changelog
* Mon Feb 09 2009 yxu@suse.de
- turned off cpu_hotplug test, bnc#386714
* Mon Jan 19 2009 yxu@suse.de
- truncate autotest_quick.tcf
- fix typo in autotest.tcf
* Thu Oct 09 2008 yxu@suse.de
- fix for bnc #430680
- included "setup_modules.py" in the list of files to be installed
* Tue Jun 17 2008 pkirsch@suse.de
- changed every python2.4 call to generic python, to be
more universal and bypass build constraints
* Tue Jun 17 2008 pkirsch@suse.de
- switched to mainline svn version 1686
- edited nearly all patches, due to changed API
- some test suites still does not work out of the box
* Tue May 06 2008 yxu@suse.de
- added autotest-cpu_hotplug tcf file
- renamed the old autotest-cpu_hotplug tcf file to autotest-cyclictest
according to its content (autotest-cyclictest test)
* Wed Mar 12 2008 yxu@suse.de
- build the package for some more distros: e.g. sles9, sles10
* Fri Feb 15 2008 pkirsch@suse.de
- added common_lib in spec_file, due to autotest mainline changes
* Mon Jan 28 2008 pkirsch@suse.de
- updated to svn 1208 from mainline
- added get_blktrace.patch
* Fri Oct 12 2007 pkirsch@suse.de
- corrected disktest.py to use diskfree for used diskspace
* Fri Sep 14 2007 pkirsch@suse.de
- enabled posgresql testsuite
* Tue Sep 11 2007 pkirsch@suse.de
- corrected kernelbuild and sparse testcases to run with
SUSE
* Tue Sep 11 2007 pkirsch@suse.de
- set all working directorys to /abuild
* Mon Aug 27 2007 pkirsch@suse.de
- correct max run time of tests to 1d
* Fri Jul 13 2007 pkirsch@suse.de
- initial package