diff options
author | Dan Albert <danalbert@google.com> | 2015-10-16 14:25:08 -0700 |
---|---|---|
committer | Dan Albert <danalbert@google.com> | 2015-10-16 14:27:34 -0700 |
commit | 2f98df46ca7292ff9d640295aab035e194395d09 (patch) | |
tree | 495bfca06ef2b990e9c01b6134714bc753bbfb82 /checkbuild.py | |
parent | 04febbe4e38d84b1149dd4bc19670423b97ba061 (diff) | |
download | ndk-2f98df46ca7292ff9d640295aab035e194395d09.tar.gz |
Package the tests for distribution.
Bug: http://b/23362228
Change-Id: I69059295f118610ac1bcacad55db2778cdab2987
Diffstat (limited to 'checkbuild.py')
-rw-r--r-- | checkbuild.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/checkbuild.py b/checkbuild.py index 1720cd00b..e663cc145 100644 --- a/checkbuild.py +++ b/checkbuild.py @@ -48,6 +48,7 @@ ALL_MODULES = { 'libc++', 'platforms', 'stlport', + 'tests', } @@ -397,6 +398,12 @@ def build_platforms(out_dir, args): invoke_build('build-platforms.py', common_build_args(out_dir, args)) +def build_tests(out_dir, _): + archive_name = os.path.join(out_dir, 'tests') + shutil.make_archive(archive_name, 'bztar', base_dir='tests', + root_dir=build_support.ndk_path()) + + def main(): args, package_args = ArgParser().parse_known_args() @@ -467,6 +474,7 @@ def main(): ('libc++', build_libcxx), ('platforms', build_platforms), ('stlport', build_stlport), + ('tests', build_tests), ]) print('Building modules: {}'.format(' '.join(modules))) |