Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > gnu.bash.bug > #14985

Re: How to compile hashlib.c for testing?

Path csiph.com!weretis.net!feeder6.news.weretis.net!news.linkpendium.com!news.linkpendium.com!panix!usenet.stanford.edu!not-for-mail
From Peng Yu <pengyu.ut@gmail.com>
Newsgroups gnu.bash.bug
Subject Re: How to compile hashlib.c for testing?
Date Thu, 27 Dec 2018 20:28:20 -0600
Lines 29
Approved bug-bash@gnu.org
Message-ID <mailman.6436.1545964125.1284.bug-bash@gnu.org> (permalink)
References <CABrM6wm+x0hGuSVYeRLSE9=6vuadxP++4+gSoG+Tm7_yYN4Duw@mail.gmail.com> <31ae9367-7968-aff5-d0e8-0f9da667d584@case.edu> <CABrM6w=a7NyF8xBkooeJojkAK_b=_rz9VsnWt2MWV3HN4BA9Eg@mail.gmail.com> <CAOSMAuuDQDjPandHkOC9Yv41VmmoGme3uRk8P-EJN9_ozPaoQw@mail.gmail.com> <20181228014136.emrgypsauyzdcmgz@crack.deadbeast.net>
NNTP-Posting-Host lists.gnu.org
Mime-Version 1.0
Content-Type text/plain; charset="UTF-8"
X-Trace usenet.stanford.edu 1545964126 14184 208.118.235.17 (28 Dec 2018 02:28:46 GMT)
X-Complaints-To action@cs.stanford.edu
Cc bug-bash <bug-bash@gnu.org>
To "G. Branden Robinson" <g.branden.robinson@gmail.com>
Envelope-to bug-bash@gnu.org
DKIM-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=tP4Ib2ezRxfydPmKQym9AX8CEdAKlJ21IoYCHV8UiiY=; b=uCwp7tVKxtglQ6xwI77WDz/5zv3A/BTc6mi0dX9qRoBhThw6tWsSJNWhyzgxCxMq8W Y2wgX+Uw9nG+UXf+3HUKWfED5upYmjO5XJxIysSd4w+0KqlHb6YIJFpZxkvIPhna/5wt 96brSC2V7snsgldFbP41Tu0Zvh8K4knT23NeLDMgzp2VErwKD2OOorstnEPGRpXg7ATK OWO6++tlsRyFGFNtRqo0nfsBOxkXZqyzzzXuZ7+LkvnogwjU4FiwixAvWNTzj9e5+EGR MHjzNcMCDQYIEaF1EJWN3pgSae403gtq1CnjVo6k51wPjN3N7qf1/jg1bqn/s1spl7M4 jpeg==
X-Google-DKIM-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=tP4Ib2ezRxfydPmKQym9AX8CEdAKlJ21IoYCHV8UiiY=; b=qSitBVNUTd9hxQtb+7eaLNrUzqHBj7kH0bqtwiJhN9Mtf7RrNw+k3idv61bR37LYc3 thUWwdMmHyA3rym5aztpvDZFXaa0J+YsNB3DRc4LnsMEDVLSyDD8CS0vZLT2NVM2jUPX Vwrxk6F5n1g/BYMVyuVBT58wLANrKmYi3kOlM9bXMOrRGOD8IaNKMur4oCcwKaOL5VUL II/g7+bUHYFI8Mu+FK1wz7WFqUmpZCOXlD1FJ/CLC7KXM1aBWV9r+s3QNZp4Ra340kIW 4XtmWT+6ZcXOovIqfYkEA2LnxqAl2OqworMxe2mQkCqtAM88HnaP8gdQI/0uXGGNo8xT u6Xw==
X-Gm-Message-State AA+aEWaOkOzcpj7kqBIIZu3NE9DK+cdJSSS4x6C0qo2dAjS/9oEFhn1d o5NGoiTlRqlhi3WBkRRyBszn/EMUZyncQ/bUG5U=
X-Google-Smtp-Source AFSGD/UkRyPK8tFvmWUPWhldiUGL3XwadyBjErODxDM2gdBxcCqg/5ZdTwhT/X4AgW9Nv9KgHBgXjWi/5Zn2hwhBO+E=
X-Received by 2002:a24:8e43:: with SMTP id h64mr15621102ite.26.1545964113416; Thu, 27 Dec 2018 18:28:33 -0800 (PST)
In-Reply-To <20181228014136.emrgypsauyzdcmgz@crack.deadbeast.net>
X-detected-operating-system by eggs.gnu.org: Genre and OS details not recognized.
X-Received-From 2607:f8b0:4864:20::129
X-BeenThere bug-bash@gnu.org
X-Mailman-Version 2.1.21
Precedence list
List-Id Bug reports for the GNU Bourne Again SHell <bug-bash.gnu.org>
List-Unsubscribe <https://lists.gnu.org/mailman/options/bug-bash>, <mailto:bug-bash-request@gnu.org?subject=unsubscribe>
List-Archive <http://lists.gnu.org/archive/html/bug-bash/>
List-Post <mailto:bug-bash@gnu.org>
List-Help <mailto:bug-bash-request@gnu.org?subject=help>
List-Subscribe <https://lists.gnu.org/mailman/listinfo/bug-bash>, <mailto:bug-bash-request@gnu.org?subject=subscribe>
Xref csiph.com gnu.bash.bug:14985

Show key headers only | View raw


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

Back to gnu.bash.bug | Previous | Next | Find similar | Unroll thread


Thread

Re: How to compile hashlib.c for testing? Peng Yu <pengyu.ut@gmail.com> - 2018-12-27 20:28 -0600

csiph-web