Hi,

Attached is the (experimental branch) patch for unit testing that I
have in mind for GRUB.  Please let me know your comments.

It provides "make check" target which would build and execute test
programs from "tests" directory.  We can write small programs to test
specific functions in GRUB.  For example, attached patch has sample
program comparing grub_sprintf behavior against standard sprintf
output (from glibc).

Note that it currently has few gotchas, like using TARGET_CC instead
of BUILD_CC, no support for XPASS, XFAIL tests, etc.



regards,
-- 
bvk.chaitanya

Attachment: unit-testing-support.patch
Description: Binary data

_______________________________________________
Grub-devel mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/grub-devel

Reply via email to