Compare commits
No commits in common. "c8" and "c9s" have entirely different histories.
|
@ -1 +1 @@
|
|||
SOURCES/v0.314-8.22.tar.gz
|
||||
/v0.348-9.13.tar.gz
|
||||
|
|
|
@ -1 +0,0 @@
|
|||
ecd684eb8ce8b56b4d9022d2c4936d81de5a5f4e SOURCES/v0.314-8.22.tar.gz
|
|
@ -0,0 +1,6 @@
|
|||
--- !Policy
|
||||
product_versions:
|
||||
- fedora-*
|
||||
decision_context: bodhi_update_push_testing
|
||||
rules:
|
||||
- !PassingTestCaseRule {test_case_name: dist.depcheck}
|
|
@ -0,0 +1,8 @@
|
|||
# intentionally hardcoded
|
||||
addFilter(r'hardcoded-library-path in %{_prefix}/lib')
|
||||
|
||||
# we have non binary stuff, text files
|
||||
addFilter(r'only-non-binary-in-usr-lib')
|
||||
|
||||
# spelling errors
|
||||
addFilter(r'spelling-error .* en_US (pci|usb) ')
|
|
@ -1,18 +1,27 @@
|
|||
%global uprelease 8.22
|
||||
%global uprelease 9.13
|
||||
|
||||
Name: hwdata
|
||||
Summary: Hardware identification and configuration data
|
||||
Version: 0.314
|
||||
Version: 0.348
|
||||
Release: %{uprelease}%{?dist}
|
||||
License: GPLv2+
|
||||
Source: https://github.com/vcrhonek/hwdata/archive/v%{version}-%{?uprelease}.tar.gz
|
||||
URL: https://github.com/vcrhonek/hwdata
|
||||
BuildArch: noarch
|
||||
BuildRequires: make
|
||||
|
||||
%description
|
||||
hwdata contains various hardware identification and configuration data,
|
||||
such as the pci.ids and usb.ids databases.
|
||||
|
||||
%package devel
|
||||
Summary: Development files for %{name}
|
||||
Requires: %{name}%{?_isa} = %{version}-%{release}
|
||||
|
||||
%description devel
|
||||
The %{name}-devel package contains files for developing applications that use
|
||||
%{name}.
|
||||
|
||||
%prep
|
||||
%setup -q -n %{name}-%{version}-%{uprelease}
|
||||
%configure
|
||||
|
@ -21,107 +30,176 @@ such as the pci.ids and usb.ids databases.
|
|||
# nothing to build
|
||||
|
||||
%install
|
||||
rm -rf $RPM_BUILD_ROOT
|
||||
make install DESTDIR=$RPM_BUILD_ROOT libdir=%{_prefix}/lib
|
||||
%make_install libdir=%{_prefix}/lib
|
||||
|
||||
%files
|
||||
%doc LICENSE COPYING
|
||||
%license COPYING
|
||||
%doc LICENSE
|
||||
%dir %{_datadir}/%{name}
|
||||
%{_prefix}/lib/modprobe.d/dist-blacklist.conf
|
||||
%{_datadir}/%{name}/*
|
||||
|
||||
%files devel
|
||||
%{_datadir}/pkgconfig/%{name}.pc
|
||||
|
||||
%changelog
|
||||
* Mon Feb 19 2024 Vitezslav Crhonek <vcrhonek@redhat.com> - 0.314-8.22
|
||||
- Rebuild
|
||||
Related: RHEL-6946
|
||||
|
||||
* Mon Feb 19 2024 Vitezslav Crhonek <vcrhonek@redhat.com> - 0.314-8.21
|
||||
* Mon Feb 19 2024 Vitezslav Crhonek <vcrhonek@redhat.com> - 0.348-9.13
|
||||
- Update pci, usb and vendor ids
|
||||
Resolves: RHEL-6946
|
||||
Resolves: RHEL-6948
|
||||
|
||||
* Mon Dec 11 2023 Vitezslav Crhonek <vcrhonek@redhat.com> - 0.314-8.20
|
||||
* Mon Dec 11 2023 Vitezslav Crhonek <vcrhonek@redhat.com> - 0.348-9.12
|
||||
- Update pci, usb and vendor ids
|
||||
Resolves: RHEL-6945
|
||||
Resolves: RHEL-6947
|
||||
|
||||
* Mon Aug 21 2023 Vitezslav Crhonek <vcrhonek@redhat.com> - 0.314-8.19
|
||||
* Mon Aug 21 2023 Vitezslav Crhonek <vcrhonek@redhat.com> - 0.348-9.11
|
||||
- Update pci, usb and vendor ids
|
||||
Resolves: #2169697
|
||||
Resolves: #2169696
|
||||
|
||||
* Tue Jun 20 2023 Vitezslav Crhonek <vcrhonek@redhat.com> - 0.314-8.18
|
||||
- Add tests, rebuild
|
||||
Related: #2169692
|
||||
|
||||
* Mon Jun 19 2023 Vitezslav Crhonek <vcrhonek@redhat.com> - 0.314-8.17
|
||||
* Mon Jun 19 2023 Vitezslav Crhonek <vcrhonek@redhat.com> - 0.348-9.10
|
||||
- Update pci, usb and vendor ids
|
||||
Resolves: #2169692
|
||||
Resolves: #2169689
|
||||
|
||||
* Mon Feb 20 2023 Vitezslav Crhonek <vcrhonek@redhat.com> - 0.314-8.16
|
||||
* Fri Mar 10 2023 Vitezslav Crhonek <vcrhonek@redhat.com> - 0.348-9.9
|
||||
- Fix version in pkgconfig file, fix srpm-x creation
|
||||
Relased: #2176788
|
||||
|
||||
* Thu Mar 09 2023 Vitezslav Crhonek <vcrhonek@redhat.com> - 0.348-9.8
|
||||
- Provide pkgconfig file in -devel subpackage
|
||||
Resolves: #2176788
|
||||
|
||||
* Mon Feb 20 2023 Vitezslav Crhonek <vcrhonek@redhat.com> - 0.348-9.7
|
||||
- Update pci, usb and vendor ids
|
||||
Resolves: #2125564
|
||||
Resolves: #2125573
|
||||
|
||||
* Mon Dec 19 2022 Vitezslav Crhonek <vcrhonek@redhat.com> - 0.314-8.15
|
||||
* Mon Dec 19 2022 Vitezslav Crhonek <vcrhonek@redhat.com> - 0.348-9.6
|
||||
- Update pci, usb and vendor ids
|
||||
Resolves: #2125563
|
||||
Resolves: #2125571
|
||||
|
||||
* Mon Aug 22 2022 Vitezslav Crhonek <vcrhonek@redhat.com> - 0.314-8.14
|
||||
- Update pci nd vendor ids
|
||||
Resolves: #2062131
|
||||
|
||||
* Mon Jun 20 2022 Vitezslav Crhonek <vcrhonek@redhat.com> - 0.314-8.13
|
||||
- Update pci, usb and vendor ids
|
||||
Resolves: #2062129
|
||||
|
||||
* Thu Feb 17 2022 Vitezslav Crhonek <vcrhonek@redhat.com> - 0.314-8.12
|
||||
- Update pci, usb and vendor ids
|
||||
Resolves: #2005896
|
||||
|
||||
* Wed Dec 15 2021 Vitezslav Crhonek <vcrhonek@redhat.com> - 0.314-8.11
|
||||
- Update pci, usb and vendor ids
|
||||
Resolves: #2005888
|
||||
|
||||
* Mon Aug 23 2021 Vitezslav Crhonek <vcrhonek@redhat.com> - 0.314-8.10
|
||||
- Update pci, usb and vendor ids
|
||||
Resolves: #1920948
|
||||
|
||||
* Thu Jun 17 2021 Vitezslav Crhonek <vcrhonek@redhat.com> - 0.314-8.9
|
||||
- Update pci, usb and vendor ids
|
||||
Resolves: #1920943
|
||||
|
||||
* Mon Feb 08 2021 Vitezslav Crhonek <vcrhonek@redhat.com> - 0.314-8.8
|
||||
- Update pci, usb and vendor ids
|
||||
Resolves: #1877304
|
||||
|
||||
* Thu Jan 07 2021 Vitezslav Crhonek <vcrhonek@redhat.com> - 0.314-8.7
|
||||
* Mon Aug 22 2022 Vitezslav Crhonek <vcrhonek@redhat.com> - 0.348-9.5
|
||||
- Update pci and vendor ids
|
||||
Resolves: #1877303
|
||||
Resolves: #2062103
|
||||
|
||||
* Mon Sep 21 2020 Vitezslav Crhonek <vcrhonek@redhat.com> - 0.314-8.6
|
||||
* Mon Jun 20 2022 Vitezslav Crhonek <vcrhonek@redhat.com> - 0.348-9.4
|
||||
- Update pci, usb and vendor ids
|
||||
Resolves: #1820177
|
||||
Resolves: #2062101
|
||||
|
||||
* Mon Jun 08 2020 Vitezslav Crhonek <vcrhonek@redhat.com> - 0.314-8.5
|
||||
- Updated pci, usb and vendor ids
|
||||
Resolves: #1820174
|
||||
* Thu Feb 17 2022 Vitezslav Crhonek <vcrhonek@redhat.com> - 0.348-9.3
|
||||
- Update pci, usb and vendor ids
|
||||
Resolves: #2006239
|
||||
|
||||
* Wed Mar 18 2020 Vitezslav Crhonek <vcrhonek@redhat.com> - 0.314-8.4
|
||||
- Updated pci, usb and vendor ids
|
||||
Resolves: #1721921
|
||||
* Thu Dec 16 2021 Vitezslav Crhonek <vcrhonek@redhat.com> - 0.348-9.2
|
||||
- Update pci, usb and vendor ids
|
||||
Resolves: #2006236
|
||||
|
||||
* Mon Nov 25 2019 Vitezslav Crhonek <vcrhonek@redhat.com> - 0.314-8.3
|
||||
- Updated pci, usb and vendor ids
|
||||
Resolves: #1721915
|
||||
* Mon Aug 23 2021 Vitezslav Crhonek <vcrhonek@redhat.com> - 0.348-9.1
|
||||
- Update pci, usb and vendor ids
|
||||
Resolves: #1956710
|
||||
|
||||
* Tue Oct 29 2019 Vitezslav Crhonek <vcrhonek@redhat.com> - 0.314-8.2
|
||||
- Updated pci, usb and vendor ids
|
||||
Resolves: #1698963
|
||||
* Mon Jun 21 2021 Vitezslav Crhonek <vcrhonek@redhat.com> - 0.348-9.0
|
||||
- Bump release
|
||||
- Update usb and vendor ids
|
||||
|
||||
* Tue May 28 2019 Vitezslav Crhonek <vcrhonek@redhat.com> - 0.314-8.1
|
||||
- Updated pci, usb and vendor ids
|
||||
Resolves: #1698962
|
||||
* Wed Jun 02 2021 Vitezslav Crhonek <vcrhonek@redhat.com> - 0.348-1
|
||||
- Update pci, usb and vendor ids
|
||||
|
||||
* Mon Feb 25 2019 Vitezslav Crhonek <vcrhonek@redhat.com> - 0.314-8.0
|
||||
- Bumped release
|
||||
- Updated pci, usb and vendor ids
|
||||
* Mon May 03 2021 Vitezslav Crhonek <vcrhonek@redhat.com> - 0.347-1
|
||||
- Update pci and vendor ids
|
||||
|
||||
* Thu Apr 01 2021 Vitezslav Crhonek <vcrhonek@redhat.com> - 0.346-1
|
||||
- Update pci, usb and vendor ids
|
||||
|
||||
* Mon Mar 01 2021 Vitezslav Crhonek <vcrhonek@redhat.com> - 0.345-1
|
||||
- Update pci, usb and vendor ids
|
||||
|
||||
* Mon Feb 01 2021 Vitezslav Crhonek <vcrhonek@redhat.com> - 0.344-1
|
||||
- Update pci, usb and vendor ids
|
||||
|
||||
* Wed Jan 06 2021 Vitezslav Crhonek <vcrhonek@redhat.com> - 0.343-1
|
||||
- Update pci and vendor ids
|
||||
|
||||
* Tue Dec 01 2020 Vitezslav Crhonek <vcrhonek@redhat.com> - 0.342-1
|
||||
- Update pci and vendor ids
|
||||
|
||||
* Tue Nov 03 2020 Vitezslav Crhonek <vcrhonek@redhat.com> - 0.341-1
|
||||
- Update pci and vendor ids
|
||||
|
||||
* Mon Oct 05 2020 Vitezslav Crhonek <vcrhonek@redhat.com> - 0.340-1
|
||||
- Update pci and vendor ids
|
||||
|
||||
* Tue Sep 01 2020 Vitezslav Crhonek <vcrhonek@redhat.com> - 0.339-1
|
||||
- Update pci, usb and vendor ids
|
||||
|
||||
* Tue Aug 04 2020 Vitezslav Crhonek <vcrhonek@redhat.com> - 0.338-1
|
||||
- Update pci, usb and vendor ids
|
||||
|
||||
* Thu Jul 02 2020 Vitezslav Crhonek <vcrhonek@redhat.com> - 0.337-1
|
||||
- Update pci, usb and vendor ids
|
||||
|
||||
* Mon Jun 01 2020 Vitezslav Crhonek <vcrhonek@redhat.com> - 0.336-1
|
||||
- Update pci and vendor ids
|
||||
|
||||
* Mon May 04 2020 Vitezslav Crhonek <vcrhonek@redhat.com> - 0.335-1
|
||||
- Update pci and vendor ids
|
||||
|
||||
* Wed Apr 01 2020 Vitezslav Crhonek <vcrhonek@redhat.com> - 0.334-1
|
||||
- Updated pci, usb and vendor ids.
|
||||
|
||||
* Mon Mar 02 2020 Vitezslav Crhonek <vcrhonek@redhat.com> - 0.333-1
|
||||
- Updated pci, usb and vendor ids.
|
||||
|
||||
* Mon Feb 03 2020 Vitezslav Crhonek <vcrhonek@redhat.com> - 0.332-1
|
||||
- Updated pci, usb and vendor ids.
|
||||
|
||||
* Thu Jan 02 2020 Vitezslav Crhonek <vcrhonek@redhat.com> - 0.331-1
|
||||
- Updated pci, usb and vendor ids.
|
||||
|
||||
* Mon Dec 02 2019 Vitezslav Crhonek <vcrhonek@redhat.com> - 0.330-1
|
||||
- Updated pci, usb and vendor ids.
|
||||
|
||||
* Mon Nov 04 2019 Vitezslav Crhonek <vcrhonek@redhat.com> - 0.329-1
|
||||
- Updated pci, usb and vendor ids.
|
||||
|
||||
* Tue Oct 01 2019 Vitezslav Crhonek <vcrhonek@redhat.com> - 0.328-1
|
||||
- Updated pci, usb and vendor ids.
|
||||
|
||||
* Tue Sep 03 2019 Vitezslav Crhonek <vcrhonek@redhat.com> - 0.327-1
|
||||
- Updated pci, usb and vendor ids.
|
||||
|
||||
* Thu Aug 01 2019 Vitezslav Crhonek <vcrhonek@redhat.com> - 0.326-1
|
||||
- Updated pci, usb and vendor ids.
|
||||
|
||||
* Thu Jun 27 2019 Vitezslav Crhonek <vcrhonek@redhat.com> - 0.325-1
|
||||
- Updated pci, usb and vendor ids.
|
||||
|
||||
* Mon Jun 03 2019 Vitezslav Crhonek <vcrhonek@redhat.com> - 0.324-1
|
||||
- Updated pci, usb and vendor ids.
|
||||
|
||||
* Thu May 02 2019 Vitezslav Crhonek <vcrhonek@redhat.com> - 0.323-1
|
||||
- Updated pci, usb and vendor ids.
|
||||
|
||||
* Tue Apr 02 2019 Vitezslav Crhonek <vcrhonek@redhat.com> - 0.322-1
|
||||
- Updated pci, usb and vendor ids.
|
||||
|
||||
* Tue Mar 05 2019 Vitezslav Crhonek <vcrhonek@redhat.com> - 0.321-1
|
||||
- Updated pci, usb and vendor ids.
|
||||
|
||||
* Mon Feb 04 2019 Vitezslav Crhonek <vcrhonek@redhat.com> - 0.320-1
|
||||
- Updated pci, usb and vendor ids.
|
||||
|
||||
* Wed Jan 02 2019 Vitezslav Crhonek <vcrhonek@redhat.com> - 0.319-1
|
||||
- Updated pci, usb and vendor ids.
|
||||
|
||||
* Mon Dec 03 2018 Vitezslav Crhonek <vcrhonek@redhat.com> - 0.318-1
|
||||
- Updated pci, usb and vendor ids.
|
||||
|
||||
* Thu Nov 01 2018 Vitezslav Crhonek <vcrhonek@redhat.com> - 0.317-1
|
||||
- Updated pci, usb and vendor ids.
|
||||
|
||||
* Mon Oct 01 2018 Vitezslav Crhonek <vcrhonek@redhat.com> - 0.316-1
|
||||
- Updated pci, usb and vendor ids.
|
||||
|
||||
* Mon Sep 03 2018 Vitezslav Crhonek <vcrhonek@redhat.com> - 0.315-1
|
||||
- Updated pci, usb and vendor ids.
|
||||
|
||||
* Thu Aug 02 2018 Vitezslav Crhonek <vcrhonek@redhat.com> - 0.314-1
|
||||
- Updated pci, usb and vendor ids.
|
|
@ -0,0 +1 @@
|
|||
SHA512 (v0.348-9.13.tar.gz) = 30a83c92620c948bd8cd5fbddd428bde63863aa160fb5d1910074aa5c5eba8a802cb57f40a1294af94fc5cee938491a9151d8235871f2b2c580ae505c43a9aed
|
|
@ -0,0 +1,65 @@
|
|||
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
#
|
||||
# Makefile of /kernel/hwdata/Sanity/ids-files
|
||||
# Description: compares upstream ID files with our ID files
|
||||
# Author: Milos Malik <mmalik@redhat.com>
|
||||
#
|
||||
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
#
|
||||
# Copyright (c) 2009 Red Hat, Inc. All rights reserved.
|
||||
#
|
||||
# This copyrighted material is made available to anyone wishing
|
||||
# to use, modify, copy, or redistribute it subject to the terms
|
||||
# and conditions of the GNU General Public License version 2.
|
||||
#
|
||||
# This program is distributed in the hope that it will be
|
||||
# useful, but WITHOUT ANY WARRANTY; without even the implied
|
||||
# warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
|
||||
# PURPOSE. See the GNU General Public License for more details.
|
||||
#
|
||||
# You should have received a copy of the GNU General Public
|
||||
# License along with this program; if not, write to the Free
|
||||
# Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
|
||||
# Boston, MA 02110-1301, USA.
|
||||
#
|
||||
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
|
||||
export TEST=/kernel/hwdata/Sanity/ids-files
|
||||
export TESTVERSION=1.0
|
||||
|
||||
BUILT_FILES=
|
||||
|
||||
FILES=$(METADATA) runtest.sh Makefile PURPOSE
|
||||
|
||||
.PHONY: all install download clean
|
||||
|
||||
run: $(FILES) build
|
||||
./runtest.sh
|
||||
|
||||
build: $(BUILT_FILES)
|
||||
chmod a+x runtest.sh
|
||||
chcon -t bin_t runtest.sh
|
||||
|
||||
clean:
|
||||
rm -f *~ $(BUILT_FILES)
|
||||
|
||||
include /usr/share/rhts/lib/rhts-make.include
|
||||
|
||||
$(METADATA): Makefile
|
||||
@echo "Owner: Milos Malik <mmalik@redhat.com>" > $(METADATA)
|
||||
@echo "Name: $(TEST)" >> $(METADATA)
|
||||
@echo "TestVersion: $(TESTVERSION)" >> $(METADATA)
|
||||
@echo "Path: $(TEST_DIR)" >> $(METADATA)
|
||||
@echo "Description: compares upstream ID files with our ID files" >> $(METADATA)
|
||||
@echo "Type: Sanity" >> $(METADATA)
|
||||
@echo "TestTime: 5m" >> $(METADATA)
|
||||
@echo "RunFor: hwdata" >> $(METADATA)
|
||||
@echo "Requires: hwdata" >> $(METADATA)
|
||||
@echo "Requires: wget" >> $(METADATA)
|
||||
@echo "Priority: Normal" >> $(METADATA)
|
||||
@echo "License: GPLv2" >> $(METADATA)
|
||||
@echo "Confidential: no" >> $(METADATA)
|
||||
@echo "Destructive: no" >> $(METADATA)
|
||||
|
||||
rhts-lint $(METADATA)
|
||||
|
|
@ -0,0 +1,6 @@
|
|||
PURPOSE of /kernel/hwdata/Sanity/ids-files
|
||||
|
||||
Description: compares upstream ID files with our ID files
|
||||
|
||||
Author: Milos Malik <mmalik@redhat.com>
|
||||
|
|
@ -0,0 +1,72 @@
|
|||
#!/bin/bash
|
||||
# vim: dict=/usr/share/beakerlib/dictionary.vim cpt=.,w,b,u,t,i,k
|
||||
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
#
|
||||
# runtest.sh of /kernel/hwdata/Sanity/ids-files
|
||||
# Description: compares upstream ID files with our ID files
|
||||
# Author: Milos Malik <mmalik@redhat.com>
|
||||
#
|
||||
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
#
|
||||
# Copyright (c) 2009 Red Hat, Inc. All rights reserved.
|
||||
#
|
||||
# This copyrighted material is made available to anyone wishing
|
||||
# to use, modify, copy, or redistribute it subject to the terms
|
||||
# and conditions of the GNU General Public License version 2.
|
||||
#
|
||||
# This program is distributed in the hope that it will be
|
||||
# useful, but WITHOUT ANY WARRANTY; without even the implied
|
||||
# warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
|
||||
# PURPOSE. See the GNU General Public License for more details.
|
||||
#
|
||||
# You should have received a copy of the GNU General Public
|
||||
# License along with this program; if not, write to the Free
|
||||
# Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
|
||||
# Boston, MA 02110-1301, USA.
|
||||
#
|
||||
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
|
||||
# Include rhts environment
|
||||
. /usr/bin/rhts-environment.sh
|
||||
. /usr/lib/beakerlib/beakerlib.sh
|
||||
|
||||
PACKAGE="hwdata"
|
||||
HWDATA_DIR="/usr/share/hwdata"
|
||||
PCI_IDS_FILE="pci.ids"
|
||||
PCI_IDS_URL="https://raw.githubusercontent.com/pciutils/pciids/master/pci.ids"
|
||||
USB_IDS_FILE="usb.ids"
|
||||
USB_IDS_URL="http://www.linux-usb.org/usb.ids"
|
||||
|
||||
rlJournalStart
|
||||
rlPhaseStartSetup
|
||||
rlAssertRpm ${PACKAGE}
|
||||
rlAssertRpm wget
|
||||
rlAssertExists ${HWDATA_DIR}/${PCI_IDS_FILE}
|
||||
rlAssertExists ${HWDATA_DIR}/${USB_IDS_FILE}
|
||||
rlPhaseEnd
|
||||
|
||||
rlPhaseStartTest
|
||||
rlRun "wget -q -t 4 ${PCI_IDS_URL}"
|
||||
rlAssertExists ${PCI_IDS_FILE}
|
||||
echo "Lines in upstream file: "`wc -l < ${PCI_IDS_FILE}`
|
||||
echo "Lines in our file: "`wc -l < ${HWDATA_DIR}/${PCI_IDS_FILE}`
|
||||
echo "Common lines: "`comm -1 -2 ${PCI_IDS_FILE} ${HWDATA_DIR}/${PCI_IDS_FILE} | wc -l`
|
||||
echo "Different lines in upstream file: "`comm -2 -3 ${PCI_IDS_FILE} ${HWDATA_DIR}/${PCI_IDS_FILE} | wc -l`
|
||||
echo "Different lines in our file: "`comm -1 -3 ${PCI_IDS_FILE} ${HWDATA_DIR}/${PCI_IDS_FILE} | wc -l`
|
||||
|
||||
rlRun "wget -q -t 4 ${USB_IDS_URL}"
|
||||
rlAssertExists ${USB_IDS_FILE}
|
||||
echo "Lines in upstream file: "`wc -l < ${USB_IDS_FILE}`
|
||||
echo "Lines in our file: "`wc -l < ${HWDATA_DIR}/${USB_IDS_FILE}`
|
||||
echo "Common lines: "`comm -1 -2 ${USB_IDS_FILE} ${HWDATA_DIR}/${USB_IDS_FILE} | wc -l`
|
||||
echo "Different lines in upstream file: "`comm -2 -3 ${USB_IDS_FILE} ${HWDATA_DIR}/${USB_IDS_FILE} | wc -l`
|
||||
echo "Different lines in our file: "`comm -1 -3 ${USB_IDS_FILE} ${HWDATA_DIR}/${USB_IDS_FILE} | wc -l`
|
||||
rlPhaseEnd
|
||||
|
||||
rlPhaseStartCleanup
|
||||
rlRun "rm -f ${PCI_IDS_FILE}"
|
||||
rlRun "rm -f ${USB_IDS_FILE}"
|
||||
rlPhaseEnd
|
||||
rlJournalPrintText
|
||||
rlJournalEnd
|
||||
|
|
@ -0,0 +1,68 @@
|
|||
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
#
|
||||
# Makefile of /kernel/hwdata/idfiles/syntax
|
||||
# Description: checks for basic syntax errors
|
||||
# Author: Milos Malik <mmalik@redhat.com>
|
||||
#
|
||||
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
#
|
||||
# Copyright (c) 2009 Red Hat, Inc. All rights reserved.
|
||||
#
|
||||
# This copyrighted material is made available to anyone wishing
|
||||
# to use, modify, copy, or redistribute it subject to the terms
|
||||
# and conditions of the GNU General Public License version 2.
|
||||
#
|
||||
# This program is distributed in the hope that it will be
|
||||
# useful, but WITHOUT ANY WARRANTY; without even the implied
|
||||
# warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
|
||||
# PURPOSE. See the GNU General Public License for more details.
|
||||
#
|
||||
# You should have received a copy of the GNU General Public
|
||||
# License along with this program; if not, write to the Free
|
||||
# Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
|
||||
# Boston, MA 02110-1301, USA.
|
||||
#
|
||||
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
|
||||
export TEST=/kernel/hwdata/idfiles/syntax
|
||||
export TESTVERSION=1.0
|
||||
|
||||
BUILT_FILES=
|
||||
|
||||
FILES=$(METADATA) runtest.sh Makefile PURPOSE
|
||||
|
||||
.PHONY: all install download clean
|
||||
|
||||
run: $(FILES) build
|
||||
./runtest.sh
|
||||
|
||||
build: $(BUILT_FILES)
|
||||
chmod a+x runtest.sh
|
||||
|
||||
clean:
|
||||
rm -f *~ $(BUILT_FILES)
|
||||
|
||||
include /usr/share/rhts/lib/rhts-make.include
|
||||
|
||||
$(METADATA): Makefile
|
||||
@echo "Owner: Milos Malik <mmalik@redhat.com>" > $(METADATA)
|
||||
@echo "Name: $(TEST)" >> $(METADATA)
|
||||
@echo "TestVersion: $(TESTVERSION)" >> $(METADATA)
|
||||
@echo "Path: $(TEST_DIR)" >> $(METADATA)
|
||||
@echo "Description: checks for basic syntax errors" >> $(METADATA)
|
||||
@echo "Type: Sanity" >> $(METADATA)
|
||||
@echo "TestTime: 5m" >> $(METADATA)
|
||||
@echo "RunFor: hwdata" >> $(METADATA)
|
||||
@echo "Requires: hwdata" >> $(METADATA)
|
||||
@echo "Requires: pciutils" >> $(METADATA)
|
||||
@echo "Requires: usbutils" >> $(METADATA)
|
||||
@echo "Requires: grep" >> $(METADATA)
|
||||
@echo "Requires: mktemp" >> $(METADATA)
|
||||
@echo "Priority: Normal" >> $(METADATA)
|
||||
@echo "License: GPLv2" >> $(METADATA)
|
||||
@echo "Confidential: no" >> $(METADATA)
|
||||
@echo "Destructive: no" >> $(METADATA)
|
||||
@echo "Architectures: i386 x86_64 ia64" >> $(METADATA)
|
||||
|
||||
rhts-lint $(METADATA)
|
||||
|
|
@ -0,0 +1,6 @@
|
|||
PURPOSE of /kernel/hwdata/idfiles/syntax
|
||||
|
||||
Description: checks for basic syntax errors
|
||||
|
||||
Author: Milos Malik <mmalik@redhat.com>
|
||||
|
|
@ -0,0 +1,55 @@
|
|||
#!/bin/bash
|
||||
# vim: dict=/usr/share/beakerlib/dictionary.vim cpt=.,w,b,u,t,i,k
|
||||
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
#
|
||||
# runtest.sh of /kernel/hwdata/idfiles/syntax
|
||||
# Description: checks for basic syntax errors
|
||||
# Author: Milos Malik <mmalik@redhat.com>
|
||||
#
|
||||
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
#
|
||||
# Copyright (c) 2009 Red Hat, Inc. All rights reserved.
|
||||
#
|
||||
# This copyrighted material is made available to anyone wishing
|
||||
# to use, modify, copy, or redistribute it subject to the terms
|
||||
# and conditions of the GNU General Public License version 2.
|
||||
#
|
||||
# This program is distributed in the hope that it will be
|
||||
# useful, but WITHOUT ANY WARRANTY; without even the implied
|
||||
# warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
|
||||
# PURPOSE. See the GNU General Public License for more details.
|
||||
#
|
||||
# You should have received a copy of the GNU General Public
|
||||
# License along with this program; if not, write to the Free
|
||||
# Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
|
||||
# Boston, MA 02110-1301, USA.
|
||||
#
|
||||
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
|
||||
# Include rhts environment
|
||||
. /usr/bin/rhts-environment.sh
|
||||
. /usr/lib/beakerlib/beakerlib.sh
|
||||
|
||||
PACKAGE="hwdata"
|
||||
|
||||
rlJournalStart
|
||||
rlPhaseStartSetup
|
||||
rlAssertRpm ${PACKAGE}
|
||||
rlAssertRpm pciutils
|
||||
rlAssertRpm usbutils
|
||||
OUTPUT_FILE=`mktemp`
|
||||
rlPhaseEnd
|
||||
|
||||
rlPhaseStartTest
|
||||
rlRun "lspci >& ${OUTPUT_FILE}"
|
||||
rlRun "grep -i 'unknown line' ${OUTPUT_FILE}" 1
|
||||
rlRun "lsusb >& ${OUTPUT_FILE}" 0,1
|
||||
rlRun "grep -i 'unknown line' ${OUTPUT_FILE}" 1
|
||||
rlPhaseEnd
|
||||
|
||||
rlPhaseStartCleanup
|
||||
rm -f ${OUTPUT_FILE}
|
||||
rlPhaseEnd
|
||||
rlJournalPrintText
|
||||
rlJournalEnd
|
||||
|
|
@ -0,0 +1,18 @@
|
|||
---
|
||||
# This first play always runs on the local staging system
|
||||
- hosts: localhost
|
||||
roles:
|
||||
- role: standard-test-beakerlib
|
||||
tags:
|
||||
- classic
|
||||
tests:
|
||||
- ids-files
|
||||
- syntax
|
||||
required_packages:
|
||||
- hwdata
|
||||
- pciutils
|
||||
- usbutils
|
||||
- grep
|
||||
- coreutils
|
||||
- hwdata
|
||||
- wget
|
Loading…
Reference in New Issue