From: Cyril Hrubis <chrubis@suse.cz>
To: ltp@lists.linux.it
Subject: [LTP] [RFC] ltp test add reboot function
Date: Mon, 24 Aug 2020 09:42:26 +0200 [thread overview]
Message-ID: <20200824074226.GB2466@yuki.lan> (raw)
In-Reply-To: <CAF12kFuE=4-T=eitwSb0F3fkGLLsmM3VEg4VNbioqJt2JiAEww@mail.gmail.com>
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
next prev parent reply other threads:[~2020-08-24 7:42 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-08-21 2:29 [LTP] [RFC] ltp test add reboot function Cixi Geng
2020-08-21 12:23 ` Petr Vorel
2020-08-24 7:42 ` Cyril Hrubis [this message]
2020-08-25 1:52 ` Cixi Geng
2020-08-28 13:06 ` Cyril Hrubis
2020-08-28 15:37 ` Bird, Tim
2020-09-03 1:48 ` Cixi Geng
2020-09-03 3:13 ` Bird, Tim
2020-09-03 9:24 ` Cyril Hrubis
2020-09-30 1:55 ` Cixi Geng
2020-09-30 14:05 ` Cyril Hrubis
2020-09-30 16:01 ` Bird, Tim
2020-10-01 11:03 ` Cyril Hrubis
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20200824074226.GB2466@yuki.lan \
--to=chrubis@suse.cz \
--cc=ltp@lists.linux.it \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox