You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
46 lines
1.3 KiB
46 lines
1.3 KiB
![]()
5 years ago
|
#!/bin/bash
|
||
|
|
||
|
set -ex
|
||
|
|
||
![]()
4 years ago
|
[[ -d ${0%/*} ]] && cd "${0%/*}"/../
|
||
![]()
5 years ago
|
|
||
|
RUN_ID="$1"
|
||
|
TESTS=$2
|
||
|
|
||
|
./configure
|
||
|
|
||
|
NCPU=$(getconf _NPROCESSORS_ONLN)
|
||
|
|
||
|
if ! [[ $TESTS ]]; then
|
||
![]()
5 years ago
|
# GitHub workflows fetch a clone of the dracut repository which doesn't
|
||
|
# contain git tags, thus "breaking" the RPM build in certain situations
|
||
|
# i.e.:
|
||
|
# DRACUT_MAIN_VERSION in Makefile is defined as an output of `git describe`,
|
||
|
# which in full git clone returns a tag with a numeric version. However,
|
||
|
# without tags it returns SHA of the last commit, which later propagates into
|
||
|
# `Provides:` attribute of the built RPM and can break dependency tree when
|
||
|
# installed
|
||
|
[[ -d .git ]] && git fetch --tags && git describe --tags
|
||
![]()
4 years ago
|
make -j "$NCPU" all syncheck rpm logtee
|
||
![]()
5 years ago
|
else
|
||
![]()
5 years ago
|
if [[ $TESTS == "99" ]]; then
|
||
|
[[ -d .git ]] && git fetch --tags && git describe --tags
|
||
|
make_docs=yes
|
||
|
else
|
||
|
make_docs=no
|
||
|
fi
|
||
|
|
||
![]()
4 years ago
|
make -j "$NCPU" enable_documentation=$make_docs all logtee
|
||
![]()
5 years ago
|
|
||
|
cd test
|
||
|
|
||
|
time LOGTEE_TIMEOUT_MS=590000 make \
|
||
![]()
4 years ago
|
enable_documentation=$make_docs \
|
||
|
KVERSION="$(rpm -qa kernel --qf '%{VERSION}-%{RELEASE}.%{ARCH}\n' | sort -rn | head -1)" \
|
||
|
DRACUT_NO_XATTR=1 \
|
||
|
TEST_RUN_ID="$RUN_ID" \
|
||
|
${TESTS:+TESTS="$TESTS"} \
|
||
|
-k V=1 \
|
||
|
check
|
||
![]()
5 years ago
|
fi
|