[Toybox] testing a single command?
    Isaac Dunham 
    ibid.ag at gmail.com
       
    Thu Feb 18 20:18:18 PST 2016
    
    
  
On Thu, Feb 18, 2016 at 08:09:08PM -0800, enh wrote:
> On Thu, Feb 18, 2016 at 8:06 PM, Isaac Dunham <ibid.ag at gmail.com> wrote:
> > On Wed, Feb 17, 2016 at 10:43:37PM -0800, enh wrote:
> >> what's the easiest way to test a single command? i always end up
> >
> > scripts/single.sh TOYNAME
> > (eg, 'find', 'cpio', 'ps'...)
> 
> sorry, i wasn't clear: i meant "what's the easiest way to just run the
> 'sed' tests?".
Whoops, I misread 'test' as 'build'. Bit of a difference.
Looking at the top of scripts/test.sh (the real code for 'make test'),
I see 
  if [ $# -ne 0 ]
  then
    PREFIX=generated/testdir/ scripts/single.sh "$@" || exit 1
In other words:
scripts/test.sh TOYNAME
HTH,
Isaac
 1455855498.0
    
    
More information about the Toybox
mailing list