• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1#!/usr/bin/python
2
3# Copyright (c) 2010 The Chromium OS Authors. All rights reserved.
4# Use of this source code is governed by a BSD-style license that can be
5# found in the LICENSE file.
6
7import common, commands, logging, os, shutil
8from autotest_lib.client.bin import utils
9
10version = 1
11
12def setup(top_dir):
13    # The copy the gtest files from the SYSROOT to the client
14    gtest = utils.run(os.environ['SYSROOT'] + '/usr/bin/gtest-config --libdir')
15    os.chdir(os.environ['SYSROOT'] + '/' + gtest.stdout.rstrip())
16    utils.run('cp libgtest* ' + top_dir)
17
18pwd = os.getcwd()
19utils.update_version(pwd + '/src', False, version, setup, pwd)
20