Compare commits
No commits in common. "c8" and "c9s" have entirely different histories.
|
@ -1 +1 @@
|
|||
c53c4f06349447559309e270befde941a8ac043a SOURCES/chan-0.0.4.tar.gz
|
||||
c53c4f06349447559309e270befde941a8ac043a chan-0.0.4.tar.gz
|
||||
|
|
|
@ -0,0 +1 @@
|
|||
1
|
|
@ -1 +1,2 @@
|
|||
SOURCES/chan-0.0.4.tar.gz
|
||||
/chan-0.0.4.tar.gz
|
||||
*.swp
|
||||
|
|
|
@ -1,12 +1,13 @@
|
|||
Name: chan
|
||||
Version: 0.0.4
|
||||
Release: 3%{?dist}
|
||||
Release: 6%{?dist}
|
||||
Summary: Pure C implementation of Go channels
|
||||
License: ASL 2.0
|
||||
URL: https://github.com/tylertreat/%{name}
|
||||
Source0: https://github.com/tylertreat/%{name}/archive/%{version}/%{name}-%{version}.tar.gz
|
||||
|
||||
BuildRequires: gcc autoconf automake libtool
|
||||
BuildRequires: make
|
||||
#Requires:
|
||||
|
||||
%description
|
||||
|
@ -59,8 +60,18 @@ find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} ';'
|
|||
|
||||
|
||||
%changelog
|
||||
* Wed May 20 2020 Mark Goodwin <mgoodwin@redhat.com> - 0.0.4-3
|
||||
- Initial version for RHEL-8, rebuild for CI/gating
|
||||
* Mon Aug 09 2021 Mohan Boddu <mboddu@redhat.com> - 0.0.4-6
|
||||
- Rebuilt for IMA sigs, glibc 2.34, aarch64 flags
|
||||
Related: rhbz#1991688
|
||||
|
||||
* Thu Apr 15 2021 Mohan Boddu <mboddu@redhat.com> - 0.0.4-5
|
||||
- Rebuilt for RHEL 9 BETA on Apr 15th 2021. Related: rhbz#1947937
|
||||
|
||||
* Tue Jan 26 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.0.4-4
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
|
||||
|
||||
* Mon Jul 27 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.0.4-3
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
||||
|
||||
* Tue Jan 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.0.4-2
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
|
|
@ -0,0 +1,19 @@
|
|||
--- !Policy
|
||||
product_versions:
|
||||
- fedora-*
|
||||
decision_context: bodhi_update_push_stable
|
||||
subject_type: koji_build
|
||||
rules:
|
||||
- !PassingTestCaseRule {test_case_name: fedora-ci.koji-build.tier0.functional}
|
||||
--- !Policy
|
||||
product_versions:
|
||||
- rhel-8
|
||||
decision_context: osci_compose_gate
|
||||
rules:
|
||||
- !PassingTestCaseRule {test_case_name: baseos-ci.brew-build.tier1.functional}
|
||||
--- !Policy
|
||||
product_versions:
|
||||
- rhel-9
|
||||
decision_context: osci_compose_gate
|
||||
rules:
|
||||
- !PassingTestCaseRule {test_case_name: baseos-ci.brew-build.tier1.functional}
|
|
@ -0,0 +1,6 @@
|
|||
summary: CI Gating Plan
|
||||
discover:
|
||||
how: fmf
|
||||
directory: tests
|
||||
execute:
|
||||
how: beakerlib
|
|
@ -0,0 +1 @@
|
|||
SHA512 (chan-0.0.4.tar.gz) = 0e4c9791c7eecd2ba9aad564c2fe4e9102ad2ec61b87bd2f23f0e191cecfe57ea82d72adeb770bbc087814630c1a05840d93f787e05c5d239a380083f0ed6555
|
|
@ -0,0 +1,2 @@
|
|||
The test's Makefiles are not used in Fedora CI infrastructure. But are kept here
|
||||
for backward compatibility with traditional beakerlib test harness in RHEL.
|
|
@ -0,0 +1,64 @@
|
|||
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
#
|
||||
# Makefile of /tools/chan/Sanity/sanity-test
|
||||
# Description: Sanity upstream test of chan package
|
||||
# Author: Jan Kuřík <jkurik@redhat.com>
|
||||
#
|
||||
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
#
|
||||
# Copyright (c) 2020 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/chan/Sanity/sanity-test
|
||||
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: Jan Kuřík <jkurik@redhat.com>" > $(METADATA)
|
||||
@echo "Name: $(TEST)" >> $(METADATA)
|
||||
@echo "TestVersion: $(TESTVERSION)" >> $(METADATA)
|
||||
@echo "Path: $(TEST_DIR)" >> $(METADATA)
|
||||
@echo "Description: Sanity upstream test of chan package" >> $(METADATA)
|
||||
@echo "Type: Sanity" >> $(METADATA)
|
||||
@echo "TestTime: 15m" >> $(METADATA)
|
||||
@echo "RunFor: chan" >> $(METADATA)
|
||||
@echo "Requires: autoconf automake chan gcc libtool rpm-build" >> $(METADATA)
|
||||
@echo "Priority: Normal" >> $(METADATA)
|
||||
@echo "License: GPLv2+" >> $(METADATA)
|
||||
@echo "Confidential: no" >> $(METADATA)
|
||||
@echo "Destructive: no" >> $(METADATA)
|
||||
@echo "Bug: 1748642" >> $(METADATA)
|
||||
@echo "Releases: -RHEL4 -RHEL6 -RHEL7 -RHELClient5 -RHELServer5" >> $(METADATA)
|
||||
|
||||
rhts-lint $(METADATA)
|
|
@ -0,0 +1,5 @@
|
|||
PURPOSE of /tools/chan/Sanity/sanity-test
|
||||
Description: Sanity upstream test of chan package
|
||||
Author: Jan Kuřík <jkurik@redhat.com>
|
||||
Bug summary: New rpm dependency (chan) needed for statsd PMDA
|
||||
Bugzilla link: https://bugzilla.redhat.com/show_bug.cgi?id=1748642
|
|
@ -0,0 +1,20 @@
|
|||
summary: Sanity upstream test of chan package
|
||||
description: |
|
||||
Bug summary: New rpm dependency (chan) needed for statsd PMDA
|
||||
Bugzilla link: https://bugzilla.redhat.com/show_bug.cgi?id=1748642
|
||||
contact:
|
||||
- Jan Kuřík <jkurik@redhat.com>
|
||||
component:
|
||||
- chan
|
||||
test: ./runtest.sh
|
||||
framework: beakerlib
|
||||
recommend:
|
||||
- autoconf
|
||||
- automake
|
||||
- chan
|
||||
- gcc
|
||||
- libtool
|
||||
- rpm-build
|
||||
duration: 15m
|
||||
extra-summary: /tools/chan/Sanity/sanity-test
|
||||
extra-task: /tools/chan/Sanity/sanity-test
|
|
@ -0,0 +1,78 @@
|
|||
#!/bin/bash
|
||||
# vim: dict+=/usr/share/beakerlib/dictionary.vim cpt=.,w,b,u,t,i,k
|
||||
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
#
|
||||
# runtest.sh of /tools/chan/Sanity/sanity-test
|
||||
# Description: Sanity upstream test of chan package
|
||||
# Author: Jan Kuřík <jkurik@redhat.com>
|
||||
#
|
||||
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
#
|
||||
# Copyright (c) 2020 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
|
||||
|
||||
PACKAGE="chan"
|
||||
BUILD_USER=${BUILD_USER:-chanbld}
|
||||
|
||||
rlJournalStart
|
||||
rlPhaseStartSetup
|
||||
rlAssertRpm $PACKAGE
|
||||
rlRun "TmpDir=\$(mktemp -d)" 0 "Creating tmp directory"
|
||||
rlRun "pushd $TmpDir"
|
||||
rlPhaseEnd
|
||||
|
||||
rlPhaseStartTest "Get source code and setup build environment"
|
||||
rlFetchSrcForInstalled "${PACKAGE}" \
|
||||
|| rlDie "Can not download SRPM of ${PACKAGE} - giving up"
|
||||
rlRun "yum-builddep -y \
|
||||
$(rpm -q --qf '%{name}-%{version}-%{release}.src.rpm' ${PACKAGE}.$(arch))" \
|
||||
|| rlDie "Can not install build dependencies - giving up"
|
||||
rlRun "useradd -m -N $BUILD_USER" 0,9 && del="yes"
|
||||
rlPhaseEnd
|
||||
|
||||
rlPhaseStartTest "Build ${PACKAGE}"
|
||||
rlRun "rpm -D \"_topdir ${TmpDir}\" -U \
|
||||
$(rpm -q --qf '%{name}-%{version}-%{release}.src.rpm' ${PACKAGE}.$(arch))"
|
||||
rlRun "chown -R ${BUILD_USER}:users ${TmpDir}"
|
||||
rlRun -s "su -c \
|
||||
'rpmbuild -D \"_topdir ${TmpDir}\" -bc ${TmpDir}/SPECS/${PACKAGE}.spec' \
|
||||
${BUILD_USER}"
|
||||
rlFileSubmit "${rlRun_LOG}" "rpmbuild-${PACKAGE}.log"
|
||||
rlPhaseEnd
|
||||
|
||||
rlPhaseStartTest "Run upstream testsuite"
|
||||
BDIR=$(rpm -q --qf '%{name}-%{version}' ${PACKAGE}.$(arch))
|
||||
if rlRun "pushd ${TmpDir}/BUILD/${BDIR}"; then
|
||||
rlRun "rm -f .libs/libchan.so*"
|
||||
rlRun "ln -s /usr/lib64/libchan.so.0 .libs/libchan.so"
|
||||
rlRun "ln -s /usr/lib64/libchan.so.0 .libs/libchan.so.0"
|
||||
rlRun "make src/chan_test"
|
||||
rlRun -s "src/chan_test"
|
||||
rlAssertGrep '[0-9]+ passed' "${rlRun_LOG}" -E
|
||||
rlRun "popd"
|
||||
fi
|
||||
rlPhaseEnd
|
||||
|
||||
rlPhaseStartCleanup
|
||||
rlRun "popd"
|
||||
rlRun "rm -r $TmpDir" 0 "Removing tmp directory"
|
||||
rlPhaseEnd
|
||||
rlJournalPrintText
|
||||
rlJournalEnd
|
Loading…
Reference in New Issue