bug-bash
[Top][All Lists]
Advanced

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

Re: How to compile hashlib.c for testing?


From: Peng Yu
Subject: Re: How to compile hashlib.c for testing?
Date: Thu, 27 Dec 2018 20:28:20 -0600

We are talking about unit testing in the bash C source code, not bash scripts.

On Thu, Dec 27, 2018 at 8:03 PM G. Branden Robinson
<g.branden.robinson@gmail.com> wrote:
>
> At 2018-12-27T17:34:49-0800, Eduardo Bustamante wrote:
> > On Thu, Dec 27, 2018 at 5:15 PM Peng Yu <pengyu.ut@gmail.com> wrote:
> > (...)
> > > Since the main() function is already there, why there is not already
> > > an easy way to compile it? How do you do unit-testing then for the
> > > code?
> >
> > This is very easy to figure out from the source code, right :)?
> >
> > (Hint: there is no "unit" testing in bash)
>
> Au contraire!  :-D
>
> https://github.com/kward/shunit2
>
> Regards,
> Branden



-- 
Regards,
Peng



reply via email to

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