commit | 7d4fccd4606966b475f623d08a91ee25545a5c32 | [log] [tgz] |
---|---|---|
author | Fei Ling <feiling@chromium.org> | Fri May 03 22:42:22 2019 |
committer | Fei Ling <feiling@chromium.org> | Sun May 05 04:10:53 2019 |
tree | d23a2fa425df9323631392fa5dfaa57230ce19d1 | |
parent | 857170f266293e360f39af6889e9afa0611be975 [diff] |
Add support for python wheel package creation. Changes: - Directory reorgnization is needed: Move everything under test/ to test/chrome_ent_test. - The package creation script setup.py is created under test/ - move test.py and run_tests.py under test/ - change the imports from "test." to "chrome_ent_test." - add command create_package to build.py. Change-Id: Iaed4986622c20b4a20870117f95d66c74b233797 Reviewed-on: https://chromium-review.googlesource.com/c/enterprise/cel/+/1590551 Reviewed-by: Mathieu Binette <mbinette@google.com>
Chrome Enterprise Lab is an inaccurately named set of tools for building enterprise labs quickly and easily. The labs so built can be used for system level end-to-end testing of Google Chrome/Chromium.
Have a peek at the Design document.
Also have a peek at the Code of Conduct.
Most of the code is in Go. See Guide to code to get a head start on the code in this repository.
Go: Download Go from the Go download page. This project requires Go 1.9.4 or later. The build will fail with prior versions.
Depot Tools: Used for managing the checkout and the contributor workflow.
Protocol Buffers Compiler: Protocol buffers are used extensively for wranging all the data that needs to be shuttled around. Run protoc --version
to check the protoc version. The protoc version should be at least 3.5.1. If protoc is not installed, or if the version is less than 3.5.1, download it from https://github.com/protocolbuffers/protobuf/releases.
Remember that you need to copy the contents of the include
directory of the zip file into /usr/local/include/
as well, i.e.
sudo cp -r <unzipped_protoc_release>/include /usr/local sudo chmod -R a+rX /usr/local/include/
Dep : Used for Go depedency management. This can be installed automatically by running ./build.py deps --install
from the root of the source tree.
Go support for Protocol Buffers : This can be installed automatically by running ./build.py deps --install
from the root of the source tree.
absl-py: This Python package is used by tests. Install it by running pip install absl-py
.
There are two ways to get the source. One is to use managed deps, and the other is to use plain go get
. The latter workflow doesn't quite work yet due to this repository not being integrated with go.chromium.org
. So this page only mentions the managed dependency workflow.
Clone this repository:
Assumes that $GOPATH
is a single path and not a :
delimited list.
mkdir -p ${GOPATH}/src/chromium.googlesource.com/enterprise cd ${GOPATH}/src/chromium.googlesource.com/enterprise git clone https://chromium.googlesource.com/enterprise/cel cd cel
Get the dependencies:
python build.py deps --install
Use the build script:
python build.py build
Also make sure the tests pass.
python build.py test
See CONTRIBUTING.