Merged update from upstream sources

This is an automated DistroBaker update from upstream sources.
If you do not know what this is about or would like to opt out,
contact the OSCI team.

Source: https://src.fedoraproject.org/rpms/iprutils.git#45139386c6cb5d1e45918e84cff29cd3734ba479
This commit is contained in:
DistroBaker 2020-12-16 21:20:32 +00:00
parent 00746f131f
commit 0c115219e5
8 changed files with 625 additions and 0 deletions

9
.gitignore vendored
View File

@ -0,0 +1,9 @@
/iprutils-*-src.tgz
/iprutils-2.4.8.tar.gz
/iprutils-2.4.10.1.tar.gz
/iprutils-2.4.11.1.tar.gz
/iprutils-2.4.12.1.tar.gz
/iprutils-2.4.14.1.tar.gz
/iprutils-2.4.15.1.tar.gz
/iprutils-2.4.16.1.tar.gz
/iprutils-2.4.17.1.tar.gz

BIN
iprdbg.8.gz Normal file

Binary file not shown.

341
iprutils.spec Normal file
View File

@ -0,0 +1,341 @@
%global gitver rel-2-4-19
Summary: Utilities for the IBM Power Linux RAID adapters
Name: iprutils
Version: 2.4.19
Release: 2%{?dist}
License: CPL
URL: https://github.com/bjking1/iprutils
Source0: https://github.com/bjking1/iprutils/archive/%{gitver}/%{name}-%{version}.tar.gz
# missing man page
Source1: iprdbg.8.gz
BuildRequires: libtool
BuildRequires: ncurses-devel
BuildRequires: libcap-devel
BuildRequires: kernel-headers
BuildRequires: systemd
BuildRequires: zlib-devel
%description
Provides a suite of utilities to manage and configure SCSI devices
supported by the ipr SCSI storage device driver.
%prep
%autosetup -p1 -n %{name}-%{gitver}
autoreconf -vif
%build
%configure --with-systemd --without-initscripts --disable-static --disable-sosreport
%{make_build}
%install
%{make_install}
# missing man page
install -p -m 0644 %SOURCE1 %{buildroot}%{_mandir}/man8/
#install bash completion
mv %{buildroot}/%{_sysconfdir}/bash_completion.d/{iprconfig-bash-completion.sh,iprconfig}
# Remove temporary files and scripts that will not be packaged.
rm %{buildroot}/%{_sysconfdir}/ha.d/resource.d/iprha
%post
%systemd_post iprinit.service
%systemd_post iprdump.service
%systemd_post iprupdate.service
%systemd_post iprutils.target
%preun
%systemd_preun iprinit.service
%systemd_preun iprdump.service
%systemd_preun iprupdate.service
%systemd_preun iprutils.target
%files
%license LICENSE
%doc README
%{_sbindir}/*
%{_sysconfdir}/bash_completion.d/
%{_mandir}/man*/*
%{_unitdir}/iprinit.service
%{_unitdir}/iprdump.service
%{_unitdir}/iprupdate.service
%{_unitdir}/iprutils.target
%{_udevrulesdir}/90-iprutils.rules
%changelog
* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2.4.19-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
* Thu Jul 09 2020 Than Ngo <than@redhat.com> - 2.4.19-1
- rebase to 2.4.19
* Wed Jan 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2.4.17.1-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
* Thu Jul 25 2019 Fedora Release Engineering <releng@fedoraproject.org> - 2.4.17.1-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
* Mon Apr 15 2019 Than Ngo <than@redhat.com> - 2.4.17.1-2
- add tests
* Mon Mar 04 2019 Than Ngo <than@redhat.com> - 2.4.17.1-1
- update to 2.4.17.1
* Fri Feb 01 2019 Fedora Release Engineering <releng@fedoraproject.org> - 2.4.16.1-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2.4.16.1-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
* Mon May 14 2018 Dan Horák <dan[at]danny.cz> - 2.4.16.1-2
- use better patch for udev activation
* Fri May 11 2018 Dan Horák <dan[at]danny.cz> - 2.4.16.1-1
- rebased to 2.4.16.1
- spec file cleanup
* Thu Mar 15 2018 Iryna Shcherbina <ishcherb@redhat.com> - 2.4.15.1-4
- Update Python 2 dependency declarations to new packaging standards
(See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3)
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2.4.15.1-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
* Tue Jan 23 2018 Merlin Mathesius <mmathesi@redhat.com> - 2.4.15.1-2
- Not building kernel modules, so use kernel-headers instead of kernel-devel
* Fri Oct 13 2017 Sinny Kumari <sinnykunmari@fedoraproject.org> - 2.4.15.1-1
- Rebase to 2.4.15.1
* Wed Aug 02 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.4.14.1-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.4.14.1-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
* Wed Apr 05 2017 Sinny Kumari <sinnykunmari@fedoraproject.org> - 2.4.14.1-1
- Rebase to 2.4.14.1
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.4.12.1-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
* Wed Aug 10 2016 Sinny Kumari <sinnykumari@fedoraproject.org> - 2.4.12.1-1
- Rebase to 2.4.12.1
* Mon Apr 11 2016 Sinny Kumari <sinnykumari@fedoraproject.org> - 2.4.11.1-1
- Update to 2.4.11.1
- Add zlib-devel as BuildRequires
* Sat Feb 27 2016 Jakub Čajka <jcajka@redhat.com> - 2.4.10.1-1
- rebase to 2.4.10.1
- Resolves: #1289145 - iprutils-2.4.9 package update in Fedora
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 2.4.8-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
* Fri Jul 10 2015 Gabriel Krisman Bertazi <krisman@linux.vnet.ibm.com> - 2.4.8-1
- Rebase to 2.4.8
- Move to Autotools
- Remove unused files
- Rebase patch 0001 to use autotools
- Install bash completion
- Spec file clean up
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.4.5-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
* Wed Nov 19 2014 Jakub Čajka <jcajka@redhat.com> - 2.4.5-1
- Rebase to 2.4.5
* Wed Oct 1 2014 Jakub Čajka <jcajka@redhat.com> - 2.4.4-1
- Rebase to 2.4.4
- Moved to systemd
- Spec file clean up
- Fixed build flags
* Sat Aug 16 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.3.13-5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.3.13-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.3.13-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.3.13-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
* Sat Dec 29 2012 Peter Robinson <pbrobinson@fedoraproject.org> 2.3.13-1
- update to 2.3.13
* Tue Sep 11 2012 David Aquilina <dwa@redhat.com> 2.3.11-2
- Prevent the RPM from conflicting with itself (BZ #856330)
* Wed Sep 05 2012 Karsten Hopp <karsten@redhat.com> 2.3.11-1
- update to 2.3.11
- enable on all archs as it now supports some adapters on them, too.
* Thu Jul 19 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.3.10-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
* Tue May 08 2012 Karsten Hopp <karsten@redhat.com> 2.3.10-1
- update to iprutils-2.3.10
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.3.9-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
* Thu Dec 22 2011 Jiri Skala <jskala@redhat.com> - 2.3.9-1
- Update to version 2.3.9
* Wed Aug 24 2011 Jiri Skala <jskala@redhat.com> - 2.3.7-1
- Update to version 2.3.7
* Fri Aug 05 2011 Jiri Skala <jskala@redhat.com> - 2.3.6-1
- Update to version 2.3.6
* Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.3.2-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
* Wed Feb 09 2011 Jiri Skala <jskala@redhat.com> - 2.3.2-1
- Update to version 2.3.2
* Mon Apr 12 2010 Roman Rakus <rrakus@redhat.com> - 2.2.20-1
- Update to version 2.2.20
* Thu Feb 11 2010 Roman Rakus <rrakus@redhat.com> 2.2.18-3
- added missing man page
* Tue Jan 26 2010 Roman Rakus <rrakus@redhat.com> 2.2.18-2
- moved files from /sbin to /usr/sbin and made symlinks
* Wed Nov 04 2009 Roman Rakus <rrakus@redhat.com> - 2.2.18-1
- Version 2.2.18
* Mon Oct 05 2009 Roman Rakus <rrakus@redhat.com> - 2.2.17-2
- Fixed initscripts (#522464, #522462, #522461)
* Thu Sep 17 2009 Roman Rakus <rrakus@redhat.com> - 2.2.17-1
- Version 2.2.17
* Mon Aug 17 2009 Roman Rakus <rrakus@redhat.com> - 2.2.16-1
- Bump to version 2.2.16
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.2.13-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
* Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.2.13-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
* Mon Feb 2 2009 Will Woods <wwoods@redhat.com> - 2.2.13-2
- Fix iprdump startup - #483340
- iprutils-swab-moved.patch - fix compilation with 2.6.29 kernels (#483643)
* Fri Nov 21 2008 Roman Rakus <rrakus@redhat.com> - 2.2.13-1
- New upstream version
* Wed Jul 2 2008 Roman Rakus <rrakus@redhat.com> - 2.2.8-6
- Fixed ExclusiveArch tag
* Wed Jul 2 2008 Roman Rakus <rrakus@redhat.com> - 2.2.8-5
- Fixed chkconfig issue - #453165
* Wed Apr 9 2008 Roman Rakus <rrakus@redhat.cz> - 2.2.8-4
- Rewrited initscripts for satisfying LSB spec
* Fri Feb 08 2008 David Cantrell <dcantrell@redhat.com> - 2.2.8-2
- Rebuild for gcc-4.3
* Fri Nov 16 2007 David Cantrell <dcantrell@redhat.com> - 2.2.8-1
- Upgrade to latest upstream release
* Mon Oct 1 2007 Jeremy Katz <katzj@redhat.com> - 2.2.6-3
- don't require redhat-lsb (#252343)
* Tue Aug 21 2007 David Cantrell <dcantrell@redhat.com> - 2.2.6-2
- Rebuild
* Thu May 17 2007 Paul Nasrat <pnasrat@redhat.com> - 2.2.6-1
- Update to latest upstream
* Thu Jul 13 2006 Paul Nasrat <pnasrat@redhat.com> - 2.1.5-1
- New upstream version
* Wed Jul 12 2006 Jesse Keating <jkeating@redhat.com> - 2.1.4-3.1
- rebuild
* Mon Jul 10 2006 Paul Nasrat <pnasrat@redhat.com> - 2.1.4-3
- Add redhat-lsb requires
* Mon Jul 10 2006 David Woodhouse <dwmw2@redhat.com> - 2.1.4-2
- Rebuild against new sysfsutils
* Mon Jun 26 2006 Paul Nasrat <pnasrat@redhat.com> - 2.1.4-1
- Update to 2.1.4
* Fri Feb 10 2006 Jesse Keating <jkeating@redhat.com> - 2.1.1-1.2
- bump again for double-long bug on ppc(64)
* Tue Feb 07 2006 Jesse Keating <jkeating@redhat.com> - 2.1.1-1.1
- rebuilt for new gcc4.1 snapshot and glibc changes
* Fri Dec 23 2005 Paul Nasrat <pnasrat@redhat.com> - 2.1.1-1
- Update to 2.1.1
- Use RPM_OPT_FLAGS
* Tue Aug 02 2005 Paul Nasrat <pnasrat@redhat.com> - 2.0.15.3-1
- update to 2.0.15.3-1
* Wed May 11 2005 Paul Nasrat <pnasrat@redhat.com> - 2.0.14.2-1
- update to 2.0.14.2 (#156934)
* Thu Feb 24 2005 Paul Nasrat <pnasrat@redhat.com> - 2.0.13.7-1
- Update to 2.0.13.7 (#144654)
- Project moved location to sourceforge
* Mon Jan 03 2005 Paul Nasrat <pnasrat@redhat.com> - 2.0.13.5-1
- Update to 2.0.13.5 (#143593)
* Wed Dec 8 2004 Jeremy Katz <katzj@redhat.com> - 2.0.13.4-2
- link dynamically to sysfsutils instead of statically (#142310)
* Wed Dec 08 2004 Paul Nasrat <pnasrat@redhat.com> 2.0.13.4-1
- update to 2.0.13.4 (#142164)
* Fri Dec 3 2004 Jeremy Katz <katzj@redhat.com> - 2.0.13.3-1
- update to 2.0.13.3 (#141707)
* Mon Nov 15 2004 Jeremy Katz <katzj@redhat.com> - 2.0.13.2-1
- update to 2.0.13.2 (#139083)
- fix firmware upload for firmware in /lib instead of /usr/lib
- fix sysfs race
* Wed Oct 6 2004 Jeremy Katz <katzj@redhat.com> - 2.0.13-1
- update to 2.0.13 (#128996)
* Tue Aug 3 2004 Jeremy Katz <katzj@redhat.com> - 2.0.12-1
- update to 2.0.12
- include a copy of libsysfs to build
* Tue Jun 15 2004 Jeremy Katz <katzj@redhat.com> - 1.0.7-1
- update to 1.0.7 (#125988)
* Tue May 11 2004 Jeremy Katz <katzj@redhat.com> - 1.0.5-3
- obsolete ipr-utils (old package name)
* Thu Mar 25 2004 Jeremy Katz <katzj@redhat.com> 1.0.5-2
- 1.0.5
- some spec file tweaks
* Tue Nov 25 2003 Brian King <brking@us.ibm.com> 1.0.3-2
- Fixed segmentation fault in iprupdate

1
sources Normal file
View File

@ -0,0 +1 @@
SHA512 (iprutils-2.4.19.tar.gz) = 4b2a5cfdc7982d26b976b82e8d6eac219266059dda40dd79f03734c6e6ef434a273bfc5f8276ea4f2dd55b1a749c2c03b7c5677c64527469dd54fe45afe6f25d

View File

@ -0,0 +1,65 @@
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#
# Makefile of /CoreOS/patch/Regression/Cannot-handle-file-names-with-integrated-spaces
# Description: Test for bz431887 (Cannot handle file names with integrated spaces)
# Author: Ondrej Moris <omoris@redhat.com>
#
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#
# Copyright (c) 2010 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=/CoreOS/patch/Regression/Cannot-handle-file-names-with-integrated-spaces
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: Ondrej Moris <omoris@redhat.com>" > $(METADATA)
@echo "Name: $(TEST)" >> $(METADATA)
@echo "TestVersion: $(TESTVERSION)" >> $(METADATA)
@echo "Path: $(TEST_DIR)" >> $(METADATA)
@echo "Description: Test for bz431887 (Cannot handle file names with integrated spaces)" >> $(METADATA)
@echo "Type: Regression" >> $(METADATA)
@echo "TestTime: 5m" >> $(METADATA)
@echo "RunFor: patch" >> $(METADATA)
@echo "Requires: patch" >> $(METADATA)
@echo "Requires: expect" >> $(METADATA)
@echo "Priority: Normal" >> $(METADATA)
@echo "License: GPLv2" >> $(METADATA)
@echo "Confidential: no" >> $(METADATA)
@echo "Destructive: no" >> $(METADATA)
@echo "Bug: 431887" >> $(METADATA)
rhts-lint $(METADATA)

View File

@ -0,0 +1,11 @@
PURPOSE of /CoreOS/iprutils/basic-functionality-test
Description: Tier1 tests
Author: Than Ngo <than@redhat.com>
tests following scenarios:
* test iprdump --version
* test iprinit --version
* test iprupdate --version
* test Services: iprdump, iprinit, iprupdate
* test existence of man pages
* test existence of license and readme file

View File

@ -0,0 +1,185 @@
#!/bin/bash
# vim: dict+=/usr/share/beakerlib/dictionary.vim cpt=.,w,b,u,t,i,k
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#
# runtest.sh of /CoreOS/which/Sanity/basic-functionality-test
# Description: tests basic functionality
# Author: Than Ngo <than@redhat.com>
#
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#
# Copyright (c) 2019 Red Hat, Inc.
#
# 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.
#
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
PACKAGES="iprutils man-db coreutils rpm"
SERVICES="iprdump iprinit iprupdate"
# Include Beaker environment
. /usr/bin/rhts-environment.sh || exit 1
. /usr/share/beakerlib/beakerlib.sh || exit 1
rlJournalStart
rlPhaseStartSetup
for p in $PACKAGES ; do
rlAssertRpm $p
done
rlRun "TmpDir=\$(mktemp -d)" 0 "Creating tmp directory"
rlRun "pushd $TmpDir"
rlPhaseEnd
# test the sercives
rlPhaseStartTest "Services: iprdump, iprinit, iprupdate"
for s in $SERVICES ; do
rlServiceStart $s
rlRun "systemctl status -l $s"
rlServiceStop $s
done
rlPhaseEnd
rlPhaseStartTest "Smoke, sanity and function tests"
rlRun "VERSION=\$( rpm -q --qf '%{VERSION}' iprutils )"
rlRun -s "iprconfig --version" 0 "It ought show the version"
rlAssertGrep "iprconfig: $VERSION" $rlRun_LOG
rlRun "iprconfig -c show-config" 0 "Show ipr configuration"
rlRun "iprconfig -c show-alt-config" 0 "Show alternate ipr configuration information"
rlRun "iprconfig -c show-ioas" 0 "Show all ipr adapters"
rlRun "iprconfig -c show-arrays" 0 "Show all ipr arrays"
# rlRun "iprconfig -c show-battey-info" 0 "Show cache battery information for specified IOA"
# rlRun "iprconfig -c show-details sda" 0 "Show device details for specified device"
rlRun "iprconfig -c show-hot-spares" 0 "Show all configured hot spares"
rlRun "iprconfig -c show-af-disks" 0 "Show disks formatted for Advanced Function that are not configured in an array or as a hot spare"
rlRun "iprconfig -c show-all-af-disks" 0 "Show all disks formatted for Advanced Function"
rlRun "iprconfig -c show-jbod-disks" 0 "Show all disks formatted for JBOD Function"
rlRun "iprconfig -c show-slots" 0 "Show all disks slots available on the system"
# iprconfig -c status /dev/sda || echo FAILED $?
# iprconfig -c alt-status /dev/sda || echo FAILED $?
# iprconfig -c query-aid-ceate || echo FAILED $?
# iprconfig -c query-aid-delete || echo FAILED $?
# iprconfig -c query-hot-spae-ceate || echo FAILED $?
# iprconfig -c query-hot-spae-delete || echo FAILED $?
rlRun "iprconfig -c query-raid-consistency-check" 0 "Show all RAID arrays that are candidates for a RAID consistency check"
rlRun "iprconfig -c query-format-for-jbod" 0 "Show all disks that can be reformatted for JBOD function"
rlRun "iprconfig -c query-reclaim" 0 "Show all IOAs that may need a reclaim cache storage"
rlRun "iprconfig -c query-arrays-raid-include" 0 "Show all RAID arrays that can have disks included in them to increase their capacity"
# iprconfig -c query-devices-aid-include || echo FAILED $?
# iprconfig -c query-suppoted-aid-levels || echo FAILED $?
# iprconfig -c query-include-allowed || echo FAILED $?
# iprconfig -c query-max-devices-in-aay || echo FAILED $?
# iprconfig -c query-min-devices-in-aay || echo FAILED $?
# iprconfig -c quey-min-mult-in-aay || echo FAILED $?
# iprconfig -c quey-supp-stipe-sizes || echo FAILED $?
# iprconfig -c query-ecommended-stipe-size || echo FAILED $?
rlRun "iprconfig -c query-recovery-format" 0 "Show all disks that can be formatted for error recovery purposes"
rlRun "iprconfig -c query-raid-rebuild" 0 "Show all disks in RAID arrays that can be rebuilt"
rlRun "iprconfig -c query-format-for-raid" 0 "Show all disks that can be formatted such that they can be used in a RAID array or as a hot spare"
# iprconfig -c query-ucode-level || echo FAILED $?
# iprconfig -c ssd-report || echo FAILED $?
rlRun "iprconfig -c show-ucode-levels" 0 "Show the microcode level that is currently loaded for every device and adapter in the system"
# iprconfig -c query-format-timeout || echo FAILED $?
# iprconfig -c query-qdepth || echo FAILED $?
# iprconfig -c query-tcq-enable || echo FAILED $?
# iprconfig -c query-log-level || echo FAILED $?
rlRun "iprconfig -c query-add-device" 0 "Show all empty disk slots that can have a disk concurrently added"
rlRun "iprconfig -c query-remove-device" 0 "Show all disk slots which are either empty or have disks in them which can be concurrently removed from the running system"
# iprconfig -c query-initiator-id || echo FAILED $?
# iprconfig -c query-bus-speed || echo FAILED $?
# iprconfig -c query-bus-width || echo FAILED $?
rlRun "iprconfig -c query-path-status" 0 "Show the current dual path state for the SAS devices attached specified IOA"
# iprconfig -c query-path-details || echo FAILED $?
# iprconfig -c query-arrays-raid-migrate || echo FAILED $?
# iprconfig -c query-devices-raid-migrate || echo FAILED $?
# iprconfig -c query-raid-levels-raid-migrate || echo FAILED $?
# iprconfig -c query-stripe-sizes-raid-migrate || echo FAILED $?
# iprconfig -c query-devices-min-max-raid-migrate || echo FAILED $?
rlRun "iprconfig -c query-ioas-asymmetric-access" 0 "Show the IOAs that support asymmetric access"
rlRun "iprconfig -c query-arrays-asymmetric-access" 0 "Show the disk arrays that are candidates for setting their asymmetric access mode to Optimized or Non-Optimized"
# iprconfig -c query-ioa-asymmetric-access-mode || echo FAILED $?
# iprconfig -c query-aay-asymmetric-access-mode || echo FAILED $?
# iprconfig -c query-ioa-caching || echo FAILED $?
# iprconfig -c query-array-label || echo FAILED $?
# iprconfig -c query-array-rebuild-rate || echo FAILED $?
# iprconfig -c query-array-rebuild-verify || echo FAILED $?
# iprconfig -c query-array || echo FAILED $?
# iprconfig -c query-device || echo FAILED $?
# iprconfig -c query-location || echo FAILED $?
# iprconfig -c query-write-cache-policy || echo FAILED $?
# iprconfig -c raid-create || echo FAILED $?
# iprconfig -c raid-delete || echo FAILED $?
# iprconfig -c raid-include || echo FAILED $?
# iprconfig -c raid-migrate || echo FAILED $?
# iprconfig -c format-for-raid || echo FAILED $?
# iprconfig -c format-for-jbod || echo FAILED $?
# iprconfig -c recovey-format || echo FAILED $?
# iprconfig -c hot-spare-create || echo FAILED $?
# iprconfig -c hot-spare-delete || echo FAILED $?
# iprconfig -c disrupt-device || echo FAILED $?
# iprconfig -c reclaim-cache || echo FAILED $?
# iprconfig -c reclaim-unknown-cache || echo FAILED $?
# iprconfig -c raid-consistency-check || echo FAILED $?
# iprconfig -c raid-rebuild || echo FAILED $?
# iprconfig -c update-ucode || echo FAILED $?
rlRun "iprconfig -c update-all-ucodes" 0 "Update the microcode of every device with the latest version found in the system"
# iprconfig -c set-format-timeout || echo FAILED $?
# iprconfig -c set-qdepth || echo FAILED $?
# iprconfig -c set-tcq-enable || echo FAILED $?
# iprconfig -c set-log-level || echo FAILED $?
# iprconfig -c set-write-cache-policy || echo FAILED $?
# iprconfig -c identify-disk || echo FAILED $?
# iprconfig -c identify-slot || echo FAILED $?
# iprconfig -c remove-disk || echo FAILED $?
# iprconfig -c remove-slot || echo FAILED $?
# iprconfig -c add-slot || echo FAILED $?
# iprconfig -c set-initiator-id || echo FAILED $?
# iprconfig -c set-bus-speed || echo FAILED $?
# iprconfig -c set-bus-width || echo FAILED $?
# iprconfig -c primary || echo FAILED $?
# iprconfig -c secondary || echo FAILED $?
rlRun "iprconfig -c set-all-primary" 0 "Set all attached ipr adapters as the preferred primary adapter"
rlRun "iprconfig -c set-all-secondary" 0 "Set all attached ipr adapters to indicate they are not the preferred primary adapter"
# iprconfig -c query-ha-mode || echo FAILED $?
# iprconfig -c set-ha-mode || echo FAILED $?
# iprconfig -c set-aay-asymmetic-access-mode || echo FAILED $?
# iprconfig -c set-ioa-asymmetric-access-mode || echo FAILED $?
# iprconfig -c set-ioa-caching || echo FAILED $?
# iprconfig -c set-array-rebuild-verify || echo FAILED $?
# iprconfig -c set-array-rebuild-rate || echo FAILED $?
# iprconfig -c get-live-dump || echo FAILED $?
rlRun "iprconfig -c dump" 0 "Display detailed hardware and system information on standard output"
# should not segfault
rlRun -s "iprdump --version" 0 "Print iprdump version"
rlAssertGrep "iprdump: $VERSION" $rlRun_LOG
rlRun -s "iprinit --version" 0 "Print iprinit version"
rlAssertGrep "iprinit: $VERSION" $rlRun_LOG
# iprsos --version
rlRun -s "iprupdate --version" 0 "Print iprupdate version"
rlAssertGrep "iprupdate: $VERSION" $rlRun_LOG
# check man page
for m in iprconfig iprdbg iprdump iprinit iprsos iprupdate ; do
rlRun "man -P head $m" 0 "Show the $m man page"
done
# check for sane license and readme file
rlRun "head /usr/share/licenses/iputils/LICENSE" 0 "Check for license file"
rlRun "head /usr/share/doc/iputils/README" 0 "Check for README file"
rlPhaseEnd
rlPhaseStartCleanup
rlRun "popd"
rlRun "rm -fr $TmpDir" 0 "Removing tmp directory"
rlPhaseEnd
rlJournalPrintText
rlJournalEnd

13
tests/tests.yml Normal file
View File

@ -0,0 +1,13 @@
---
# Run tests in all contexts
- hosts: localhost
tags:
- classic
roles:
- role: standard-test-beakerlib
tests:
- basic-functionality-test
required_packages:
- man-db
- coreutils
- rpm