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