Re: Unittests

2009-12-18 Thread Carles Pina i Estany
Hi, On Dec/17/2009, BVK Chaitanya wrote: > I attached a new patch, which has an example gettext_1.in testcase -- > it doesn't yet do what you wanted, but is the starter. > > Let me know your comments. When I will check I will tell you something :-) (I will do it in some days/during holidays...

Re: Unittests

2009-12-17 Thread BVK Chaitanya
Hi, an update is > doing this already.  I hit these below problems, but i have > workarounds in mind: > >  a.  Option for not to display grub prompt (add PS1 environment variable ???) >  b.  Option to set noecho flag to tty. >  c.  Option to disable NCURSES escape sequences for serial terminal >

Re: Unittests

2009-12-16 Thread BVK Chaitanya
Hi, On Thu, Dec 17, 2009 at 5:15 AM, Carles Pina i Estany wrote: > > when I said "it's very easy" I was thinking more like "you explain to me > how the unittest infrastructure works and I write the test" more than > the other way. But no problem at all if you want to write it! > For scripted tes

Re: Unittests

2009-12-16 Thread Carles Pina i Estany
Hi, On Dec/16/2009, BVK Chaitanya wrote: > On Tue, Dec 15, 2009 at 5:18 AM, Carles Pina i Estany wrote: > > > > Writing a unittest for gettext it's very easy: it just needs a couple of > > .mo and a script executing gettext "string" and checking that the result > > is "string translated". Will g

Re: Unittests

2009-12-16 Thread BVK Chaitanya
On Tue, Dec 15, 2009 at 5:18 AM, Carles Pina i Estany wrote: > > Writing a unittest for gettext it's very easy: it just needs a couple of > .mo and a script executing gettext "string" and checking that the result > is "string translated". Will get more interesting when ngettext will > come too :-)

Re: Unittests

2009-12-14 Thread BVK Chaitanya
Hi Carles, Yes, I wrote unit testing framework and is available as a patch here: http://lists.gnu.org/archive/html/grub-devel/2009-11/msg00349.html It is not reviewed and is very basic as of now. It has no example for scripted tests, but can be added using check_SCRIPTS make/rmk variable, simil

Unittests

2009-12-14 Thread Carles Pina i Estany
Hello, I remember that BVK was interested to add some unit tests in Grub2. Soon, when gettext will be a bit more far I' could write a unit test for gettext module (habit from work :-) -actually I wanted to do even if I don't publish it). Writing a unittest for gettext it's very easy: it just ne