]>
Commit | Line | Data |
---|---|---|
3aae122c HH |
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 | |
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 | |
30 | fi |