❌ FAIL: Test report for kernel (ark)
by CKI Project
Hello,
We ran automated tests on a recent commit from this kernel tree:
Kernel repo: https://gitlab.com/cki-project/kernel-ark.git
Commit: c3e734a24dc4 - [redhat] kernel-5.9.0-0.rc4.20200910git7fe10096c150.6
The results of these automated tests are provided below.
Overall result: FAILED (see details below)
Merge: OK
Compile: FAILED
All kernel binaries, config files, and logs are available for download here:
https://arr-cki-prod-datawarehouse-public.s3.amazonaws.com/index.html?pre...
We attempted to compile the kernel for multiple architectures, but the compile
failed on one or more architectures:
aarch64: FAILED (see build-aarch64.log.xz attachment)
ppc64le: FAILED (see build-ppc64le.log.xz attachment)
s390x: FAILED (see build-s390x.log.xz attachment)
x86_64: FAILED (see build-x86_64.log.xz attachment)
We hope that these logs can help you find the problem quickly. For the full
detail on our testing procedures, please scroll to the bottom of this message.
Please reply to this email if you have any questions about the tests that we
ran or if you have any suggestions on how to make future tests more effective.
,-. ,-.
( C ) ( K ) Continuous
`-',-.`-' Kernel
( I ) Integration
`-'
______________________________________________________________________________
Compile testing
---------------
We compiled the kernel for 4 architectures:
aarch64:
rpmbuild arguments: rpmbuild --target aarch64 --with=cross --with=kabidw_base --without=bpftool --without=selftests --without=debug --without=ipaclones --without=perf --without=tools
ppc64le:
rpmbuild arguments: rpmbuild --target ppc64le --with=cross --with=kabidw_base --without=bpftool --without=selftests --without=debug --without=ipaclones --without=perf --without=tools
s390x:
rpmbuild arguments: rpmbuild --target s390x --with=cross --with=kabidw_base --without=bpftool --without=selftests --without=debug --without=ipaclones --without=perf --without=tools
x86_64:
rpmbuild arguments: rpmbuild --target x86_64 --with=kabidw_base --without=debug
3 years, 7 months
[OS-BUILD PATCH] redhat/Makefile,
Makefile.common: introduce GIT macro
by GitLab Bridge on behalf of bcrocker
From: Ben Crocker <bcrocker(a)redhat.com>
In redhat/Makefile and redhat/Makefile.common, introduce a
GIT macro:
GIT ?= git
which takes on the value from the environment, if it
exists, and defaults to 'git' otherwise.
Replace instances of "git" with "$(GIT)", e.g.
RHGITCOMMIT?=$(shell $(GIT) log -1 --pretty=format:%H)
Also, add a dist-dump-variables target in Makefile.
Signed-off-by: Ben Crocker <bcrocker(a)redhat.com>
---
redhat/Makefile | 43 +++++++++++++++++++++++++++++++++++++++---
redhat/Makefile.common | 16 ++++++++--------
2 files changed, 48 insertions(+), 11 deletions(-)
diff --git a/redhat/Makefile b/redhat/Makefile
index 7cdf9e3bd0bf..f5486915da10 100644
--- a/redhat/Makefile
+++ b/redhat/Makefile
@@ -1,3 +1,4 @@
+GIT ?= git
include Makefile.common
include Makefile.rhpkg
@@ -39,8 +40,8 @@ endif
BUILD_TARGET ?= --scratch $(BUILD_SCRATCH_TARGET)
FLAVOR ?= rhel
-RHGITURL?=$(shell git config rhg.url || git config remote.origin.url)
-RHGITCOMMIT?=$(shell git log -1 --pretty=format:%H)
+RHGITURL?=$(shell $(GIT) config rhg.url || $(GIT) config remote.origin.url)
+RHGITCOMMIT?=$(shell $(GIT) log -1 --pretty=format:%H)
# this section is needed in order to make O= to work
_OUTPUT := ..
@@ -206,7 +207,7 @@ $(KABIDW_TARBALL):
dist-git-version-check:
@# genspec.sh uses pathspec magic that wasn't introduced until version 2.13
@IFS=" ."; \
- set -- $$(git --version); \
+ set -- $$($(GIT) --version); \
IFS=; \
if [ "$$3" -lt 2 -o \( "$$3" -eq 2 -a "$$4" -lt 13 \) ]; then \
echo "ERROR: You need git version 2.13 or newer to run some setup commands"; \
@@ -358,6 +359,42 @@ dist-get-latest:
dist-os-version:
@echo "OSVERSION: $(RHEL_MAJOR).$(RHEL_MINOR)"
+dist-dump-variables:
+ @echo "GIT = $(GIT)"
+ @echo "RPMKVERSION = $(RPMKVERSION)"
+ @echo "RPMKPATCHLEVEL = $(RPMKPATCHLEVEL)"
+ @echo "RPMKSUBLEVEL = $(RPMKSUBLEVEL)"
+ @echo "RPMKEXTRAVERSION = $(RPMKEXTRAVERSION)"
+ @echo "GITID = $(GITID)"
+ @echo "MARKER = $(MARKER)"
+ @echo "KEXTRAVERSION = $(KEXTRAVERSION)"
+ @echo "PREBUILD = $(PREBUILD)"
+ @echo "UPSTREAM_TARBALL_NAME = $(UPSTREAM_TARBALL_NAME)"
+ @echo "DIST = $(DIST)"
+ @echo "IS_FEDORA = $(IS_FEDORA)"
+ @echo "VERSION_ON_UPSTREAM = $(VERSION_ON_UPSTREAM)"
+ @echo "MERGE_BASE = $(MERGE_BASE)"
+ @echo "TAG = $(TAG)"
+ @echo "SNAPSHOT = $(SNAPSHOT)"
+ @echo "KVERSION = $(KVERSION)"
+ @echo "RPMVERSION = $(RPMVERSION)"
+ @echo "BUILD = $(BUILD)"
+ @echo "RELEASED_KERNEL = $(RELEASED_KERNEL)"
+ @echo "STAMP_VERSION = $(STAMP_VERSION)"
+ @echo "PKGRELEASE = $(PKGRELEASE)"
+ @echo "SPECRELEASE = $(SPECRELEASE)"
+ @echo "TARFILE_RELEASE = $(TARFILE_RELEASE)"
+ @echo "TARFILE = $(TARFILE)"
+ @echo "TARBALL = $(TARBALL)"
+ @echo "DISTRO_BUILD = $(DISTRO_BUILD)"
+ @echo "KABI_TARFILE = $(KABI_TARFILE)"
+ @echo "KABI_TARBALL = $(KABI_TARBALL)"
+ @echo "KABIDW_TARFILE = $(KABIDW_TARFILE)"
+ @echo "KABIDW_TARBALL = $(KABIDW_TARBALL)"
+ @echo "CHANGELOG = $(CHANGELOG)"
+ @echo "CHANGELOG_PREV = $(CHANGELOG_PREV)"
+ @echo "RHPRODUCT = $(RHPRODUCT)"
+
dist-help:
@echo 'Cleaning targets:'
@echo ' dist-clean - Clean redhat/configs/ and redhat/rpm/ directories.'
diff --git a/redhat/Makefile.common b/redhat/Makefile.common
index e7fb532874e3..81a07a8b8ed1 100644
--- a/redhat/Makefile.common
+++ b/redhat/Makefile.common
@@ -1,4 +1,4 @@
-TOPDIR:=$(shell git rev-parse --show-toplevel)
+TOPDIR:=$(shell $(GIT) rev-parse --show-toplevel)
REDHAT:=$(TOPDIR)/redhat
include $(TOPDIR)/Makefile.rhelver
@@ -6,11 +6,11 @@ RPMBUILD := $(shell if [ -x "/usr/bin/rpmbuild" ]; then echo rpmbuild; \
else echo rpm; fi)
MACH := $(shell uname -m)
-RPMKVERSION:=$(shell git show HEAD:Makefile | sed -ne '/^VERSION\ =\ /{s///;p;q}')
-RPMKPATCHLEVEL:=$(shell git show HEAD:Makefile | sed -ne '/^PATCHLEVEL\ =\ /{s///;p;q}')
-RPMKSUBLEVEL:=$(shell git show HEAD:Makefile | sed -ne '/^SUBLEVEL\ =\ /{s///;p;q}')
-RPMKEXTRAVERSION:=$(shell git show HEAD:Makefile | sed -ne '/^EXTRAVERSION\ =\ /{s///;p;q}')
-GITID:= $(shell git log --max-count=1 --pretty=format:%H)
+RPMKVERSION:=$(shell $(GIT) show HEAD:Makefile | sed -ne '/^VERSION\ =\ /{s///;p;q}')
+RPMKPATCHLEVEL:=$(shell $(GIT) show HEAD:Makefile | sed -ne '/^PATCHLEVEL\ =\ /{s///;p;q}')
+RPMKSUBLEVEL:=$(shell $(GIT) show HEAD:Makefile | sed -ne '/^SUBLEVEL\ =\ /{s///;p;q}')
+RPMKEXTRAVERSION:=$(shell $(GIT) show HEAD:Makefile | sed -ne '/^EXTRAVERSION\ =\ /{s///;p;q}')
+GITID:= $(shell $(GIT) log --max-count=1 --pretty=format:%H)
# marker is git tag which we base off of for exporting patches
# Make sure marker uses RPMKPATCHLEVEL and RPMKEXTRAVERSION from the kernel
# makefile as opposed to any adjusted version for snapshotting.
@@ -42,8 +42,8 @@ else
endif
ifeq ($(VERSION_ON_UPSTREAM),1)
# master is expected to track mainline.
- MERGE_BASE:=$(shell git merge-base HEAD master)
- TAG:=$(shell git describe $(MERGE_BASE))
+ MERGE_BASE:=$(shell $(GIT) merge-base HEAD master)
+ TAG:=$(shell $(GIT) describe $(MERGE_BASE))
# a snapshot off of a tagged git is of the form [tag]-[cnt]-g[hash]
SNAPSHOT:=$(shell echo $(TAG) | grep -c '\-g')
else
--
GitLab
3 years, 7 months
[OS-BUILD PATCH] kernel.spec: don't override upstream compiler flags
for
ppc64le
by GitLab Bridge on behalf of sharkcz
From: =?UTF-8?q?Dan=20Hor=C3=A1k?= <dan(a)danny.cz>
Related: rhbz#1866485
Signed-off-by: Dan Horák <dan(a)danny.cz>
---
redhat/kernel.spec.template | 1 -
1 file changed, 1 deletion(-)
diff --git a/redhat/kernel.spec.template b/redhat/kernel.spec.template
index d47c9cce8a0e..f29f6ad56f93 100644
--- a/redhat/kernel.spec.template
+++ b/redhat/kernel.spec.template
@@ -353,7 +353,6 @@ Summary: The Linux kernel
%define kernel_image vmlinux
%define kernel_image_elf 1
%define all_arch_configs kernel-%{version}-ppc64le*.config
-%define kcflags -O3
%endif
%ifarch s390x
--
GitLab
3 years, 7 months
❌ FAIL: Test report for kernel (ark)
by CKI Project
Hello,
We ran automated tests on a recent commit from this kernel tree:
Kernel repo: https://gitlab.com/cki-project/kernel-ark.git
Commit: 9ebeedaa28bc - [redhat] kernel-5.9.0-0.rc4.20200909git34d4ddd359db.5
The results of these automated tests are provided below.
Overall result: FAILED (see details below)
Merge: OK
Compile: FAILED
All kernel binaries, config files, and logs are available for download here:
https://arr-cki-prod-datawarehouse-public.s3.amazonaws.com/index.html?pre...
We attempted to compile the kernel for multiple architectures, but the compile
failed on one or more architectures:
aarch64: FAILED (see build-aarch64.log.xz attachment)
ppc64le: FAILED (see build-ppc64le.log.xz attachment)
s390x: FAILED (see build-s390x.log.xz attachment)
x86_64: FAILED (see build-x86_64.log.xz attachment)
We hope that these logs can help you find the problem quickly. For the full
detail on our testing procedures, please scroll to the bottom of this message.
Please reply to this email if you have any questions about the tests that we
ran or if you have any suggestions on how to make future tests more effective.
,-. ,-.
( C ) ( K ) Continuous
`-',-.`-' Kernel
( I ) Integration
`-'
______________________________________________________________________________
Compile testing
---------------
We compiled the kernel for 4 architectures:
aarch64:
rpmbuild arguments: rpmbuild --target aarch64 --with=cross --with=kabidw_base --without=bpftool --without=selftests --without=debug --without=ipaclones --without=perf --without=tools
ppc64le:
rpmbuild arguments: rpmbuild --target ppc64le --with=cross --with=kabidw_base --without=bpftool --without=selftests --without=debug --without=ipaclones --without=perf --without=tools
s390x:
rpmbuild arguments: rpmbuild --target s390x --with=cross --with=kabidw_base --without=bpftool --without=selftests --without=debug --without=ipaclones --without=perf --without=tools
x86_64:
rpmbuild arguments: rpmbuild --target x86_64 --with=kabidw_base --without=debug
3 years, 7 months
✅ PASS: Test report for kernel 5.8.7-200.fc32 (fedora-32)
by CKI Project
Hello jforbes,
We ran automated tests on the following kernel build:
Kernel package: kernel-5.8.7-200.fc32
Task URL: https://koji.fedoraproject.org/koji/taskinfo?taskID=50944596
The results of these automated tests are provided below.
Overall result: PASSED
Tests: OK
All kernel binaries, config files, and logs are available for download here:
https://arr-cki-prod-datawarehouse-public.s3.amazonaws.com/index.html?pre...
Please reply to this email if you have any questions about the tests that we
ran or if you have any suggestions on how to make future tests more effective.
For the full detail on our testing procedures, please scroll to the bottom of
this message.
,-. ,-.
( C ) ( K ) Continuous
`-',-.`-' Kernel
( I ) Integration
`-'
______________________________________________________________________________
Hardware testing
----------------
We booted each kernel and ran the following tests:
aarch64:
Host 1:
✅ Boot test
✅ ACPI table test
✅ LTP
✅ Loopdev Sanity
✅ Memory function: memfd_create
✅ AMTU (Abstract Machine Test Utility)
✅ Ethernet drivers sanity
🚧 ✅ CIFS Connectathon
Host 2:
✅ Boot test
✅ xfstests - ext4
✅ xfstests - xfs
✅ stress: stress-ng
🚧 ✅ xfstests - btrfs
🚧 ✅ Storage blktests
🚧 ✅ Storage nvme - tcp
ppc64le:
Host 1:
✅ Boot test
🚧 ✅ kdump - sysrq-c
Host 2:
✅ Boot test
✅ LTP
✅ Loopdev Sanity
✅ Memory function: memfd_create
✅ AMTU (Abstract Machine Test Utility)
✅ Ethernet drivers sanity
🚧 ✅ CIFS Connectathon
Host 3:
✅ Boot test
✅ xfstests - ext4
✅ xfstests - xfs
🚧 ✅ xfstests - btrfs
🚧 ✅ Storage blktests
🚧 ✅ Storage nvme - tcp
s390x:
Host 1:
✅ Boot test
✅ LTP
✅ Loopdev Sanity
✅ Memory function: memfd_create
✅ AMTU (Abstract Machine Test Utility)
✅ Ethernet drivers sanity
🚧 ✅ CIFS Connectathon
Host 2:
✅ Boot test
✅ stress: stress-ng
🚧 ✅ Storage blktests
🚧 💥 Storage nvme - tcp
x86_64:
Host 1:
✅ Boot test
🚧 ✅ kdump - sysrq-c
Host 2:
✅ Boot test
✅ ACPI table test
✅ LTP
✅ Loopdev Sanity
✅ Memory function: memfd_create
✅ AMTU (Abstract Machine Test Utility)
✅ Ethernet drivers sanity
✅ kernel-rt: rt_migrate_test
✅ kernel-rt: rteval
✅ kernel-rt: sched_deadline
✅ kernel-rt: smidetect
🚧 ✅ CIFS Connectathon
Host 3:
✅ Boot test
✅ xfstests - ext4
✅ xfstests - xfs
✅ stress: stress-ng
🚧 ✅ xfstests - btrfs
🚧 ✅ Storage blktests
🚧 ✅ Storage nvme - tcp
Test sources: https://gitlab.com/cki-project/kernel-tests
💚 Pull requests are welcome for new tests or improvements to existing tests!
Aborted tests
-------------
Tests that didn't complete running successfully are marked with ⚡⚡⚡.
If this was caused by an infrastructure issue, we try to mark that
explicitly in the report.
Waived tests
------------
If the test run included waived tests, they are marked with 🚧. Such tests are
executed but their results are not taken into account. Tests are waived when
their results are not reliable enough, e.g. when they're just introduced or are
being fixed.
Testing timeout
---------------
We aim to provide a report within reasonable timeframe. Tests that haven't
finished running yet are marked with ⏱.
3 years, 7 months
❌ FAIL: Test report for kernel (ark)
by CKI Project
Hello,
We ran automated tests on a recent commit from this kernel tree:
Kernel repo: https://gitlab.com/cki-project/kernel-ark.git
Commit: 09e1631c6993 - [redhat] kernel-5.9.0-0.rc4.4
The results of these automated tests are provided below.
Overall result: FAILED (see details below)
Merge: OK
Compile: FAILED
All kernel binaries, config files, and logs are available for download here:
https://cki-artifacts.s3.us-east-2.amazonaws.com/index.html?prefix=datawa...
We attempted to compile the kernel for multiple architectures, but the compile
failed on one or more architectures:
aarch64: FAILED (see build-aarch64.log.xz attachment)
ppc64le: FAILED (see build-ppc64le.log.xz attachment)
s390x: FAILED (see build-s390x.log.xz attachment)
x86_64: FAILED (see build-x86_64.log.xz attachment)
We hope that these logs can help you find the problem quickly. For the full
detail on our testing procedures, please scroll to the bottom of this message.
Please reply to this email if you have any questions about the tests that we
ran or if you have any suggestions on how to make future tests more effective.
,-. ,-.
( C ) ( K ) Continuous
`-',-.`-' Kernel
( I ) Integration
`-'
______________________________________________________________________________
Compile testing
---------------
We compiled the kernel for 4 architectures:
aarch64:
rpmbuild arguments: rpmbuild --target aarch64 --with=cross --with=kabidw_base --without=bpftool --without=selftests --without=debug --without=ipaclones --without=perf --without=tools
ppc64le:
rpmbuild arguments: rpmbuild --target ppc64le --with=cross --with=kabidw_base --without=bpftool --without=selftests --without=debug --without=ipaclones --without=perf --without=tools
s390x:
rpmbuild arguments: rpmbuild --target s390x --with=cross --with=kabidw_base --without=bpftool --without=selftests --without=debug --without=ipaclones --without=perf --without=tools
x86_64:
rpmbuild arguments: rpmbuild --target x86_64 --with=kabidw_base --without=debug
3 years, 7 months
❌ FAIL: Test report for kernel (ark)
by CKI Project
Hello,
We ran automated tests on a recent commit from this kernel tree:
Kernel repo: https://gitlab.com/cki-project/kernel-ark.git
Commit: 0072074b1b1b - [redhat] kernel-5.9.0-0.rc3.20200906gitdd9fb9bb3340.3
The results of these automated tests are provided below.
Overall result: FAILED (see details below)
Merge: OK
Compile: FAILED
All kernel binaries, config files, and logs are available for download here:
https://cki-artifacts.s3.us-east-2.amazonaws.com/index.html?prefix=datawa...
We attempted to compile the kernel for multiple architectures, but the compile
failed on one or more architectures:
aarch64: FAILED (see build-aarch64.log.xz attachment)
ppc64le: FAILED (see build-ppc64le.log.xz attachment)
s390x: FAILED (see build-s390x.log.xz attachment)
x86_64: FAILED (see build-x86_64.log.xz attachment)
We hope that these logs can help you find the problem quickly. For the full
detail on our testing procedures, please scroll to the bottom of this message.
Please reply to this email if you have any questions about the tests that we
ran or if you have any suggestions on how to make future tests more effective.
,-. ,-.
( C ) ( K ) Continuous
`-',-.`-' Kernel
( I ) Integration
`-'
______________________________________________________________________________
Compile testing
---------------
We compiled the kernel for 4 architectures:
aarch64:
rpmbuild arguments: rpmbuild --target aarch64 --with=cross --with=kabidw_base --without=bpftool --without=selftests --without=debug --without=ipaclones --without=perf --without=tools
ppc64le:
rpmbuild arguments: rpmbuild --target ppc64le --with=cross --with=kabidw_base --without=bpftool --without=selftests --without=debug --without=ipaclones --without=perf --without=tools
s390x:
rpmbuild arguments: rpmbuild --target s390x --with=cross --with=kabidw_base --without=bpftool --without=selftests --without=debug --without=ipaclones --without=perf --without=tools
x86_64:
rpmbuild arguments: rpmbuild --target x86_64 --with=kabidw_base --without=debug
3 years, 7 months
❌ FAIL: Test report for kernel (ark)
by CKI Project
Hello,
We ran automated tests on a recent commit from this kernel tree:
Kernel repo: https://gitlab.com/cki-project/kernel-ark.git
Commit: 49c27a8e7917 - [redhat] kernel-5.9.0-0.rc3.20200905gitc70672d8d316.2
The results of these automated tests are provided below.
Overall result: FAILED (see details below)
Merge: OK
Compile: FAILED
All kernel binaries, config files, and logs are available for download here:
https://cki-artifacts.s3.us-east-2.amazonaws.com/index.html?prefix=datawa...
We attempted to compile the kernel for multiple architectures, but the compile
failed on one or more architectures:
aarch64: FAILED (see build-aarch64.log.xz attachment)
ppc64le: FAILED (see build-ppc64le.log.xz attachment)
s390x: FAILED (see build-s390x.log.xz attachment)
x86_64: FAILED (see build-x86_64.log.xz attachment)
We hope that these logs can help you find the problem quickly. For the full
detail on our testing procedures, please scroll to the bottom of this message.
Please reply to this email if you have any questions about the tests that we
ran or if you have any suggestions on how to make future tests more effective.
,-. ,-.
( C ) ( K ) Continuous
`-',-.`-' Kernel
( I ) Integration
`-'
______________________________________________________________________________
Compile testing
---------------
We compiled the kernel for 4 architectures:
aarch64:
rpmbuild arguments: rpmbuild --target aarch64 --with=cross --with=kabidw_base --without=bpftool --without=selftests --without=debug --without=ipaclones --without=perf --without=tools
ppc64le:
rpmbuild arguments: rpmbuild --target ppc64le --with=cross --with=kabidw_base --without=bpftool --without=selftests --without=debug --without=ipaclones --without=perf --without=tools
s390x:
rpmbuild arguments: rpmbuild --target s390x --with=cross --with=kabidw_base --without=bpftool --without=selftests --without=debug --without=ipaclones --without=perf --without=tools
x86_64:
rpmbuild arguments: rpmbuild --target x86_64 --with=kabidw_base --without=debug
3 years, 7 months
[OS-BUILD PATCH] redhat/self-test: Initial commit
by GitLab Bridge on behalf of bcrocker
From: Ben Crocker <bcrocker(a)redhat.com>
1001-rpmlint.bats
- tests for exactly one SRPM
- runs rpmlint on that SRPM
1002-basic-structural-test.bats
- tests whether SRPM unpacks OK
- tests whether Linux tree unpacks OK
- runs top-level structural check on Linux tree
Nothing is hooked up yet.
Signed-off-by: Ben Crocker <bcrocker(a)redhat.com>
---
redhat/self-test/1001-rpmlint.bats | 11 ++++
.../self-test/1002-basic-structural-test.bats | 57 +++++++++++++++++++
redhat/self-test/Makefile | 8 +++
3 files changed, 76 insertions(+)
create mode 100644 redhat/self-test/1001-rpmlint.bats
create mode 100644 redhat/self-test/1002-basic-structural-test.bats
create mode 100644 redhat/self-test/Makefile
diff --git a/redhat/self-test/1001-rpmlint.bats b/redhat/self-test/1001-rpmlint.bats
new file mode 100644
index 000000000000..bd0d8d1bcc24
--- /dev/null
+++ b/redhat/self-test/1001-rpmlint.bats
@@ -0,0 +1,11 @@
+#!/usr/bin/env bats
+@test "Exactly one SRPM exists" {
+ result=$(find "$BATS_TEST_DIRNAME"/.. -name "*.rpm" | wc -l)
+ [ "$result" = 1 ]
+}
+
+@test "rpmlint" {
+ srpm=$(find "$BATS_TEST_DIRNAME"/.. -name "*.rpm")
+ run rpmlint $srpm
+ [ "$status" = 0 ]
+}
diff --git a/redhat/self-test/1002-basic-structural-test.bats b/redhat/self-test/1002-basic-structural-test.bats
new file mode 100644
index 000000000000..292e1b90e9d9
--- /dev/null
+++ b/redhat/self-test/1002-basic-structural-test.bats
@@ -0,0 +1,57 @@
+#!/usr/bin/env bats
+@test "SRPM unpacks OK" {
+ result=$(find "$BATS_TEST_DIRNAME"/.. -name "*.rpm" | wc -l)
+ srpm=$(find "$BATS_TEST_DIRNAME"/.. -name "*.rpm")
+ pushd "$BATS_TMPDIR"
+ if [ -e SRPMS ]
+ then
+ rm -fr SRPMS
+ fi
+ mkdir SRPMS
+ cd SRPMS
+ rpm2cpio "$srpm" | cpio -idm
+ status=$?
+ [ "$status" = 0 ]
+ popd >& /dev/null
+}
+
+@test "Linux tree unpacks OK" {
+ pushd "$BATS_TMPDIR"/SRPMS >& /dev/null
+ ls | wc
+ linuxname=$(ls linux*.tar.xz)
+ run tar --extract --xz -f "$linuxname"
+ [ "$status" = 0 ]
+ popd >& /dev/null
+}
+
+@test "Linux top level structural check" {
+ pushd "$BATS_TMPDIR"/SRPMS >& /dev/null
+ linuxtree=$(ls linux*.tar.xz)
+ linuxtree=${linuxtree/.tar.xz}
+ cd $linuxtree
+ test -d arch && \
+ test -d block && \
+ test -d certs && \
+ test -d crypto && \
+ test -d Documentation && \
+ test -d drivers && \
+ test -d fs && \
+ test -d include && \
+ test -d init && \
+ test -d ipc && \
+ test -d kernel && \
+ test -d lib
+ test -d LICENSES && \
+ test -d mm && \
+ test -d net && \
+ test -d samples && \
+ test -d scripts && \
+ test -d security && \
+ test -d sound && \
+ test -d tools && \
+ test -d usr && \
+ test -d virt
+ status=$?
+ popd >& /dev/null
+ [ "$status" = 0 ]
+}
diff --git a/redhat/self-test/Makefile b/redhat/self-test/Makefile
new file mode 100644
index 000000000000..b5fee9492a7d
--- /dev/null
+++ b/redhat/self-test/Makefile
@@ -0,0 +1,8 @@
+# use with 'make -I ../ debug'
+# with vars 'DIST='.eln' make -I ../ debug ' and compare expected output
+
+include ../Makefile
+
+debug:
+ @echo "SINGLE_TARBALL = $(SINGLE_TARBALL)"
+ @echo "DIST_TARGET = $(DIST_TARGET)"
--
GitLab
3 years, 7 months