[PATCH] use diff -u in testsuite

Rob Landley rob at landley.net
Mon Sep 5 17:05:06 UTC 2005


On Monday 05 September 2005 06:16, Denis Vlasenko wrote:
> Patch is relative bb 1.01
>
> Using diff, it enhances -v output. Example:

You may notice in the 1.1 tree I'm switching over to a new testsuite format 
(currently just for the ones I'm adding new tests to), one which already has 
a diff -u option for -v.  (busybox.tests and sort.tests currently use the new 
format.)

Part of the reason for this is that in addition to lots and lots of little 
files being a real pain to work with under most source control systems (lot 
harder to see at a glance what changed, for one thing), the Linux Test 
Project uses the one-big-script approach and it would be nice if we and they 
could stay more or less in sync as to what we're testing.

One really nice potential side effect of this is that the LTP could lift our 
tests to expand their test suite (which last I checked covered only three 
command line executables).  If we wrote the tests, we have a head start on 
passing them. :)

But first, I'd like to get sort.tests and sed.tests in and covering the whole 
of susv3 (modulo the internationalization bits, anyway).  I _think_ we're 
compliant with both, but I want some kind of audit that confirms it, and a 
full coverage regression test script would be perfect...

Rob



More information about the busybox mailing list