[LTP] [RFC] ltp test add reboot function

Cixi Geng gengcixi@gmail.com
Tue Aug 25 03:52:33 CEST 2020


Thanks for you experiences on the reboot,
So far my opinion is add a reboot service by chkconfig or something like that.
the service will start runltp scripts from last break off point.
when the tst_test have .tst_needs_reboot =1 flag, it wil strore the
run status and
reboot the machine before run the test case.
Now I want to know what needs to be preserved?

Cyril Hrubis <chrubis@suse.cz> 于2020年8月24日周一 下午3:41写道:
>
> 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