OSDN Git Service

AI 144340: Added support to run native tests on the device.
authorNiko Catania <>
Thu, 2 Apr 2009 23:52:26 +0000 (16:52 -0700)
committerThe Android Open Source Project <initial-contribution@android.com>
Thu, 2 Apr 2009 23:52:26 +0000 (16:52 -0700)
commitb2a0bd11272d5b0850e55cb4ac75af06c9cd9a0e
tree4b825dc642cb6eb9a060e54bf8d69288fbee4904
parent8a5e254e76530235e6742efb4eb0cf55e3d50d85
AI 144340: Added support to run native tests on the device.
  The tests name must start with 'test_'.
  Tests should return 0 on success, 1 on failure.
  * development/testrunner/test_defs.xml:
  Added new element to represent native tests.
  * development/testrunner/test_defs.py:
  Added handling of the new <test-native> element.
  The testsuite has new IsNative method.
  TestDefinition's iterator is ordered by test names.
  Added GetDescription() method to access the optional description.
  * development/testrunner/runtest.py:
  Print the description next to the test name if applicable
  (runtest_py -l)
  Added a _RunNativeTest method to run a test on the target, report
  the status and clean up the test after the run.
  Added
  BUG=1601432

Automated import of CL 144340