Init commit
This commit is contained in:
parent
c184f95108
commit
bfb7ed342b
5 changed files with 99 additions and 3 deletions
1
.fmf/version
Normal file
1
.fmf/version
Normal file
|
|
@ -0,0 +1 @@
|
|||
1
|
||||
|
|
@ -1,3 +0,0 @@
|
|||
# libtool-gating
|
||||
|
||||
CI gating tests for systemtap
|
||||
5
ci.fmf
Normal file
5
ci.fmf
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
summary: CI Gating Plan
|
||||
discover:
|
||||
how: fmf
|
||||
execute:
|
||||
how: tmt
|
||||
20
tests/testsuite/main.fmf
Normal file
20
tests/testsuite/main.fmf
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
summary: runs testsuite
|
||||
description: ''
|
||||
contact: Michal Nowak <mnowak@redhat.com>
|
||||
component:
|
||||
- libtool
|
||||
test: ./runtest.sh
|
||||
framework: beakerlib
|
||||
recommend:
|
||||
- libtool
|
||||
- yum-utils
|
||||
- rpm-build
|
||||
- autoconf
|
||||
- automake
|
||||
- texinfo
|
||||
- libstdc++-devel
|
||||
- gcc-gfortran
|
||||
- gcc-java
|
||||
duration: 40m
|
||||
extra-summary: /tools/libtool/Sanity/testsuite
|
||||
extra-task: /tools/libtool/Sanity/testsuite
|
||||
73
tests/testsuite/runtest.sh
Executable file
73
tests/testsuite/runtest.sh
Executable file
|
|
@ -0,0 +1,73 @@
|
|||
#!/bin/bash
|
||||
# vim: dict=/usr/share/beakerlib/dictionary.vim cpt=.,w,b,u,t,i,k
|
||||
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
#
|
||||
# runtest.sh of /tools/libtool/Sanity/testsuite
|
||||
# Description: runs testsuite
|
||||
# Author: Michal Nowak <mnowak@redhat.com>
|
||||
#
|
||||
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
#
|
||||
# Copyright (c) 2010 Red Hat, Inc. All rights reserved.
|
||||
#
|
||||
# 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 3 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 rhts environment
|
||||
. /usr/share/beakerlib/beakerlib.sh || exit 1
|
||||
|
||||
PACKAGE="libtool"
|
||||
|
||||
# On RHEL10 RPM started to require the following envvars:
|
||||
# These seem to be harmless for the older versions.
|
||||
export RPM_ARCH=`arch`
|
||||
export RPM_PACKAGE_NAME=nnn
|
||||
export RPM_PACKAGE_RELEASE=rrr
|
||||
export RPM_PACKAGE_VERSION=vvv
|
||||
|
||||
rlJournalStart
|
||||
rlPhaseStartSetup
|
||||
rlAssertRpm $PACKAGE
|
||||
rlRun "TmpDir=\`mktemp -d\`"
|
||||
rlRun "pushd $TmpDir"
|
||||
rlRun "rlFetchSrcForInstalled ${PACKAGE}"
|
||||
rlRun "SRPM=$(readlink -f libtool-*.src.rpm)"
|
||||
rlRun "NAME=$(rpm -q --queryformat '%{name}' $SRPM)"
|
||||
rlRun "VERSION=$(rpm -q --queryformat '%{version}' $SRPM)"
|
||||
rlRun "SPECDIR=$(rpm --eval '%_specdir')"
|
||||
rlRun "SPECFILE=${SPECDIR}/${NAME}.spec"
|
||||
rlRun "BUILDDIR=$(rpm --eval '%_builddir')/${NAME}-${VERSION}"
|
||||
|
||||
# On Fedora 41, BUILDDIR appears to be somewhat ... obscure ...
|
||||
rlRun "test -d ${BUILDDIR} || BUILDDIR=\"${BUILDDIR}-build/${NAME}-${VERSION}\""
|
||||
|
||||
rlRun "test -d ${BUILDDIR}"
|
||||
rlRun "yum-builddep --nogpgcheck -y ${SRPM}"
|
||||
rlRun "rm -rf ${SPECDIR}"
|
||||
rlRun "rpm -Uvh ${SRPM}"
|
||||
rlRun "rpmbuild -bc ${SPECFILE}"
|
||||
rlRun "cd ${BUILDDIR}"
|
||||
rlPhaseEnd
|
||||
|
||||
rlPhaseStartTest
|
||||
rlRun "make check VERBOSE=yes"
|
||||
rlPhaseEnd
|
||||
|
||||
rlPhaseStartCleanup
|
||||
rlRun "popd"
|
||||
rlRun "rm -r $TmpDir"
|
||||
rlPhaseEnd
|
||||
rlJournalPrintText
|
||||
rlJournalEnd
|
||||
Loading…
Add table
Add a link
Reference in a new issue