]> git.ipfire.org Git - thirdparty/dracut.git/blame - fedora-test.sh
test: use dd to write status to marker disk
[thirdparty/dracut.git] / fedora-test.sh
CommitLineData
3c1a083e
HH
1#!/bin/bash
2
3set -ex
4
65d16d19 5[[ -d ${0%/*} ]] && cd ${0%/*}
3c1a083e
HH
6
7RUN_ID="$1"
65d16d19 8TESTS=$2
3c1a083e 9
3c1a083e
HH
10./configure
11
12NCPU=$(getconf _NPROCESSORS_ONLN)
13
9c034dc3
HH
14if ! [[ $TESTS ]]; then
15 make -j$NCPU all syncheck rpm logtee
16else
55a974ba 17 make -j$NCPU enable_documentation=no all logtee
9c034dc3
HH
18
19 cd test
20
69341c95 21 time sudo LOGTEE_TIMEOUT_MS=300000 make \
55a974ba 22 enable_documentation=no \
9c034dc3 23 KVERSION=$(rpm -qa kernel --qf '%{VERSION}-%{RELEASE}.%{ARCH}\n' | sort -rn | head -1) \
3aae122c 24 DRACUT_NO_XATTR=1 \
9c034dc3
HH
25 TEST_RUN_ID=$RUN_ID \
26 ${TESTS:+TESTS="$TESTS"} \
27 -k V=2 \
28 check
29fi