public inbox for intel-gfx@lists.freedesktop.org
 help / color / mirror / Atom feed
* IGT conventions
@ 2014-01-15 23:26 Jeff McGee
  2014-01-15 23:55 ` Daniel Vetter
  0 siblings, 1 reply; 6+ messages in thread
From: Jeff McGee @ 2014-01-15 23:26 UTC (permalink / raw)
  To: intel-gfx

I have a few questions about conventions observed in writing IGT tests.

I don't see any standard wrapper for logging other than the logging that goes
with certain igt_ control flow functions. Is it recommended to limit logging to
just these? I see some different approaches to supporting verbose modes. Is
it just up to each test?

Any recommendations on subtest granularity? Testing boils down to repeated
cycles of 'do something' then 'assert something'. Just wondering if there is a
guideline on how many of those cycles should each subtest contain. Probably
this is very case specific.

Also wondering if something like an igt_warn function to go with igt_require
and igt_assert has been considered. There might be a case where some condition
is not met which causes the test to become limited in its effectiveness but
still valid. We might still want to run the test and let it pass but attach a
caveat. Or would adding this gray area just be too complicating.

Thanks
Jeff

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

end of thread, other threads:[~2014-01-22 20:53 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-01-15 23:26 IGT conventions Jeff McGee
2014-01-15 23:55 ` Daniel Vetter
2014-01-16  9:27   ` Daniel Vetter
2014-01-16 16:43     ` Jeff McGee
2014-01-22 20:40       ` Jeff McGee
2014-01-22 20:53         ` Daniel Vetter

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