aboutgitcode
path: root/Makefile
diff options
context:
space:
mode:
authorSevinj Aghayeva <sevinj.aghayeva@gmail.com>2022-04-17 13:27:21 -0400
committerStefano Brivio <sbrivio@redhat.com>2022-04-21 16:40:29 +0200
commitcd7f0e77340f869cb65aa756f9f6f888a3e4d084 (patch)
tree5d5fb1f8718d2348cde93ecd933f8e5ed03bf09b /Makefile
parent4447d4b29682a5aa4b09c47de9a1659b0f167d3b (diff)
downloadmbuto-cd7f0e77340f869cb65aa756f9f6f888a3e4d084.tar
mbuto-cd7f0e77340f869cb65aa756f9f6f888a3e4d084.tar.gz
mbuto-cd7f0e77340f869cb65aa756f9f6f888a3e4d084.tar.bz2
mbuto-cd7f0e77340f869cb65aa756f9f6f888a3e4d084.tar.lz
mbuto-cd7f0e77340f869cb65aa756f9f6f888a3e4d084.tar.xz
mbuto-cd7f0e77340f869cb65aa756f9f6f888a3e4d084.tar.zst
mbuto-cd7f0e77340f869cb65aa756f9f6f888a3e4d084.zip
mbuto: enable passing multiple collections and tests to suboptions
The run_kselftest.sh script, which is run upon booting the image created by mbuto, allows specifying multiple collections and specific tests, as in: run_kselftest.sh -c "net proc" -t "x86:iopl_32 timers:rtcpie" The above command runs (1) all the tests in the net collection, (2) all the tests in the proc collection, (3) the iopl_32 test from the x86 collection, and (4) the rtcpie test from the timers collection. This patch enables the same functionality in mbuto. Now users can run mbuto as follows: mbuto -p kselftests -C "net proc" -T "x86:iopl_32 timers:rtcpie" and mbuto generates an image that runs the same set of tests. In addition, mbuto installs only the tests in the specified collections in the image. For example, for the above command line, mbuto will install all the tests in the net, proc, x86, and timers collections (but it will only run iopl_32 and rtcpie test from the last two). Mbuto also installs only the modules needed for running these tests and warns the user if there are missing modules. Mbuto also warns the user if an invalid collection name is passed to the -C suboption. Due to irregular structure of Makefiles in selftest directories, it is hard to warn the user if an invalid test name is passed to the -T option. In this case the user will find out about the mistake after the kernel boots and run_kselftest.sh fails to run the test. Signed-off-by: Sevinj Aghayeva <sevinj.aghayeva@gmail.com>
Diffstat (limited to 'Makefile')
0 files changed, 0 insertions, 0 deletions