CONTRIBUTING.adoc 666 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. = CONTRIBUTING
  2. == Testing
  3. Testing that should be done for every functional patch.
  4. === Guest testing
  5. ....
  6. ./run -a x86_64 -e '- lkmc_eval="/insrm.sh hello 5;wget -S google.com;poweroff;"'
  7. ./run -a arm -e '- lkmc_eval="/insrm.sh hello 5;wget -S google.com;poweroff;"'
  8. ....
  9. Should:
  10. * boot
  11. * show `hello.ko` `init` and `exit` messages
  12. * make a network request
  13. * shutdown gracefully
  14. 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.
  15. === Host testing
  16. Shell 1:
  17. ....
  18. ./run -d
  19. ....
  20. Shell 2:
  21. ....
  22. ./rungdb start_kernel
  23. ....
  24. Should break GDB at `start_kernel`.