diff options
Diffstat (limited to 'chrome/test')
5 files changed, 62 insertions, 0 deletions
diff --git a/chrome/test/chromeos/autotest/files/client/deps/pyauto_dep/README b/chrome/test/chromeos/autotest/files/client/deps/pyauto_dep/README new file mode 100644 index 0000000..5f6b95b --- /dev/null +++ b/chrome/test/chromeos/autotest/files/client/deps/pyauto_dep/README @@ -0,0 +1,6 @@ +# Copyright (c) 2011 The Chromium OS Authors. All rights reserved. +# Use of this source code is governed by a BSD-style license that can be +# found in the LICENSE file. + +This dep brings PyAuto files into an image. Tests that depend on pyauto_dep +should add this as a dep in their setup() method. diff --git a/chrome/test/chromeos/autotest/files/client/deps/pyauto_dep/common.py b/chrome/test/chromeos/autotest/files/client/deps/pyauto_dep/common.py new file mode 100644 index 0000000..a4fb1aa --- /dev/null +++ b/chrome/test/chromeos/autotest/files/client/deps/pyauto_dep/common.py @@ -0,0 +1,12 @@ +# Copyright (c) 2011 The Chromium OS Authors. All rights reserved. +# Use of this source code is governed by a BSD-style license that can be +# found in the LICENSE file. + +import os, sys +dirname = os.path.dirname(sys.modules[__name__].__file__) +client_dir = os.path.abspath(os.path.join(dirname, "../../")) +sys.path.insert(0, client_dir) +import setup_modules +sys.path.pop(0) +setup_modules.setup(base_path=client_dir, + root_module_name="autotest_lib.client") diff --git a/chrome/test/chromeos/autotest/files/client/deps/pyauto_dep/control b/chrome/test/chromeos/autotest/files/client/deps/pyauto_dep/control new file mode 100644 index 0000000..b712264 --- /dev/null +++ b/chrome/test/chromeos/autotest/files/client/deps/pyauto_dep/control @@ -0,0 +1,5 @@ +# Copyright (c) 2011 The Chromium OS Authors. All rights reserved. +# Use of this source code is governed by a BSD-style license that can be +# found in the LICENSE file. + +job.setup_dep(['pyauto_dep']) diff --git a/chrome/test/chromeos/autotest/files/client/deps/pyauto_dep/pyauto_dep.py b/chrome/test/chromeos/autotest/files/client/deps/pyauto_dep/pyauto_dep.py new file mode 100755 index 0000000..444d395 --- /dev/null +++ b/chrome/test/chromeos/autotest/files/client/deps/pyauto_dep/pyauto_dep.py @@ -0,0 +1,22 @@ +#!/usr/bin/python + +# Copyright (c) 2011 The Chromium OS Authors. All rights reserved. +# Use of this source code is governed by a BSD-style license that can be +# found in the LICENSE file. + +"""Install the pyauto_dep dependency. + +This is done by the Chrome ebuild so this in fact has nothing to do. +""" + +import os +from autotest_lib.client.bin import utils + +version = 1 + +def setup(top_dir): + return + + +pwd = os.getcwd() +utils.update_version(pwd + '/src', False, version, setup, None) diff --git a/chrome/test/chromeos/autotest/files/client/deps/pyauto_dep/setup_test_links.sh b/chrome/test/chromeos/autotest/files/client/deps/pyauto_dep/setup_test_links.sh new file mode 100755 index 0000000..038f094 --- /dev/null +++ b/chrome/test/chromeos/autotest/files/client/deps/pyauto_dep/setup_test_links.sh @@ -0,0 +1,17 @@ +#!/bin/bash +# +# Copyright (c) 2011 The Chromium Authors. All rights reserved. +# Use of this source code is governed by a BSD-style license that can be +# found in the LICENSE file. +# +# A script to setup symbolic links needed for Chrome's PyAuto framwork. + +ln -f -s /opt/google/chrome/chrome $(dirname $0)/chrome +ln -f -s /opt/google/chrome/chrome.pak $(dirname $0)/chrome.pak +ln -f -s /opt/google/chrome/locales $(dirname $0)/locales +ln -f -s /opt/google/chrome/resources $(dirname $0)/resources +ln -f -s /opt/google/chrome/resources.pak $(dirname $0)/resources.pak + +mkdir -p $(dirname $0)/chromeos +ln -f -s /opt/google/chrome/chromeos/libcros.so \ + $(dirname $0)/chromeos/libcros.so |