re-import sources as agreed with the maintainer

This commit is contained in:
Adam Samalik 2023-06-29 17:40:47 +02:00
parent 29c716fe0e
commit 537372f424
8 changed files with 89 additions and 31 deletions

View File

@ -1 +0,0 @@
1

8
.gitignore vendored
View File

@ -1,4 +1,4 @@
SOURCES/mpc-0.9.tar.gz
SOURCES/mpc-1.1.0.tar.gz
/mpc-0.9.tar.gz
/mpc-1.1.0.tar.gz
*.rpm
.build-*
mpc-*/
/mpc-*.tar.gz

View File

@ -1,6 +0,0 @@
summary: CI Gating Plan
discover:
how: fmf
directory: tests
execute:
how: tmt

View File

@ -0,0 +1,63 @@
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#
# Makefile of /tools/libmpc/Regression/internal-testsuite
# Description: internal-testsuite
# Author: Martin Coufal <mcoufal@redhat.com>
#
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#
# Copyright (c) 2016 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/.
#
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
export TEST=/tools/libmpc/Regression/internal-testsuite
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)
test -x runtest.sh || chmod a+x runtest.sh
clean:
rm -f *~ $(BUILT_FILES)
include /usr/share/rhts/lib/rhts-make.include
$(METADATA): Makefile
@echo "Owner: Martin Coufal <mcoufal@redhat.com>" > $(METADATA)
@echo "Name: $(TEST)" >> $(METADATA)
@echo "TestVersion: $(TESTVERSION)" >> $(METADATA)
@echo "Path: $(TEST_DIR)" >> $(METADATA)
@echo "Description: internal-testsuite" >> $(METADATA)
@echo "Type: Regression" >> $(METADATA)
@echo "TestTime: 30m" >> $(METADATA)
@echo "RunFor: libmpc" >> $(METADATA)
@echo "Requires: libmpc gmp-devel mpfr-devel texinfo rpm-build gcc gcc-c++" >> $(METADATA)
@echo "Priority: Normal" >> $(METADATA)
@echo "License: GPLv2+" >> $(METADATA)
@echo "Confidential: no" >> $(METADATA)
@echo "Destructive: no" >> $(METADATA)
@echo "Releases: -RHEL4 -RHELClient5 -RHELServer5" >> $(METADATA)
rhts-lint $(METADATA)

View File

@ -0,0 +1,3 @@
PURPOSE of /tools/libmpc/Regression/internal-testsuite
Description: internal-testsuite
Author: Martin Coufal <mcoufal@redhat.com>

View File

@ -1,20 +0,0 @@
summary: internal-testsuite
description: ''
enabled: true
contact: Martin Coufal <mcoufal@redhat.com>
component:
- libmpc
test: ./runtest.sh
framework: beakerlib
recommend:
- libmpc
- gmp-devel
- mpfr-devel
- texinfo
- rpm-build
- gcc
- gcc-c++
duration: 30m
extra-nitrate: TC#0538960
extra-summary: /tools/libmpc/Regression/internal-testsuite
extra-task: /tools/libmpc/Regression/internal-testsuite

View File

@ -26,6 +26,7 @@
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# Include Beaker environment
. /usr/bin/rhts-environment.sh || exit 1
. /usr/share/beakerlib/beakerlib.sh || exit 1
PACKAGE="${PACKAGE:-$(rpm -qf --qf='%{name}\n' /usr/lib64/libmpc.so.3)}"

18
tests/tests.yml Normal file
View File

@ -0,0 +1,18 @@
- hosts: localhost
roles:
- role: standard-test-beakerlib
tags:
- atomic
- classic
- container
tests:
- internal-testsuite
required_packages:
- findutils
- gcc
- gcc-c++
- libmpc
- gmp-devel
- mpfr-devel
- texinfo
- rpm-build