Commit 44e2a958 authored by Mo Zhou's avatar Mo Zhou

Add autopkgtest script to test zfs-dkms build.

parent 9ae1957b
Pipeline #30795 failed with stages
in 2 minutes and 30 seconds
Tests: kernel-smoke-test Tests: kernel-smoke-test
Restrictions: needs-root, isolation-machine Restrictions: needs-root, isolation-machine
Depends: zfsutils-linux [ amd64 arm64 ppc64el s390x ], zfs-zed [ amd64 arm64 ppc64el s390x ], zfs-initramfs [ amd64 arm64 ppc64el s390x ], zfs-dkms [ amd64 arm64 ppc64el s390x ], zfs-test [ amd64 arm64 ppc64el s390x ] Depends: zfsutils-linux [ amd64 arm64 ppc64el s390x ], zfs-zed [ amd64 arm64 ppc64el s390x ], zfs-initramfs [ amd64 arm64 ppc64el s390x ], zfs-dkms [ amd64 arm64 ppc64el s390x ], zfs-test [ amd64 arm64 ppc64el s390x ]
Test: dkms-zfs-test
Restrictions: needs-root,
Depends: dkms, zfs-dkms [ amd64 arm64 ppc64el s390x ], linux-headers-amd64 [ amd64 ],
#!/bin/sh
set -e
kver=$(dpkg -s linux-headers-amd64 | grep Depends: | sed -e 's@.*linux-headers-\(.*-amd64\).*@\1@')
zfsver=$(dpkg -s zfs-dkms | grep Version: | sed -e 's@Version: \(.*\)-.*@\1@')
echo dkms build -k $kver zfs/$zfsver
dkms build -k $kver zfs/$zfsver
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment