public inbox for devel@edk2.groups.io
 help / color / mirror / Atom feed
* VariablePolicy: Final Changes Thread 2 - ECC & UnitTest
@ 2020-10-07  0:28 Bret Barkelew
  2020-10-07  1:46 ` Michael D Kinney
  0 siblings, 1 reply; 9+ messages in thread
From: Bret Barkelew @ 2020-10-07  0:28 UTC (permalink / raw)
  To: devel@edk2.groups.io

[-- Attachment #1: Type: text/plain, Size: 1162 bytes --]

I’ve worked through all the ECC issues with Variable Policy (AND the UnitTests) on this branch:
Commits · corthon/edk2 (github.com)<https://github.com/corthon/edk2/commits/var_policy_dev_submission_v8>

I even wrote the Main() entry point lib that Laszlo suggested (it works rather nicely):
TEMP: Staging for HostTest entry point · corthon/edk2@4ce5210 (github.com)<https://github.com/corthon/edk2/commit/4ce52108b3e1bcb2ba78995be94c3949fe647eda>

However, there’s one that I just can’t get past and I would like to take it up with the community. I don’t think that UnitTests should have to deal with the “can’t initialize variables in declaration” check. Almost none of the solutions that I tested worked, and the ones that did were too cumbersome. They failed on two key points that are important for test writing:

  *   They were annoying to write ===> fewer tests.
  *   They moved even more of the test case data away from the test ===> harder to read tests.

I would like to move for an exception for unit tests (or at least host-based unit tests), but I don’t know how to accomplish that from a technical standpoint.

Thoughts?

- Bret


[-- Attachment #2: Type: text/html, Size: 5456 bytes --]

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

end of thread, other threads:[~2020-10-08 13:10 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-10-07  0:28 VariablePolicy: Final Changes Thread 2 - ECC & UnitTest Bret Barkelew
2020-10-07  1:46 ` Michael D Kinney
2020-10-07 13:42   ` [edk2-devel] " Laszlo Ersek
2020-10-07 14:27     ` Andrew Fish
2020-10-07 15:50       ` Laszlo Ersek
2020-10-07 16:44         ` [EXTERNAL] " Bret Barkelew
2020-10-07 18:19           ` Michael D Kinney
2020-10-08 13:10           ` Laszlo Ersek
2020-10-07 16:24     ` Michael D Kinney

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