kernel-source/kernel-obs-qa.spec
Stephan Kulow df9ed38bf7 Accepting request 243096 from devel:openSUSE:Factory:kernel
- Revert "config: disable USB_UAS (bnc#888069)."
  This reverts commit f509af67eb3a98665e0134eaadb91e93420d9e04. The uas
  driver works fine since kernel v3.15, the problem was that the
  module was blacklisted so it would not load when needed.
- commit 9b5a5f0

- Update Xen patches to 3.16-rc7 and c/s 1263.
- netbk: Don't destroy the netdev until the vif is shut down
  (bnc#881008).
- commit a2720a7

OBS-URL: https://build.opensuse.org/request/show/243096
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/kernel-source?expand=0&rev=243
2014-08-03 05:50:31 +00:00

81 lines
2.2 KiB
RPMSpec

#
# spec file for package kernel-obs-qa
#
# Copyright (c) 2014 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/
#
# needsrootforbuild
%define patchversion 3.16.0-rc7
%define variant %{nil}
%include %_sourcedir/kernel-spec-macros
Name: kernel-obs-qa
BuildRequires: kernel-default
# kernel-obs-build must be also configured as VMinstall, but is required
# here as well to avoid that qa and build package build parallel
BuildRequires: kernel-obs-build
BuildRequires: modutils
ExclusiveArch: aarch64 armv6hl armv7hl %ix86 ppc ppc64 ppc64le s390x x86_64
%if 0%{?suse_version} < 1200
# for SLE 11
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%endif
Summary: Basic QA tests for the kernel
License: GPL-2.0
Group: SLES
Version: 3.16.rc7
%if 0%{?is_kotd}
Release: <RELEASE>.g9b5a5f0
%else
Release: 0
%endif
%description
This package is using the kernel compiled within Open Build Service(OBS)
projects and runs basic tests.
%prep
%build
%check
# More tests are comming, currently the main test is the existens of
# this spec file. It does trigger a build within OBS VM which is using
# the kernel of the same project.
# test suites should be packaged in other packages, but build required
# and called here.
if ! /sbin/modprobe loop; then
echo "ERROR: Unable to load the kernel loop module."
echo "Usually the wrong kernel is running, this is atm"
cat /proc/version
echo "Installed kernel modules are:"
rpm -q kernel-default
exit 1
fi
%install
mkdir -p %{buildroot}/usr/share/%name
touch %{buildroot}/usr/share/%name/logfile
%files
%defattr(-,root,root)
/usr/share/%name
%changelog