public inbox for kernelci@lists.linux.dev
 help / color / mirror / Atom feed
* Baseline test plan and bootrr
@ 2019-02-07 18:54 Guillaume Tucker
  2019-02-07 19:49 ` Anibal Limon
  2019-02-11 13:16 ` Tomeu Vizoso
  0 siblings, 2 replies; 10+ messages in thread
From: Guillaume Tucker @ 2019-02-07 18:54 UTC (permalink / raw)
  To: kernelci; +Cc: Enric Balletbo i Serra

Hi,

Currently, boot tests entirely rely on the LAVA logic to detect
when a login prompt has been reached.  While this mostly works,
it does not guarantee that the platform is actually usable or
that everything went smoothly during the boot.

For this reason, it would seem useful to introduce a "baseline"
test plan which would essentially boot and then do some fast
checks to verify that nothing is obviously broken.  This can
include things like grepping the kernel log for any errors and
checking that drivers have been initialised correctly.  There's a
lot that can be done in a few seconds with a basic ramdisk.


So we could have a list of regular expressions to detect any
issues in the kernel log and report a LAVA test case result for
each of them.  The log fragment associated with each match should
also be available to include the actual errors in a report.
Doing this on the device means we keep the test definition in the
same location as the other test plans, and we can run it like any
test suite.


Another useful tool is bootrr, which my colleague Enric has
started to use on some Chromebook devices.  It can check that
drivers have been loaded and devices probed correctly.  It's
entirely written in shell scripts so it can be run in our current
buildroot rootfs and can easily be extended to run other checks.
It looks up the device tree platform name and uses that to call a
platform-specific script with relevant drivers and devices.
Here's Enric's branch with such scripts for a few devices and a
LAVA test definition:

  https://github.com/eballetbo/bootrr/commits/master

and some sample runs with buildroot:

  https://lava.collabora.co.uk/scheduler/job/1478554
  https://lava.collabora.co.uk/scheduler/job/1478553


Does this look like something worth running in KernelCI?  Should
we just have a bootrr test plan or go for the "baseline" test
plan I'm suggesting, to be run on all devices and ultimately
instead of the current boot-to-login jobs?

Best wishes,
Guillaume

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2019-05-02 11:27 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <158129CBC2E3B0B8.7959@groups.io>
2019-02-12 13:46 ` Baseline test plan and bootrr Guillaume Tucker
2019-02-14 19:51   ` Kevin Hilman
2019-05-02 11:27     ` Guillaume Tucker
2019-02-07 18:54 Guillaume Tucker
2019-02-07 19:49 ` Anibal Limon
2019-02-11 13:16 ` Tomeu Vizoso
2019-02-11 17:18   ` eballetbo
2019-02-12  6:52     ` Tomeu Vizoso
2019-02-12 12:33       ` Mark Brown
2019-02-12 13:41       ` Guillaume Tucker

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox