1*9c5db199SXin Li#!/usr/bin/python3 2*9c5db199SXin Li 3*9c5db199SXin Li# Copyright (c) 2010 The Chromium OS Authors. All rights reserved. 4*9c5db199SXin Li# Use of this source code is governed by a BSD-style license that can be 5*9c5db199SXin Li# found in the LICENSE file. 6*9c5db199SXin Li 7*9c5db199SXin Liimport common, os 8*9c5db199SXin Lifrom autotest_lib.client.bin import utils 9*9c5db199SXin Li 10*9c5db199SXin Liversion = 1 11*9c5db199SXin Li 12*9c5db199SXin Lidef setup(top_dir): 13*9c5db199SXin Li # The copy the gtest files from the SYSROOT to the client 14*9c5db199SXin Li for libdir in ('/usr/local/lib64', '/usr/lib64', '/usr/local/lib', 15*9c5db199SXin Li '/usr/lib'): 16*9c5db199SXin Li libdir_path = os.path.join(os.environ['SYSROOT'], libdir) 17*9c5db199SXin Li if os.path.exists(os.path.join(libdir_path, 'libgtest.so')): 18*9c5db199SXin Li os.chdir(libdir_path) 19*9c5db199SXin Li utils.run('cp libgtest* ' + top_dir) 20*9c5db199SXin Li break 21*9c5db199SXin Li 22*9c5db199SXin Lipwd = os.getcwd() 23*9c5db199SXin Liutils.update_version(pwd + '/src', False, version, setup, pwd) 24