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


Groups > gnu.bash.bug > #14995 > unrolled thread

Re: How to compile hashlib.c for testing?

Started byChet Ramey <chet.ramey@case.edu>
First post2018-12-28 19:50 -0600
Last post2018-12-28 19:50 -0600
Articles 1 — 1 participant

Back to article view | Back to gnu.bash.bug

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: How to compile hashlib.c for testing? Chet Ramey <chet.ramey@case.edu> - 2018-12-28 19:50 -0600

#14995 — Re: How to compile hashlib.c for testing?

FromChet Ramey <chet.ramey@case.edu>
Date2018-12-28 19:50 -0600
SubjectRe: How to compile hashlib.c for testing?
Message-ID<mailman.6489.1546048872.1284.bug-bash@gnu.org>
On 12/27/18 6:58 PM, Peng Yu 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?

That code hasn't really changed in almost twenty years. All the testing
was done long ago.

(I just changed it recently to add comments and modify the FNV-1 offset,
but that doesn't change the functionality.)

-- 
``The lyf so short, the craft so long to lerne.'' - Chaucer
		 ``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, UTech, CWRU    chet@case.edu    http://tiswww.cwru.edu/~chet/

[toc] | [standalone]


Back to top | Article view | gnu.bash.bug


csiph-web