1. Add .c extension to native_test.py so that native test in C can also be picked up by testrunner.

2. Add netkeystore_test into continuous test cycle.
This commit is contained in:
Xia Wang
2009-08-14 11:01:58 -07:00
parent 25ec799863
commit 12ad9fb10e
2 changed files with 7 additions and 1 deletions

View File

@@ -466,6 +466,12 @@ See test_defs.xsd for more information.
description="Android STL." description="Android STL."
extra_build_args="ASTL_TESTS=1" /> extra_build_args="ASTL_TESTS=1" />
<!-- Android Keystore tests -->
<test-native name="netkeystore_test"
build_path="frameworks/base/cmds/keystore/tests"
description="Android keystore."
extra_build_args="KEYSTORE_TESTS=1" />
<!-- pending patch 820 <!-- pending patch 820
<test-native name="gtest" <test-native name="gtest"
build_path="external/gtest" build_path="external/gtest"

View File

@@ -125,7 +125,7 @@ class NativeTestSuite(AbstractTestSuite):
""" """
for f in files: for f in files:
(name, ext) = os.path.splitext(f) (name, ext) = os.path.splitext(f)
if ext == ".cc" or ext == ".cpp": if ext == ".cc" or ext == ".cpp" or ext == ".c":
if re.search("_test$|_test_$|_unittest$|_unittest_$|^test_", name): if re.search("_test$|_test_$|_unittest$|_unittest_$|^test_", name):
logger.SilentLog("Found %s" % f) logger.SilentLog("Found %s" % f)
test_list.append(str(os.path.join(dirname, f))) test_list.append(str(os.path.join(dirname, f)))