On Mon, Oct 5, 2009 at 6:52 AM, Buakaw San <buaka...@gmail.com> wrote:
> I've tried these steps, when I run envsetup.sh I get no output its
> just silent, then when I execute runtest.py I get an error saying that
> envsetup.sh needs to be run.
>
> Error: ANDROID_PRODUCT_OUT not defined. Please run envsetup.sh
>
> What do I have to do to push these tests to the emulator/device?
>
> I'm on Ubuntu 9.04.
>
> Thanks.
>
> On Jun 18, 1:29 am, Brett Chabot <brettcha...@android.com> wrote:
>> I'm not sure which runtest.sh you're trying to execute, but there is a
>> script at development/testrunner/runtest.py that is intended to help
>> build and run the tests.
>>
>> To use this to execute AndroidTests, the following shell commands
>> should work (executed from the root of the android source tree):
>> . ./build/envsetup.sh
>> emulator&
>> ./development/testrunner/runtest.py android
>>
>> This should build the tests, push them to the emulator, and run them.
>> The "android" argument is a shortcut for AndroidTests - see
>> development/testrunner/test_defs.xml for a list of built in test
>> definitions.
>>