--- /dev/null
+## 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 }}
--- /dev/null
+## 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 }}
- IMAGE=latest TESTS=50
- IMAGE=latest TESTS=30
- IMAGE=latest TESTS=31
+ - IMAGE=latest TESTS=40
- IMAGE=latest TESTS=60
- - IMAGE=latest TESTS=70
- IMAGE=latest TESTS=99
- IMAGE=latest TESTS=02
- IMAGE=latest TESTS=03
git describe --tags || :
script:
-- docker run --privileged -it -v $(pwd)/:/dracut fedora:$IMAGE /dracut/fedora-test.sh $IMAGE-$$ "$TESTS"
+- docker run --privileged -it -v $(pwd)/:/dracut quay.io/haraldh/dracut-fedora:$IMAGE /dracut/fedora-test.sh $IMAGE-$$ "$TESTS"
notifications:
webhooks:
dracut is an event driven initramfs infrastructure.
[![Build Status](https://travis-ci.org/dracutdevs/dracut.svg?branch=master)](https://travis-ci.org/dracutdevs/dracut)
+![Fedora-30](https://github.com/dracutdevs/dracut/workflows/Fedora-30/badge.svg?branch=master)
+![Fedora-31](https://github.com/dracutdevs/dracut/workflows/Fedora-31/badge.svg?branch=master)
dracut (the tool) is used to create an initramfs image by copying tools
and files from an installed system and combining it with the
--- /dev/null
+#!/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
RUN_ID="$1"
TESTS=$2
-dnf -y update --best --allowerasing &>/dev/null
-
-dnf -y install --best --allowerasing \
- dash \
- asciidoc \
- mdadm \
- lvm2 \
- dmraid \
- cryptsetup \
- nfs-utils \
- nbd \
- dhcp-server \
- scsi-target-utils \
- iscsi-initiator-utils \
- strace \
- btrfs-progs \
- kmod-devel \
- gcc \
- bzip2 \
- xz \
- tar \
- wget \
- rpm-build \
- make \
- git \
- bash-completion \
- sudo \
- kernel \
- dhcp-client \
- /usr/bin/qemu-kvm \
- /usr/bin/qemu-system-$(uname -i) \
- e2fsprogs \
- tcpdump \
- $NULL &>/dev/null
-
./configure
NCPU=$(getconf _NPROCESSORS_ONLN)
time sudo 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=2 \
# Cleanup the terminal if we have one
tty -s && stty sane
- echo Sleeping 10 seconds to give the server a head start
- sleep 10
+ if ! [[ $SERIAL ]]; then
+ echo "Waiting for the server to startup"
+ while : ; do
+ grep Serving "$TESTDIR"/server.log && break
+ sleep 1
+ done
+ else
+ echo Sleeping 10 seconds to give the server a head start
+ sleep 10
+ fi
}
client_test() {
# Cleanup the terminal if we have one
tty -s && stty sane
- echo Sleeping 20 seconds to give the server a head start
- sleep 20
+ if ! [[ $SERIAL ]]; then
+ echo "Waiting for the server to startup"
+ while : ; do
+ grep Serving "$TESTDIR"/server.log && break
+ sleep 1
+ done
+ else
+ echo Sleeping 10 seconds to give the server a head start
+ sleep 10
+ fi
}
run_client() {
# Cleanup the terminal if we have one
tty -s && stty sane
- echo Sleeping 20 seconds to give the server a head start
- sleep 20
+ if ! [[ $SERIAL ]]; then
+ echo "Waiting for the server to startup"
+ while : ; do
+ grep Serving "$TESTDIR"/server.log && break
+ sleep 1
+ done
+ else
+ echo Sleeping 10 seconds to give the server a head start
+ sleep 10
+ fi
}
run_client() {
# Cleanup the terminal if we have one
tty -s && stty sane
- echo Sleeping 10 seconds to give the server a head start
- sleep 10
+ if ! [[ $SERIAL ]]; then
+ echo "Waiting for the server to startup"
+ while : ; do
+ grep Serving "$TESTDIR"/server.log && break
+ sleep 1
+ done
+ else
+ echo Sleeping 10 seconds to give the server a head start
+ sleep 10
+ fi
}
client_test() {
# Cleanup the terminal if we have one
tty -s && stty sane
- echo Sleeping 10 seconds to give the server a head start
- sleep 10
+ if ! [[ $SERIAL ]]; then
+ echo "Waiting for the server to startup"
+ while : ; do
+ grep Serving "$TESTDIR"/server.log && break
+ sleep 1
+ done
+ else
+ echo Sleeping 10 seconds to give the server a head start
+ sleep 10
+ fi
}
client_test() {
#sh -i
#tcpdump -i ens3
# Wait forever for the VM to die
-echo "Serving NFS mounts"
+echo "Serving"
while :; do
sleep 10
>/dev/watchdog
# Cleanup the terminal if we have one
tty -s && stty sane
- echo Sleeping 10 seconds to give the server a head start
- sleep 10
+ if ! [[ $SERIAL ]]; then
+ echo "Waiting for the server to startup"
+ while : ; do
+ grep Serving "$TESTDIR"/server.log && break
+ sleep 1
+ done
+ else
+ echo Sleeping 10 seconds to give the server a head start
+ sleep 10
+ fi
}
client_test() {
-initrd "$TESTDIR"/initramfs.testing
fi
- {
+ {
read OK
if [[ "$OK" != "OK" ]]; then
echo "CLIENT TEST END: $test_name [FAILED - BAD EXIT]"
# Cleanup the terminal if we have one
tty -s && stty sane
- echo Sleeping 10 seconds to give the server a head start
- sleep 10
+ if ! [[ $SERIAL ]]; then
+ echo "Waiting for the server to startup"
+ while : ; do
+ grep Serving "$TESTDIR"/server.log && break
+ sleep 1
+ done
+ else
+ echo Sleeping 10 seconds to give the server a head start
+ sleep 10
+ fi
}
client_test() {
-initrd "$TESTDIR"/initramfs.testing
fi
- {
+ {
read OK
if [[ "$OK" != "OK" ]]; then
echo "CLIENT TEST END: $test_name [FAILED - BAD EXIT]"