]> git.ipfire.org Git - thirdparty/dracut.git/blob - fedora-test.sh
dracut_mkdir(): create parent directories as needed.
[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 [[ $TESTS == "99" ]] && make_docs=yes || make_docs=no
18 make -j$NCPU enable_documentation=$make_docs all logtee
19
20 cd test
21
22 time sudo LOGTEE_TIMEOUT_MS=300000 make \
23 enable_documentation=$make_docs \
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=2 \
29 check
30 fi