test-modules: convert to use LkmcCliFunction

This commit is contained in:
Ciro Santilli
2019-01-22 00:00:00 +00:00
committed by Ciro Santilli 六四事件 法轮功
parent 4a92813252
commit 718941f3cf
8 changed files with 112 additions and 77 deletions

View File

@@ -3159,15 +3159,17 @@ Result on <<p51>> at bad30f513c46c1b0995d3a10c0d9bc2a33dc4fa0:
=== User mode tests
Automatically run non-interactive userland tests that don't depend on any kernel modules:
Automatically run non-interactive userland tests that can be run in user mode simulation:
....
./build-userland --all-archs --all-emulators
./build-userland --all-archs --all-emulators --static --userland-build-id static
./test-userland --all-archs --all-emulators
./test-user-mode --all-archs --all-emulators
....
Source: link:test-userland[]
Source: link:test-user-mode[]
This testing excludes notably kernel module tests which depend on a full running kernel.
The gem5 tests require building statically with build id `static`, see also: <<gem5-syscall-emulation-mode>>. TODO automate this better.
@@ -11696,11 +11698,11 @@ They contain data structs and magic constant for kernel to userland communicatio
Userland test programs. They can be used in the following ways:
* inside a full system simulation
* inside a full system simulation, e.g.: <<qemu-buildroot-setup>>
* inside <<user-mode-simulation>>
* directly on the host
* directly on the host: <<userland-directory-host-build>>
For usage inside full system, first ensure that Buildroot has been built for the toolchain, and then build the examples with:
For usage inside full system simulation, first ensure that Buildroot has been built for the toolchain, and then build the examples with:
....
./build-userland
@@ -11898,7 +11900,7 @@ Sources:
* link:build-test[]
* link:test[]
* link:test-modules[]
* link:test-userland[]
* <<user-mode-tests>>
* <<baremetal-tests>>
@@ -11909,7 +11911,7 @@ See the sources of those test scripts to learn how to run more specialized tests
One important tip is that you can select multiple archs and emulators of interest with a command such as:
....
./test-userland \
./test-user-mode \
--arch x86_64 \
--arch aarch64 \
--emulator gem5 \