diff options
author | dtrainor <dtrainor@chromium.org> | 2015-09-25 17:14:12 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2015-09-26 00:14:55 +0000 |
commit | 4ae3272eafeffdc499cc839432dc49689d42a204 (patch) | |
tree | d6ca5e6c95afa6ffd6eeaeb262c181c1b5706671 /blimp/docs | |
parent | 730fcbedc16dbea063e664d04f64736189d6fc7b (diff) | |
download | chromium_src-4ae3272eafeffdc499cc839432dc49689d42a204.zip chromium_src-4ae3272eafeffdc499cc839432dc49689d42a204.tar.gz chromium_src-4ae3272eafeffdc499cc839432dc49689d42a204.tar.bz2 |
Add basic test suite for Blimp
- Add the BlimpTest target.
- Add a dummy test that runs.
BUG=526219
Review URL: https://codereview.chromium.org/1365823002
Cr-Commit-Position: refs/heads/master@{#350956}
Diffstat (limited to 'blimp/docs')
-rw-r--r-- | blimp/docs/build.md | 12 | ||||
-rw-r--r-- | blimp/docs/test.md | 38 |
2 files changed, 44 insertions, 6 deletions
diff --git a/blimp/docs/build.md b/blimp/docs/build.md index becda69..1162375 100644 --- a/blimp/docs/build.md +++ b/blimp/docs/build.md @@ -6,13 +6,13 @@ be found in the GN [quick start guide](../../tools/gn/docs/quick_start.md). ## Android setup To setup GN, run the following command: -``` +```bash gn args out-android/Debug ``` This will bring up an editor, where you can type in the following: -``` +```bash target_os = "android" is_debug = true is_clang = true @@ -24,13 +24,13 @@ use_goma = true ## Linux setup For building for Linux, you can have a side-by-side out-directory: -``` +```bash gn args out-linux/Debug ``` Use the same arguments as above, but remove `target_os`. -``` +```bash is_debug = true is_clang = true is_component_build = true @@ -44,12 +44,12 @@ To build blimp, build the target ```blimp```. ## Building for Android -``` +```bash ninja -C out-android/Debug blimp ``` ## Building for Linux -``` +```bash ninja -C out-linux/Debug blimp ``` diff --git a/blimp/docs/test.md b/blimp/docs/test.md new file mode 100644 index 0000000..4d17278 --- /dev/null +++ b/blimp/docs/test.md @@ -0,0 +1,38 @@ +# Testing + +Blimp only supports building using [GN](../../tools/gn/README.md), and only +supports building for Android and Linux. See [building](build.md) for general +GN setup. + +## Testing on Android + +Run the following command to build the Android tests: + +```bash +ninja -C out-android/Debug blimp_tests +``` + +### Running the Java instrumentation tests + +Install the Blimp APK with the following: + +```bash +./build/android/adb_install_apk.py $(PRODUCT_DIR)/apks/Blimp.apk +``` + +Run the Java instrumentation tests (with an optional test filter) with the +following: + +```bash +$(PRODUCT_DIR)/bin/run_blimp_test_apk [ -f DummyTest#* ] +``` + +### Testing on Linux + +Run the following command to build the Linux tests: + +```bash +ninja -C out-linux/Debug blimp_tests +``` + +There are no tests that run on Linux yet. |