Switch tests to tmt from upstream repo, CentOS Stream
This commit is contained in:
parent
794237816f
commit
8108099246
@ -3,6 +3,6 @@ product_versions:
|
||||
- rhel-8
|
||||
decision_context: osci_compose_gate
|
||||
rules:
|
||||
- !PassingTestCaseRule {test_case_name: osci.brew-build.tier0.functional}
|
||||
- !PassingTestCaseRule {test_case_name: baseos-ci.brew-build.tier1.functional}
|
||||
- !PassingTestCaseRule {test_case_name: osci.brew-build.rebuild.validation}
|
||||
- !PassingTestCaseRule {test_case_name: baseos-ci.brew-build.gate-build-fast-lane.functional}
|
||||
- !PassingTestCaseRule {test_case_name: baseos-ci.brew-build.gate-build-slow-lane.functional}
|
||||
|
||||
26
plans/build-gating.fmf
Normal file
26
plans/build-gating.fmf
Normal file
@ -0,0 +1,26 @@
|
||||
#
|
||||
# Build/PR gating tests for binutils
|
||||
#
|
||||
|
||||
/common:
|
||||
plan:
|
||||
import:
|
||||
url: https://gitlab.com/redhat/centos-stream/tests/binutils.git
|
||||
ref: main
|
||||
name: /plans/build-gating/common
|
||||
|
||||
/kernel-rebuild:
|
||||
plan:
|
||||
import:
|
||||
url: https://gitlab.com/redhat/centos-stream/tests/binutils.git
|
||||
ref: main
|
||||
name: /plans/build-gating/kernel-rebuild
|
||||
|
||||
adjust+:
|
||||
- because: "Plan to be ran when executed locally, or executed by CI system to gate a build or PR."
|
||||
# `commit` is used by Fedora CI, CentOS Stream CI, `build` by BaseOS CI
|
||||
when: >-
|
||||
trigger is defined
|
||||
and trigger != commit
|
||||
and trigger != build
|
||||
enabled: false
|
||||
18
plans/regression.fmf
Normal file
18
plans/regression.fmf
Normal file
@ -0,0 +1,18 @@
|
||||
#
|
||||
# Build/PR gating tests for binutils
|
||||
#
|
||||
|
||||
/common:
|
||||
plan:
|
||||
import:
|
||||
url: https://gitlab.com/redhat/centos-stream/tests/binutils.git
|
||||
ref: main
|
||||
name: /plans/regression
|
||||
|
||||
adjust+:
|
||||
- because: "Plan to be ran when executed locally, or executed by CI system after updating an erratum/bodhi update."
|
||||
# `build` is used by Bodhi
|
||||
when: >-
|
||||
trigger is defined
|
||||
and trigger != build
|
||||
enabled: false
|
||||
@ -1,40 +0,0 @@
|
||||
#!/bin/sh
|
||||
|
||||
# Checks that as works
|
||||
|
||||
. /usr/share/beakerlib/beakerlib.sh
|
||||
|
||||
# Set the full test name
|
||||
TEST="/AppStream/binutils/Sanity/assembler"
|
||||
|
||||
# Package being tested
|
||||
PACKAGE="binutils"
|
||||
|
||||
rlJournalStart
|
||||
# Setup phase: Prepare test directory
|
||||
rlPhaseStartSetup
|
||||
rlAssertRpm $PACKAGE
|
||||
rlRun 'TmpDir=$(mktemp -d)' 0 'Creating tmp directory' # no-reboot
|
||||
rlRun "pushd $TmpDir"
|
||||
rlPhaseEnd
|
||||
|
||||
# Test phase: Test the assembler
|
||||
# FIXME: This is way too simplistic. The assembler testsuite does a much
|
||||
# more thorough job, but that has already been run as part of the binutils
|
||||
# build process, and besides we do not have access to an unpacked source
|
||||
# tree here.
|
||||
rlPhaseStartTest
|
||||
rlRun "echo nop >nop.s" 0 "Create a test assembler source file"
|
||||
rlRun "as nop.s -o nop.o" 0 "Assemble the test file"
|
||||
rlAssertExists "nop.o"
|
||||
rlPhaseEnd
|
||||
|
||||
# Cleanup phase: Remove test directory
|
||||
rlPhaseStartCleanup
|
||||
rlRun "popd"
|
||||
rlRun "rm -r $TmpDir" 0 "Removing tmp directory"
|
||||
rlPhaseEnd
|
||||
rlJournalEnd
|
||||
|
||||
# Print the test report
|
||||
rlJournalPrintText
|
||||
@ -1,41 +0,0 @@
|
||||
#!/bin/sh
|
||||
|
||||
# Checks that as works
|
||||
|
||||
. /usr/share/beakerlib/beakerlib.sh
|
||||
|
||||
# Set the full test name
|
||||
TEST="/AppStream/binutils/Sanity/ld.bfd"
|
||||
|
||||
# Package being tested
|
||||
PACKAGE="binutils"
|
||||
|
||||
rlJournalStart
|
||||
# Setup phase: Prepare test directory
|
||||
rlPhaseStartSetup
|
||||
rlAssertRpm $PACKAGE
|
||||
rlRun 'TmpDir=$(mktemp -d)' 0 'Creating tmp directory' # no-reboot
|
||||
rlRun "pushd $TmpDir"
|
||||
rlPhaseEnd
|
||||
|
||||
# Test phase: Test the BFD linker
|
||||
# FIXME: This is way too simplistic. The linker testsuite does a much
|
||||
# more thorough job, but that has already been run as part of the binutils
|
||||
# build process, and besides we do not have access to an unpacked source
|
||||
# tree here.
|
||||
rlPhaseStartTest
|
||||
rlRun "echo nop >nop.s" 0 "Create a test assembler source file"
|
||||
rlRun "as nop.s -o nop.o" 0 "Assemble the test file"
|
||||
rlRun "ld.bfd -e 0 nop.o -o nop.exe" 0 "Link the test file"
|
||||
rlAssertExists "nop.exe"
|
||||
rlPhaseEnd
|
||||
|
||||
# Cleanup phase: Remove test directory
|
||||
rlPhaseStartCleanup
|
||||
rlRun "popd"
|
||||
rlRun "rm -r $TmpDir" 0 "Removing tmp directory"
|
||||
rlPhaseEnd
|
||||
rlJournalEnd
|
||||
|
||||
# Print the test report
|
||||
rlJournalPrintText
|
||||
@ -1,45 +0,0 @@
|
||||
#!/bin/sh
|
||||
|
||||
# Checks that as works
|
||||
|
||||
. /usr/share/beakerlib/beakerlib.sh
|
||||
|
||||
# Set the full test name
|
||||
TEST="/AppStream/binutils/Sanity/binutils"
|
||||
|
||||
# Package being tested
|
||||
PACKAGE="binutils"
|
||||
|
||||
rlJournalStart
|
||||
# Setup phase: Prepare test directory
|
||||
rlPhaseStartSetup
|
||||
rlAssertRpm $PACKAGE
|
||||
rlRun 'TmpDir=$(mktemp -d)' 0 'Creating tmp directory' # no-reboot
|
||||
rlRun "pushd $TmpDir"
|
||||
rlPhaseEnd
|
||||
|
||||
# Test phase: Test the binutils utilities
|
||||
# FIXME: This is way too simplistic. The binutils testsuite does a much
|
||||
# more thorough job, but that has already been run as part of the binutils
|
||||
# build process, and besides we do not have access to an unpacked source
|
||||
# tree here.
|
||||
rlPhaseStartTest
|
||||
rlRun "echo nop >nop.s" 0 "Create a test assembler source file"
|
||||
rlRun "as nop.s -o nop.o" 0 "Assemble the test file"
|
||||
rlRun "objdump -D -r -x -W -t nop.o >objdump.out" 0 "Examine the file with objdump"
|
||||
rlAssertExists "objdump.out"
|
||||
rlRun "readelf -a -W --wide nop.o >readelf.out" 0 "Examine the file with readelf"
|
||||
rlAssertExists "readelf.out"
|
||||
rlRun "nm nop.o >nm.out" 0 "Examine the file with nm"
|
||||
rlAssertExists "nm.out"
|
||||
rlPhaseEnd
|
||||
|
||||
# Cleanup phase: Remove test directory
|
||||
rlPhaseStartCleanup
|
||||
rlRun "popd"
|
||||
rlRun "rm -r $TmpDir" 0 "Removing tmp directory"
|
||||
rlPhaseEnd
|
||||
rlJournalEnd
|
||||
|
||||
# Print the test report
|
||||
rlJournalPrintText
|
||||
@ -1,41 +0,0 @@
|
||||
#!/bin/sh
|
||||
|
||||
# Checks that as works
|
||||
|
||||
. /usr/share/beakerlib/beakerlib.sh
|
||||
|
||||
# Set the full test name
|
||||
TEST="/AppStream/binutils/Sanity/ld.gold"
|
||||
|
||||
# Package being tested
|
||||
PACKAGE="binutils"
|
||||
|
||||
rlJournalStart
|
||||
# Setup phase: Prepare test directory
|
||||
rlPhaseStartSetup
|
||||
rlAssertRpm $PACKAGE
|
||||
rlRun 'TmpDir=$(mktemp -d)' 0 'Creating tmp directory' # no-reboot
|
||||
rlRun "pushd $TmpDir"
|
||||
rlPhaseEnd
|
||||
|
||||
# Test phase: Test the GOLD linker
|
||||
# FIXME: This is way too simplistic. The linker testsuite does a much
|
||||
# more thorough job, but that has already been run as part of the binutils
|
||||
# build process, and besides we do not have access to an unpacked source
|
||||
# tree here.
|
||||
rlPhaseStartTest
|
||||
rlRun "echo nop >nop.s" 0 "Create a test assembler source file"
|
||||
rlRun "as nop.s -o nop.o" 0 "Assemble the test file"
|
||||
rlRun "ld.gold -e 0 nop.o -o nop.exe" 0 "Link the test file"
|
||||
rlAssertExists "nop.exe"
|
||||
rlPhaseEnd
|
||||
|
||||
# Cleanup phase: Remove test directory
|
||||
rlPhaseStartCleanup
|
||||
rlRun "popd"
|
||||
rlRun "rm -r $TmpDir" 0 "Removing tmp directory"
|
||||
rlPhaseEnd
|
||||
rlJournalEnd
|
||||
|
||||
# Print the test report
|
||||
rlJournalPrintText
|
||||
@ -1,16 +0,0 @@
|
||||
- hosts: localhost
|
||||
roles:
|
||||
- role: standard-test-beakerlib
|
||||
tags:
|
||||
- atomic
|
||||
- classic
|
||||
- container
|
||||
tests:
|
||||
- test_assembler
|
||||
- test_bfd_linker
|
||||
- test_gold_linker
|
||||
- test_binutils
|
||||
required_packages:
|
||||
- findutils # beakerlib needs find command
|
||||
- binutils # We need it to test it
|
||||
- gcc # To build some test cases
|
||||
Loading…
Reference in New Issue
Block a user