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 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: References: <31ae9367-7968-aff5-d0e8-0f9da667d584@case.edu> <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 To: "G. Branden Robinson" 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 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Xref: csiph.com gnu.bash.bug:14985 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 wrote: > > At 2018-12-27T17:34:49-0800, Eduardo Bustamante wrote: > > On Thu, Dec 27, 2018 at 5:15 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? > > > > 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