[darcs-users] darcs patch: Do not use Perl test harness. (and 3 more)

Trent W. Buck trentbuck at gmail.com
Fri Oct 17 04:10:53 UTC 2008

"Jason Dagit" <dagit at codersbase.com> writes:
> Zooko makes a wise point when he recommends our tests be written in
> the same language we use, Haskell. [...] the big reasons to not do
> that are: 1) It's a lot of work to convert all the tests to a new
> language.  2) It's really easy to tell our .sh scripts are doing in
> terms of real commands to reproduce it.

There's a Haskell library called HSH which might help in this respect,
e.g. you could do something along the lines of

    test_issue33 = assert_succeeds $ "darcs changes --xml" -|- "xmllint"

Where "darcs changes --xml" and "xmllint" are run by the shell.

More information about the darcs-users mailing list