|
16 | 16 | repository: "linux-blktests/blktests-ci" |
17 | 17 | #We don't have to build the kernel here, as we have a cron job running on |
18 | 18 | #the k8s cluster that builds the linus-master target nightly. |
19 | | - - name: Run in VM |
| 19 | + - name: Run blktests in VM |
| 20 | + uses: ./.github/actions/kubevirt-action |
| 21 | + with: |
| 22 | + kernel_version: linus-master |
| 23 | + vm_artifact_upload_dir: blktests/results/ |
| 24 | + run_cmds: | |
| 25 | + set -e |
| 26 | + set -x |
| 27 | + uname -a |
| 28 | +
|
| 29 | + sudo dnf install -y gcc clang make util-linux llvm gawk fio udev \ |
| 30 | + kmod coreutils g++ gzip e2fsprogs xfsprogs f2fs-tools btrfs-progs \ |
| 31 | + device-mapper-multipath blktrace kernel-headers liburing \ |
| 32 | + liburing-devel nbd device-mapper ktls-utils dosfstools \ |
| 33 | + bc libnl3-cli cryptsetup sg3_utils pciutils unzip jq git wget \ |
| 34 | + meson json-c-devel openssl-devel keyutils-libs-devel dbus-devel \ |
| 35 | + swig xz-devel libcurl-devel curl libarchive libarchive-devel json-c |
| 36 | +
|
| 37 | + # mdadm has a buffer overflow in v4.3 and was fixed with this commit: |
| 38 | + # https://git.kernel.org/pub/scm/utils/mdadm/mdadm.git/commit/?id=7f960c3bd050e76f8bf0a8a0c8fbdcbaa565fc78 |
| 39 | + # The Fedora packages ship v4.3. |
| 40 | + # We are now compiling and installing mdadm from source with the most |
| 41 | + # recent known good commit. The v4.4 release does not compile. |
| 42 | +
|
| 43 | + git clone https://git.kernel.org/pub/scm/utils/mdadm/mdadm.git |
| 44 | + cd mdadm |
| 45 | + git checkout d764c4829947923142a83251296d04edaee7d2f7 |
| 46 | + make -j$(nproc) |
| 47 | + sudo make install |
| 48 | + cd - |
| 49 | +
|
| 50 | + git clone https://github.com/${{ github.repository }} nvme-cli |
| 51 | + cd nvme-cli |
| 52 | + scripts/build.sh -b release -c gcc |
| 53 | + sudo meson install -C .build-ci |
| 54 | + sudo ldconfig /usr/local/lib64 |
| 55 | +
|
| 56 | + cd - |
| 57 | + git clone https://github.com/linux-blktests/blktests.git blktests |
| 58 | +
|
| 59 | + cd blktests |
| 60 | + make |
| 61 | +
|
| 62 | + # Run blktests nvme and md group |
| 63 | + cat > config << EF |
| 64 | + TEST_DEVS=(${BDEV0}) |
| 65 | + NVMET_TRTYPES="loop rdma tcp" |
| 66 | + EF |
| 67 | + sudo ./check nvme md |
| 68 | + - name: Run nvme-cli tests in VM |
20 | 69 | uses: ./.github/actions/kubevirt-action |
21 | 70 | with: |
22 | 71 | kernel_version: linus-master |
|
0 commit comments