initial version
This commit is contained in:
parent
bcf40541e4
commit
cfec0c55ca
5 changed files with 90 additions and 0 deletions
1
.fmf/version
Normal file
1
.fmf/version
Normal file
|
|
@ -0,0 +1 @@
|
|||
1
|
||||
9
plans/gating.fmf
Normal file
9
plans/gating.fmf
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
summary: Run libzfcphbaapi gating tests
|
||||
|
||||
discover:
|
||||
how: fmf
|
||||
test:
|
||||
- "^/tests/sanity"
|
||||
|
||||
execute:
|
||||
how: tmt
|
||||
4
plans/main.fmf
Normal file
4
plans/main.fmf
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
adjust:
|
||||
- when: arch != s390x
|
||||
enabled: false
|
||||
because: The libzfcphbaapi package is s390x only.
|
||||
18
tests/sanity/main.fmf
Normal file
18
tests/sanity/main.fmf
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
summary: sanity
|
||||
description: |
|
||||
Basic test for libzfcphbaapi
|
||||
contact: Daniel Horak <dhorak@redhat.com>
|
||||
component:
|
||||
- libzfcphbaapi
|
||||
test: ./runtest.sh
|
||||
framework: beakerlib
|
||||
require:
|
||||
- libzfcphbaapi
|
||||
- libzfcphbaapi-devel
|
||||
- /usr/bin/readelf
|
||||
duration: 1m
|
||||
enabled: true
|
||||
adjust:
|
||||
- when: arch != s390x
|
||||
enabled: false
|
||||
because: This this package is s390x only
|
||||
58
tests/sanity/runtest.sh
Executable file
58
tests/sanity/runtest.sh
Executable file
|
|
@ -0,0 +1,58 @@
|
|||
#!/bin/bash
|
||||
# vim: dict+=/usr/share/beakerlib/dictionary.vim cpt=.,w,b,u,t,i,k
|
||||
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
#
|
||||
# runtest.sh of /CoreOS/libzfcphbaapi/smoke-functionality
|
||||
# Description: Smoke, Sanity and function tests
|
||||
# Author: Dan Horák <dhorak@redhat.com>
|
||||
#
|
||||
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
#
|
||||
# Copyright (c) 2019 Red Hat, Inc.
|
||||
#
|
||||
# This program is free software: you can redistribute it and/or
|
||||
# modify it under the terms of the GNU General Public License as
|
||||
# published by the Free Software Foundation, either version 2 of
|
||||
# the License, or (at your option) any later version.
|
||||
#
|
||||
# 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, see http://www.gnu.org/licenses/.
|
||||
#
|
||||
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
|
||||
# Include Beaker environment
|
||||
. /usr/share/beakerlib/beakerlib.sh || exit 1
|
||||
|
||||
PACKAGES="libzfcphbaapi libzfcphbaapi-devel"
|
||||
|
||||
rlJournalStart
|
||||
rlPhaseStartSetup
|
||||
for p in $PACKAGES ; do
|
||||
rlAssertRpm $p
|
||||
done
|
||||
rlRun "TmpDir=\$(mktemp -d)" 0 "Creating tmp directory"
|
||||
rlRun "pushd $TmpDir"
|
||||
rlPhaseEnd
|
||||
|
||||
rlPhaseStartTest
|
||||
rlAssertExists /usr/include/hbaapi.h
|
||||
rlAssertExists /usr/lib64/libzfcphbaapi.so
|
||||
rlRun "readelf -d /usr/lib64/libzfcphbaapi.so | grep SONAME" 0 "Getting library soname"
|
||||
rlPhaseEnd
|
||||
|
||||
rlPhaseStartTest
|
||||
rlRun "zfcp_show -h"
|
||||
rlRun "zfcp_ping -h"
|
||||
rlPhaseEnd
|
||||
|
||||
rlPhaseStartCleanup
|
||||
rlRun "popd"
|
||||
rlRun "rm -r $TmpDir" 0 "Removing tmp directory"
|
||||
rlPhaseEnd
|
||||
rlJournalPrintText
|
||||
rlJournalEnd
|
||||
Loading…
Add table
Add a link
Reference in a new issue