Compare commits
No commits in common. "c9-beta" and "c9s" have entirely different histories.
3
.gitignore
vendored
3
.gitignore
vendored
@ -1 +1,2 @@
|
|||||||
SOURCES/drgn-0.0.24.tar.gz
|
/drgn-0.0.24.tar.gz
|
||||||
|
/drgn-0.0.29.tar.gz
|
||||||
|
@ -1 +0,0 @@
|
|||||||
2df91fcb5b2a5d84be1096b4a46239152e707ccb SOURCES/drgn-0.0.24.tar.gz
|
|
6
gating.yaml
Normal file
6
gating.yaml
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
--- !Policy
|
||||||
|
product_versions:
|
||||||
|
- rhel-9
|
||||||
|
decision_context: osci_compose_gate
|
||||||
|
rules:
|
||||||
|
- !PassingTestCaseRule {test_case_name: osci.brew-build.tier0.functional}
|
@ -14,8 +14,8 @@ drgn exposes the types and variables in a program for easy, expressive
|
|||||||
scripting in Python.}
|
scripting in Python.}
|
||||||
|
|
||||||
Name: python-%{pypi_name}
|
Name: python-%{pypi_name}
|
||||||
Version: 0.0.24
|
Version: 0.0.29
|
||||||
Release: 4%{?dist}
|
Release: 1%{?dist}
|
||||||
Summary: Programmable debugger
|
Summary: Programmable debugger
|
||||||
|
|
||||||
License: LGPL-2.1-or-later
|
License: LGPL-2.1-or-later
|
||||||
@ -107,6 +107,7 @@ cp -PR contrib tools %{buildroot}%{_datadir}/drgn
|
|||||||
%{python3_sitearch}/_%{pypi_name}.pyi
|
%{python3_sitearch}/_%{pypi_name}.pyi
|
||||||
%{python3_sitearch}/_%{pypi_name}.cpython*.so
|
%{python3_sitearch}/_%{pypi_name}.cpython*.so
|
||||||
%{python3_sitearch}/%{pypi_name}
|
%{python3_sitearch}/%{pypi_name}
|
||||||
|
%{python3_sitearch}/_%{pypi_name}_util
|
||||||
%{python3_sitearch}/%{pypi_name}-%{version}-py%{python3_version}.egg-info
|
%{python3_sitearch}/%{pypi_name}-%{version}-py%{python3_version}.egg-info
|
||||||
|
|
||||||
%if %{with docs}
|
%if %{with docs}
|
||||||
@ -117,6 +118,10 @@ cp -PR contrib tools %{buildroot}%{_datadir}/drgn
|
|||||||
%endif
|
%endif
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Mon Nov 11 2024 Philipp Rudo <prudo@redhat.com> - 0.0.29-1
|
||||||
|
- Rebase to upstream v0.0.29
|
||||||
|
Resolves: RHEL-61658
|
||||||
|
|
||||||
* Thu Aug 8 2024 Tao Liu <ltao@redhat.com> - 0.0.24-4
|
* Thu Aug 8 2024 Tao Liu <ltao@redhat.com> - 0.0.24-4
|
||||||
- Enable brew-build.tier0.functional test
|
- Enable brew-build.tier0.functional test
|
||||||
|
|
1
sources
Normal file
1
sources
Normal file
@ -0,0 +1 @@
|
|||||||
|
SHA512 (drgn-0.0.29.tar.gz) = 2d13de5f4da2db106def4701b4de182c5a5781c12308bc169d6a9033f223b7c64fd4f83659c45a2861ac9aca56f31ba77d781452b9374bc29f50e1151a073741
|
2
tests/README
Normal file
2
tests/README
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
initial tests:
|
||||||
|
run make check, which runs any selftests in the upstream source tarball
|
64
tests/selftest/Makefile
Normal file
64
tests/selftest/Makefile
Normal file
@ -0,0 +1,64 @@
|
|||||||
|
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||||
|
#
|
||||||
|
# Makefile of /CoreOS/patch/Sanity/selftest
|
||||||
|
# Description: Executes upstream test suite
|
||||||
|
# Author: Miroslav Vadkerti <mvadkert@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/rng-tools/Sanity/selftest
|
||||||
|
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: Miroslav Vadkerti <mvadkert@redhat.com>" > $(METADATA)
|
||||||
|
@echo "Name: $(TEST)" >> $(METADATA)
|
||||||
|
@echo "TestVersion: $(TESTVERSION)" >> $(METADATA)
|
||||||
|
@echo "Path: $(TEST_DIR)" >> $(METADATA)
|
||||||
|
@echo "Description: Executes upstream test suite" >> $(METADATA)
|
||||||
|
@echo "Type: Sanity" >> $(METADATA)
|
||||||
|
@echo "TestTime: 30m" >> $(METADATA)
|
||||||
|
@echo "RunFor: patch" >> $(METADATA)
|
||||||
|
@echo "Requires: patch gcc rpm-build automake libselinux-devel ed libattr-devel" >> $(METADATA)
|
||||||
|
@echo "Priority: Normal" >> $(METADATA)
|
||||||
|
@echo "License: GPLv2" >> $(METADATA)
|
||||||
|
@echo "Confidential: no" >> $(METADATA)
|
||||||
|
@echo "Destructive: no" >> $(METADATA)
|
||||||
|
@echo "Releases: -RHEL3 -RHEL4 -RHELServer5 -RHELClient5" >> $(METADATA)
|
||||||
|
|
||||||
|
rhts-lint $(METADATA)
|
4
tests/selftest/PURPOSE
Normal file
4
tests/selftest/PURPOSE
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
PURPOSE of python-drgn/tests/selftest
|
||||||
|
Description: Executes selftest to validate integrity of python-drgn
|
||||||
|
Author: Tao Liu <ltao@redhat.com>
|
||||||
|
|
68
tests/selftest/runtest.sh
Executable file
68
tests/selftest/runtest.sh
Executable file
@ -0,0 +1,68 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
# vim: dict=/usr/share/beakerlib/dictionary.vim cpt=.,w,b,u,t,i,k
|
||||||
|
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||||
|
#
|
||||||
|
# runtest.sh of /CoreOS/rng-tools/Sanity/selftest
|
||||||
|
# Description: Executes the upstream test suite comming with the package
|
||||||
|
# Author: Miroslav Vadkerti <mvadkert@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.
|
||||||
|
#
|
||||||
|
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||||
|
|
||||||
|
# Include rhts environment
|
||||||
|
. /usr/bin/rhts-environment.sh || exit 1
|
||||||
|
. /usr/share/beakerlib/beakerlib.sh || exit 1
|
||||||
|
|
||||||
|
PACKAGE="python-drgn"
|
||||||
|
PACKAGES="drgn python3-devel python3-setuptools sed python3-pytest gcc-c++ make bzip2-devel elfutils-devel libkdumpfile-devel xz-devel autoconf automake libtool zlib-devel"
|
||||||
|
UPSTREAMPKG="python-drgn-*"
|
||||||
|
BUILDLOG=`mktemp`
|
||||||
|
TESTLOG=`mktemp`
|
||||||
|
TARGET=$(echo `uname -m` | egrep ppc)
|
||||||
|
if [[ $TARGET != "" ]]; then TARGET="--target `uname -m`"; fi
|
||||||
|
TOPDIR=`mktemp -d`
|
||||||
|
SPEC="$TOPDIR/SPECS/$PACKAGE*.spec"
|
||||||
|
TESTDIR="$TOPDIR/BUILD/$UPSTREAMPKG/"
|
||||||
|
|
||||||
|
rlJournalStart
|
||||||
|
rlPhaseStartSetup
|
||||||
|
for PKG in $PACKAGES; do
|
||||||
|
rlAssertRpm $PKG
|
||||||
|
done
|
||||||
|
rlPhaseEnd
|
||||||
|
rlPhaseStartTest
|
||||||
|
rlFetchSrcForInstalled drgn
|
||||||
|
rlRun "rpm -ivh --define '_topdir $TOPDIR' $PACKAGE*.src.rpm" 0 "Installing $PACKAGE src rpm"
|
||||||
|
echo "+ Building $PACKAGE (Log: $BUILDLOG)"
|
||||||
|
echo "+ Build command: rpmbuild -bc $SPEC $TARGET"
|
||||||
|
rlRun "rpmbuild --define '_package_note_flags %nil' --define '_topdir $TOPDIR' -bc $SPEC $TARGET &> $BUILDLOG"
|
||||||
|
if [ $? -eq 0 ]
|
||||||
|
then
|
||||||
|
rlPass "Selftest Passed"
|
||||||
|
else
|
||||||
|
rlFail "Selftest Failed"
|
||||||
|
fi
|
||||||
|
rlPhaseEnd
|
||||||
|
|
||||||
|
rlPhaseStartCleanup
|
||||||
|
rlRun "rm -rf $PACKAGE*.src.rpm" 0 "Removing source rpm"
|
||||||
|
rlPhaseEnd
|
||||||
|
rlJournalPrintText
|
||||||
|
rlJournalEnd
|
25
tests/tests.yml
Normal file
25
tests/tests.yml
Normal file
@ -0,0 +1,25 @@
|
|||||||
|
---
|
||||||
|
# This first play always runs on the local staging system
|
||||||
|
- hosts: localhost
|
||||||
|
roles:
|
||||||
|
- role: standard-test-beakerlib
|
||||||
|
tags:
|
||||||
|
- classic
|
||||||
|
tests:
|
||||||
|
- selftest
|
||||||
|
required_packages:
|
||||||
|
- drgn
|
||||||
|
- python3-devel
|
||||||
|
- python3-setuptools
|
||||||
|
- sed
|
||||||
|
- python3-pytest
|
||||||
|
- gcc-c++
|
||||||
|
- make
|
||||||
|
- bzip2-devel
|
||||||
|
- elfutils-devel
|
||||||
|
- libkdumpfile-devel
|
||||||
|
- xz-devel
|
||||||
|
- autoconf
|
||||||
|
- automake
|
||||||
|
- libtool
|
||||||
|
- zlib-devel
|
Loading…
Reference in New Issue
Block a user