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


Groups > gnu.bash.bug > #14981

Re: How to compile hashlib.c for testing?

Path csiph.com!goblin2!goblin1!goblin.stu.neva.ru!usenet.stanford.edu!not-for-mail
From "G. Branden Robinson" <g.branden.robinson@gmail.com>
Newsgroups gnu.bash.bug
Subject Re: How to compile hashlib.c for testing?
Date Thu, 27 Dec 2018 20:41:37 -0500
Lines 46
Approved bug-bash@gnu.org
Message-ID <mailman.6432.1545962558.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>
NNTP-Posting-Host lists.gnu.org
Mime-Version 1.0
Content-Type multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="atxtesq3y2r3t5th"
X-Trace usenet.stanford.edu 1545962558 13650 208.118.235.17 (28 Dec 2018 02:02:38 GMT)
X-Complaints-To action@cs.stanford.edu
Cc bug-bash <bug-bash@gnu.org>
Envelope-to bug-bash@gnu.org
DKIM-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=kvhspoWpQ/vGOM8E79/VMwbTLwUZId60ZHMlXonlgB0=; b=ibhKVgVvee2Pcg/Si4hXZHSzNMWxMwDcnhL0nA/KqH1uOOyHN30itSBXxn2cEgOzN8 hulm01OS5VIN/YrEG+kltsGoj7cokPP2kbawBh8IkSKojAP6cj4YYPPo2OwmmdPhRekk qp1iO9S6K/SmK1WkVIuXhEQbPCKhfCXGsVebwgQLc19NTol40hA8JZ7lAO753zlYLNNp 4S7WoeWyBJyl0Lx3ds5xpLO9jGK9Tt8VSNO+AE4NupR2gF2lQVtJkHAB5LPN6wlPHMUQ 2XR88Q8uSXOz12WglqkvdcaeLD7JGOoe2mprmL73i9vpmcdKOv7xSfS5u4Q4ukQ1tWxy Dx1g==
X-Google-DKIM-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=kvhspoWpQ/vGOM8E79/VMwbTLwUZId60ZHMlXonlgB0=; b=VvYuIGP+tvmf5UXv/RM+fp3Tlk39NfDAWHoHCNqo2xA2qE0WzE0zsHnFF3LruReSka ptdqVd19awbQQcZ3nhT14XDU5XWPLlNQazYJgeZJc1DlkpcaT2B0fVBSg57G/roUJQDL E1Lx0rYzVLFyZH7ViJjooTq/yAE9gkP1IIBDRIFw0gFOzCktQa4zsvOInF5weXp/Ooe5 30Gp5KEDDaq+UkxpWbSSzuEyyuUw7gQRP089e6fOXwCae1BSI9PDR4myipdRK7rtkuyQ fRot4TxUgrRURS1fs54Mgx8iD/BD/1HV399Ot3SASoxwr2BLYhOHN2zhwNT3L8D8lrI/ 4tJA==
X-Gm-Message-State AA+aEWbJA11Xxqi4oj7CsjwfSk4EJtc/nq/MVyPHikG1kBV40Y5O1nEG nSyUOKgh5kqc6uWB1Lufp093VzecmBg=
X-Google-Smtp-Source AFSGD/Ve4RqM9KWiXLwNijExn2abOluPW0jkLSHoZWnxKr/9Kl0jhowKN0BetqkJIPsCyuouL3Zw9A==
X-Received by 2002:a81:9ad8:: with SMTP id r207mr25494034ywg.72.1545961299923; Thu, 27 Dec 2018 17:41:39 -0800 (PST)
Content-Disposition inline
In-Reply-To <CAOSMAuuDQDjPandHkOC9Yv41VmmoGme3uRk8P-EJN9_ozPaoQw@mail.gmail.com>
User-Agent NeoMutt/20180716
X-detected-operating-system by eggs.gnu.org: Genre and OS details not recognized.
X-Received-From 2607:f8b0:4864:20::c36
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:14981

Show key headers only | View raw


[Multipart message — attachments visible in raw view] - view raw

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

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


Thread

Re: How to compile hashlib.c for testing? "G. Branden Robinson" <g.branden.robinson@gmail.com> - 2018-12-27 20:41 -0500

csiph-web