[aklug] Re: Simplest way to do this in bash?

From: Joshua J. Kugler <joshua@eeinternet.com>
Date: Fri Jan 15 2010 - 09:47:46 AKST

On Friday 15 January 2010, Christopher Howard elucidated thus:
> My bash skills are a little weak. Okay, they are pretty much
> non-existent past the common one-liners I use every day. So I would
> appreciate any general suggestions or code:
>
> Basic idea: I'm writing some tests for my Java class to make sure
> that, as I continue to develop the codebase, my methods are still
> giving the output I expect. So I want to write a bash script that
> executes a test class, and then compares STDOUT to the contents of a
> file (which contains the output I expect). If the two are exactly the
> same, then script moves on to the next test, otherwise echoes a
> failure message and dies with a bad return value.

http://www.junit.org/ ?

j

-- 
Joshua Kugler
Part-Time System Admin/Programmer
http://www.eeinternet.com
PGP Key: http://pgp.mit.edu/  ID 0x14EA086E
---------
To unsubscribe, send email to <aklug-request@aklug.org>
with 'unsubscribe' in the message body.
Received on Fri Jan 15 09:48:23 2010

This archive was generated by hypermail 2.1.8 : Fri Jan 15 2010 - 09:48:23 AKST