[LTP] [PATCH] cpuhotplug05.sh: Rewrite test case
Martin Doucha
mdoucha@suse.cz
Mon Dec 9 13:50:59 CET 2019
On 12/9/19 4:13 AM, Xiao Yang wrote:
>> Your new scenario has two problems:
>>
>> - You have to run at least two test loops to verify that reactivating a
>> CPU doesn't break /proc/stat entries.
>
> I think running cpuhotplug05.sh with -i 2 can verfiy this point.
>
> Perhaps we can add -i option to runtest/cpuhotplug, or do you prefer to
> keep the original scenario?
I'd prefer keeping the original scenario (with your version of cleanup).
Running extra iterations of the same test should not be required to get
the full intended test coverage.
>> - Also consider doing the above check for all CPUs to increase test
>> coverage.
>
> Is it necessary to add above check for all CPUs?
>
> This test is designed to test specified CPU so you can test each CPU by
> using -c option.
It's not necessary but it'd be a nice addition. Note that running the
test script multiple times with different -c arguments does not fully
cover this extra check. Turning a CPU core off and on again might reset
its /proc/stat line into a sane state while breaking all the others.
--
Martin Doucha mdoucha@suse.cz
QA Engineer for Software Maintenance
SUSE LINUX, s.r.o.
CORSO IIa
Krizikova 148/34
186 00 Prague 8
Czech Republic
More information about the ltp
mailing list