Harald Hoyer
4 years ago
14 changed files with 164 additions and 54 deletions
@ -0,0 +1,29 @@
@@ -0,0 +1,29 @@
|
||||
## The test container is created with https://github.com/dracutdevs/fedora-container |
||||
|
||||
name: Fedora-30 |
||||
|
||||
on: |
||||
push: |
||||
branches: |
||||
- 'master' |
||||
tags: |
||||
- '*' |
||||
pull_request: |
||||
|
||||
jobs: |
||||
test: |
||||
runs-on: ubuntu-latest |
||||
#container: quay.io/haraldh/dracut-fedora:30 |
||||
timeout-minutes: 30 |
||||
strategy: |
||||
matrix: |
||||
test: [ "01", "02", "03", "04", "10", "11", "12", "13", "14", "15", "17", "20", "30", "31", "40", "50", "60" ] |
||||
fail-fast: false |
||||
steps: |
||||
- name: "Checkout Repository" |
||||
uses: actions/checkout@v2 |
||||
with: |
||||
fetch-depth: 0 |
||||
|
||||
- name: "TEST-${{ matrix.test }}" |
||||
run: docker run --privileged -v $(pwd)/:/dracut quay.io/haraldh/dracut-fedora:30 /dracut/fedora-test-github.sh "TEST-${{ matrix.test }}" ${{ matrix.test }} |
@ -0,0 +1,29 @@
@@ -0,0 +1,29 @@
|
||||
## The test container is created with https://github.com/dracutdevs/fedora-container |
||||
|
||||
name: Fedora-31 |
||||
|
||||
on: |
||||
push: |
||||
branches: |
||||
- 'master' |
||||
tags: |
||||
- '*' |
||||
pull_request: |
||||
|
||||
jobs: |
||||
test: |
||||
runs-on: ubuntu-latest |
||||
#container: quay.io/haraldh/dracut-fedora:30 |
||||
timeout-minutes: 30 |
||||
strategy: |
||||
matrix: |
||||
test: [ "01", "02", "03", "04", "10", "11", "12", "13", "14", "15", "17", "20", "30", "31", "40", "50", "60" ] |
||||
fail-fast: false |
||||
steps: |
||||
- name: "Checkout Repository" |
||||
uses: actions/checkout@v2 |
||||
with: |
||||
fetch-depth: 0 |
||||
|
||||
- name: "TEST-${{ matrix.test }}" |
||||
run: docker run --privileged -v $(pwd)/:/dracut quay.io/haraldh/dracut-fedora:31 /dracut/fedora-test-github.sh "TEST-${{ matrix.test }}" ${{ matrix.test }} |
@ -0,0 +1,28 @@
@@ -0,0 +1,28 @@
|
||||
#!/bin/bash |
||||
|
||||
set -ex |
||||
|
||||
[[ -d ${0%/*} ]] && cd ${0%/*} |
||||
|
||||
RUN_ID="$1" |
||||
TESTS=$2 |
||||
|
||||
./configure |
||||
|
||||
NCPU=$(getconf _NPROCESSORS_ONLN) |
||||
|
||||
if ! [[ $TESTS ]]; then |
||||
make -j$NCPU all syncheck rpm logtee |
||||
else |
||||
make -j$NCPU all logtee |
||||
|
||||
cd test |
||||
|
||||
time LOGTEE_TIMEOUT_MS=590000 make \ |
||||
KVERSION=$(rpm -qa kernel --qf '%{VERSION}-%{RELEASE}.%{ARCH}\n' | sort -rn | head -1) \ |
||||
DRACUT_NO_XATTR=1 \ |
||||
TEST_RUN_ID=$RUN_ID \ |
||||
${TESTS:+TESTS="$TESTS"} \ |
||||
-k V=1 \ |
||||
check |
||||
fi |
Loading…
Reference in new issue