mirror of
https://github.com/cirosantilli/linux-kernel-module-cheat.git
synced 2026-01-23 02:05:57 +01:00
test-gdb: can now run in either userland or baremetal modes
Selection with --mode userland (default because has x86_64) or --mode baremetal. This is the first userland tool where this choice is done on the command line, which led to a refactor of supported_archs and is_baremetal and is_userland into a single self.env['mode'].
This commit is contained in:
10
README.adoc
10
README.adoc
@@ -15293,13 +15293,21 @@ Most userland programs that don't rely on kernel modules can also be tested in u
|
||||
|
||||
===== GDB tests
|
||||
|
||||
We have some link:https://github.com/pexpect/pexpect[pexpect] automated tests for the baremetal programs!
|
||||
We have some link:https://github.com/pexpect/pexpect[pexpect] automated tests for GDB for both userland and baremetal programs!
|
||||
|
||||
Run the userland tests:
|
||||
|
||||
....
|
||||
./build --all-archs test-gdb && \
|
||||
./test-gdb --all-archs --all-emulators
|
||||
....
|
||||
|
||||
Run the baremetal tests instead:
|
||||
|
||||
....
|
||||
./test-gdb --all-archs --all-emulators --mode baremetal
|
||||
....
|
||||
|
||||
Sources:
|
||||
|
||||
* link:test-gdb[]
|
||||
|
||||
Reference in New Issue
Block a user