Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a proper support for a machine reboot #12

Open
metan-ucw opened this issue Feb 19, 2024 · 1 comment
Open

Add a proper support for a machine reboot #12

metan-ucw opened this issue Feb 19, 2024 · 1 comment
Labels
enhancement New feature or request

Comments

@metan-ucw
Copy link
Member

metan-ucw commented Feb 19, 2024

There are several different test types that cause reboot/crash of the SUT. Examples are reboot(), kexec() syscalls, MCE error injection, kernel crash dump testing, etc. Currently such tests are impossible to implement and many of the features are untested.

To get this working we need:

  • add .reeboots_sut flag into the tst_test structure
  • kirk has to parse the metadata and expect the SUT to be rebooted after such tests
    • such test cannot run in parallel
    • kirk has to be able to reestablish the connection to SUT after it booted up
  • these tests would need additional command line parameter since the test binary will be executed twice
    • first time the test is executed before reboot
    • second time it's executed after reboot
    • these test must just print warning and do not do anything if this parameter is not provided

Example workflow would be:

  • kirk executes reboot01 -P1 that calls reboot() syscall to trigger the system reboot
  • kirk waits for the machine to shutdown and boot
  • once machine is up again kirk executes reboot01 -P2 which would check that system is freshly booted
    (uptime is small enough or something similar)
@metan-ucw metan-ucw added the enhancement New feature or request label Feb 19, 2024
@metan-ucw
Copy link
Member Author

@tbird20d FYI

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant