[Toybox] testing a single command?

enh enh at google.com
Thu Feb 18 21:48:54 PST 2016


On Thu, Feb 18, 2016 at 8:18 PM, Isaac Dunham <ibid.ag at gmail.com> wrote:
> 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

d'oh! thanks.

> HTH,
> Isaac



-- 
Elliott Hughes - http://who/enh - http://jessies.org/~enh/
Android native code/tools questions? Mail me/drop by/add me as a reviewer.

 1455860934.0


More information about the Toybox mailing list