Files
linux-kernel-module-cheat/CONTRIBUTING.adoc
Ciro Santilli 0c2bd829d4 qemu 2.11
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
2018-02-20 22:44:45 +00:00

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`.