selftests/bpf: Support local rootfs image for vmtest
authorPu Lehui <pulehui@huawei.com>
Thu, 5 Sep 2024 08:13:56 +0000 (08:13 +0000)
committerAlexei Starovoitov <ast@kernel.org>
Thu, 5 Sep 2024 20:13:40 +0000 (13:13 -0700)
commit2294073dce32af8535e9d4a32e1efdeea35c1786
treeee4ca3dad20d358ed85ae6515b0c9c18a1326edb
parent0c3fc330be6d85febd0f68b66c657c752e9cd63c
selftests/bpf: Support local rootfs image for vmtest

Support vmtest to use local rootfs image generated by [0] that is
consistent with BPF CI. Now we can specify the local rootfs image
through the `-l` parameter like as follows:

  vmtest.sh -l ./libbpf-vmtest-rootfs-2024.08.22-noble-amd64.tar.zst -- ./test_progs

Meanwhile, some descriptions have been flushed.

Link: https://github.com/libbpf/ci/blob/main/rootfs/mkrootfs_debian.sh
Acked-by: Eduard Zingerman <eddyz87@gmail.com>
Signed-off-by: Pu Lehui <pulehui@huawei.com>
Link: https://lore.kernel.org/r/20240905081401.1894789-6-pulehui@huaweicloud.com
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
tools/testing/selftests/bpf/README.rst
tools/testing/selftests/bpf/vmtest.sh