[darcs-devel] [darcs #255] Comprehensible shell test output

via RT bugs at darcs.net
Thu Mar 10 11:08:37 PST 2005


Thu Mar 10 14:08:35 2005: New ticket: 255.
Transaction: Ticket created by guest
       Queue: Darcs
     Subject: Comprehensible shell test output
       Owner: Nobody
  Requestors: 
      Status: new
 Ticket <URL: http://bugs.darcs.net/.//Ticket/Display.html?id=255 >

The attached patch is a harness for the shell tests to format their
output and make the results easy to read like so:

0 /usr/local/src/darcs-1.0.2$ make test_shell
test -f c_context.c || echo unknown | ./stringify context_string >
c_context.c
Running add_in_subdir.sh ...                     passed.
Running addmv.sh ...                             passed.
Running addrace.sh ...                           passed.
Running addrm.sh ...                             passed.
Running annotate.sh ...                          passed.
Running bad_pending_after_pull.sh ...            passed.
Running directory_confusion.sh ...               passed.
Running get_tag.sh ...                           passed.
Running illegal_mv.sh ...                        passed.
...etc...

The output of each test goes into tests/test_output/ rather than to the
screen.  Upon failure the user is pointed at the output file to read.

0 /usr/local/src/darcs-1.0.2/tests$ perl -w shell_harness
merge_three_patches.sh
Running merge_three_patches.sh ...               FAILED!
        Output available as test_output/merge_three_patches.sh.out
TEST FAILED!
        merge_three_patches.sh


This patch includes the patch provided in #253.  The result being less
verbose, easier to read test results that a user can follow at least in
so far as figuring out if anything is broken.  The results are still too
verbose and inconsistent, but its an improvement.





More information about the darcs-devel mailing list