diff --git a/.bpftool.metadata b/.bpftool.metadata new file mode 100644 index 0000000..d03da7a --- /dev/null +++ b/.bpftool.metadata @@ -0,0 +1 @@ +9b239ceda508da104244567d18df093ec0fac059 SOURCES/linux-5.14.0-535.el9.tar.xz diff --git a/.gitignore b/.gitignore index 80fcf39..a3a9ba4 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1 @@ -/linux-6.12.0-31.el10.tar.xz +SOURCES/linux-5.14.0-535.el9.tar.xz diff --git a/bpftool.spec b/SPECS/bpftool.spec similarity index 81% rename from bpftool.spec rename to SPECS/bpftool.spec index 7df5a6e..baad8ad 100644 --- a/bpftool.spec +++ b/SPECS/bpftool.spec @@ -1,15 +1,20 @@ +## START: Set by rpmautospec +## (rpmautospec version 0.6.5) +## RPMAUTOSPEC: autochangelog +## END: Set by rpmautospec + # We build bpftool from RHEL kernel sources, that's why we use # directly kernel tar for RHEL kernel build. # We update bpftool's 'sources' file with proper hash that's # used as kernel tar. # RHEL kernel version-release -%define kver 6.12.0-31 +%define kver 5.14.0-535 %define source linux-%{kver}%{?dist} Name: bpftool Version: 7.5.0 -# Currently, bpftool built from kernel uses kernel's release version. +# Currently, bpftool built from kernel uses kernel's release version (500+). # In order to do the transition smoothly, raise it to a sufficiently big number. # Once bpftool moves to 7.6.0, reset the release to 1. Release: 800%{?dist} @@ -56,4 +61,10 @@ pushd tools/bpf/bpftool %{_mandir}/man8/bpftool*.8* %changelog -%autochangelog +## START: Generated by rpmautospec +* Fri Jan 10 2025 Ziqian SUN (Zamir) - 7.5.0-2 +- Initial gating test for bpftool + +* Tue Jan 07 2025 Viktor Malik - 7.5.0-1 +- Initial commit on c9s +## END: Generated by rpmautospec diff --git a/gating.yaml b/gating.yaml deleted file mode 100644 index 4ca9235..0000000 --- a/gating.yaml +++ /dev/null @@ -1,6 +0,0 @@ ---- !Policy -product_versions: - - rhel-10 -decision_context: osci_compose_gate -rules: - - !PassingTestCaseRule {test_case_name: osci.brew-build.tier0.functional} diff --git a/sources b/sources deleted file mode 100644 index 354712c..0000000 --- a/sources +++ /dev/null @@ -1 +0,0 @@ -SHA512 (linux-6.12.0-31.el10.tar.xz) = d02a04e09ec1f2f962acea2c2efe800b16e059ba8ff1aebcd905c54024772344ac30e652f5e69f82ff9739573877af0f247e751e520d29ea7b7683c658cbc83a diff --git a/tests/sanity/metadata b/tests/sanity/metadata deleted file mode 100644 index 337bc1b..0000000 --- a/tests/sanity/metadata +++ /dev/null @@ -1,13 +0,0 @@ -[General] -name=bpftool gating test -owner=Ziqian SUN -description=bpftool gating test -license=GPLv2 -confidential=no -destructive=no - -[restraint] -entry_point=./runtest.sh -max_time=15m -use_pty=false - diff --git a/tests/sanity/runtest.sh b/tests/sanity/runtest.sh deleted file mode 100755 index 4025aed..0000000 --- a/tests/sanity/runtest.sh +++ /dev/null @@ -1,38 +0,0 @@ -#!/bin/bash - -. /usr/share/beakerlib/beakerlib.sh - -rlJournalStart - CONFIG_FILE=/boot/config-$(uname -r) - - if ! grep "CONFIG_BPF_SYSCALL=y" $CONFIG_FILE; then - rstrnt-report-result $TEST SKIP 0 - exit 0 - fi - rlPhaseStartSetup - dnf install -y kernel-devel - rpm -q bpftool || dnf install -y -q bpftool - BEAHARCH=${ARCH} - unset ARCH - rlPhaseEnd - for cmds in prog map link perf net; do - if ! bpftool help 2>&1 | grep " OBJECT" | grep -q "${cmds}"; then - continue - fi - rlPhaseStartTest "bpftool ${cmds}" - rlRun -l "bpftool ${cmds}" - rlPhaseEnd - done - for cmds in feature btf; do - if ! bpftool help 2>&1 | grep " OBJECT" | grep -q "${cmds}"; then - continue - fi - rlPhaseStartTest "bpftool ${cmds}" - rlRun -l "bpftool ${cmds} &> bpftool-${cmds}.log" - rstrnt-report-log bpftool-${cmds}.log - rlPhaseEnd - done - rlPhaseStartCleanup - ARCH=${BEAHARCH} - rlPhaseEnd -rlJournalEnd diff --git a/tests/tests.yml b/tests/tests.yml deleted file mode 100644 index 41ac101..0000000 --- a/tests/tests.yml +++ /dev/null @@ -1,10 +0,0 @@ -- hosts: localhost - tags: - - classic - roles: - - role: standard-test-basic - tests: - - sanity - required_packages: - - kernel-devel - - bpftool