1234567891011121314151617181920212223242526272829303132333435363738 |
- = 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;"'
- ./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`.
|