[LTP] [RFC] ltp test add reboot function

Cyril Hrubis chrubis@suse.cz
Mon Aug 24 09:42:26 CEST 2020


Hi!
> I want to add a reboot function in LTP for my team write a memory page
> related case???
> and need reboot to make the memory cache or some likely it pure clear.
> 
> So I want to add a tst_needs_reboot. when it was set, reboot the
> machine and continue run test from the point before.
>
> I think  this requirement is meaningful??? So can you give me some advise?

Yes it is, actually you are not the only one who needs that. There are
plenty of other testcases that will have to reboot the machine, for
example the kexec() syscall tests, MCE injection tests, etc.

What I wanted to add is a bit similar to your proposal.

I wanted to add reboots_machine flag to the tst_test structure, which
will inform the test framework that the test will reboot the machine in
the middle of the test.

* The framework will have to inevitably run on a differen machine, but the
  runltp-ng already does that.

* The framework will reconnect to the machine after a reboot and
  re-execute the test with a flag that would say that this is a second
  stage of the test, i.e. after reboot.

-- 
Cyril Hrubis
chrubis@suse.cz


More information about the ltp mailing list