mirror of
https://github.com/cirosantilli/linux-kernel-module-cheat.git
synced 2026-01-23 18:25:57 +01:00
Fixes required: - split and fakeup a clean one feature per commit history - lkmc_pci_min: use INTERFACE_CONVENTIONAL_PCI_DEVICE or an assert failed - trace event location changes, use generated trace-events-all
38 lines
669 B
Plaintext
38 lines
669 B
Plaintext
= CONTRIBUTING
|
|
|
|
== Testing
|
|
|
|
Testing that should be done for every functional patch.
|
|
|
|
=== Guest testing
|
|
|
|
....
|
|
./run -a x86_64 -e '- lkmc_eval="/insrm.sh hello 5;wget -S google.com;poweroff;"' -n
|
|
./run -a arm -e '- lkmc_eval="/insrm.sh hello 5;wget -S google.com;poweroff;"'
|
|
....
|
|
|
|
Should:
|
|
|
|
* boot
|
|
* show `hello.ko` `init` and `exit` messages
|
|
* make a network request
|
|
* shutdown gracefully
|
|
|
|
TODO automate all of this with a `/test-all.sh` script in guest which outputs to stdout `LKMC_TEST_PASS` or `LKMC_TEST_FAIL` and grep that from host.
|
|
|
|
=== Host testing
|
|
|
|
Shell 1:
|
|
|
|
....
|
|
./run -d
|
|
....
|
|
|
|
Shell 2:
|
|
|
|
....
|
|
./rungdb start_kernel
|
|
....
|
|
|
|
Should break GDB at `start_kernel`.
|