commit | 51adb90d263907521b30c6a121b2c9a30e6bf1ba | [log] [tgz] |
---|---|---|
author | Derek Schuff <dschuff@chromium.org> | Tue Dec 10 16:50:22 2019 |
committer | GitHub <noreply@github.com> | Tue Dec 10 16:50:22 2019 |
tree | 9153dd8d167a413560ca2c873cc4e4133221b3c5 | |
parent | ea74f984f326068e9117645f864f00ef94305bf3 [diff] |
Use Python3 in vpython file (#599)
Luckily, this repository has some tests:
This repository holds the code which make the WebAssembly waterfall‘s heart beat. You may want to see the waterfall in action, and if you don’t like what you see you may even want to contribute.
WebAssembly has many moving parts (implementations, tools, tests, etc) and no central owner. All of these parts have have their own owners, priorities, and tests (which include WebAssembly as well as others). A build and test waterfall allows us to test the interactions between these components. It helps us:
We should keep process to a minimum, try things out, see what works.
$ git clone https://github.com/WebAssembly/waterfall.git
depot_tools
. Follow the instructionspkg-config
if you don't have it installed already, e.g. # apt install pkg-config
python src/build.py
Build.py has 3 types of actions:
Each of these types has multiple steps (e.g. a build step for each component). If you run build.py with no arguments, it will run all the sync, build, and test steps. If you make a change and only want to run a subset of steps, you can apply filters from the command line, via exclusions (to prevent specified steps from running) or inclusions (to run only the specified steps). Sync, build, and test exclusions are specified separately. For example:
$ src/build.py --no-sync --build-exclude=llvm
$ src/build.py --sync-include=wabt --build-include=wabt,binaryen --test-exclude=emtest,emtest-asm
The script should throw an error if you specify nonexistent steps or if you specify both includes and excludes for the same type of action.
When run, the script creates a directory src/work
inside the waterfall‘s git checkout. All modifications are made inside this directory (checking and out and building the sources, as well as the test builds and execution results). You can also use the git checkouts (e.g. src/work/llvm
) with your own branches; the sync steps will check out the latest revision from the script’s remote repositories but will not overwrite or destroy any local work.