]> git.ipfire.org Git - thirdparty/dracut.git/blame - fedora-test-github.sh
cms/cmssetup.sh: use $name instead of $env{INTERFACE}
[thirdparty/dracut.git] / fedora-test-github.sh
CommitLineData
3aae122c
HH
1#!/bin/bash
2
3set -ex
4
5[[ -d ${0%/*} ]] && cd ${0%/*}
6
7RUN_ID="$1"
8TESTS=$2
9
10./configure
11
12NCPU=$(getconf _NPROCESSORS_ONLN)
13
14if ! [[ $TESTS ]]; then
15 make -j$NCPU all syncheck rpm logtee
16else
355df861
FS
17 [[ $TESTS == "99" ]] && make_docs=yes || make_docs=no
18 make -j$NCPU enable_documentation=$make_docs all logtee
3aae122c
HH
19
20 cd test
21
22 time LOGTEE_TIMEOUT_MS=590000 make \
355df861 23 enable_documentation=$make_docs \
3aae122c
HH
24 KVERSION=$(rpm -qa kernel --qf '%{VERSION}-%{RELEASE}.%{ARCH}\n' | sort -rn | head -1) \
25 DRACUT_NO_XATTR=1 \
26 TEST_RUN_ID=$RUN_ID \
27 ${TESTS:+TESTS="$TESTS"} \
28 -k V=1 \
29 check
30fi