grub-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[RFC][PATCH] Basic unit testing support for GRUB


From: BVK
Subject: [RFC][PATCH] Basic unit testing support for GRUB
Date: Fri, 13 Nov 2009 23:15:41 +0530

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


reply via email to

[Prev in Thread] Current Thread [Next in Thread]