Skip to content

Commit

Permalink
Update documents to run Cobalt on Linux in evergreen mode (#4108)
Browse files Browse the repository at this point in the history
android document is updated as well for generating XML test result

b/361540371
b/362655498
  • Loading branch information
jonastsai authored and oxve committed Sep 19, 2024
1 parent 026f803 commit 80c46e0
Show file tree
Hide file tree
Showing 2 changed files with 299 additions and 36 deletions.
19 changes: 17 additions & 2 deletions cobalt/site/docs/development/setup-android.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,6 @@ return and complete the following steps.
./starboard/tools/download_clang.sh
./starboard/android/shared/download_sdk.sh
```
If you encountered `Failed to find package patcher;v4` error, please edit starboard/android/shared/download_sdk.sh
and remove `"patcher;v4" \ ` near line 53.

1. Install additional Linux packages

Expand Down Expand Up @@ -276,6 +274,23 @@ Similar to loader_app, create the directory with arguments that meet the target
adb shell "am start --esa args '--evergreen_library=app/cobalt/lib/libnplb.so,--evergreen_content=app/cobalt/content' dev.cobalt.coat"
```
1. Generate test result with XML format
Due to access permission constrains on AOSP, the xml file should be created
by `adb shell` first, before nplb apk writing test result in it.
```sh
# create a file in a folder with read/write permission
adb shell "mkdir -p /data/local/tmp/"
adb shell "touch /data/local/tmp/nplb_testResult.xml"
# Make the file writable
adb shell "chmod a+w /data/local/tmp/nplb_testResult.xml"
# test and output to xml file
adb shell "am start --esa args '--evergreen_library=app/cobalt/lib/libnplb.so,--evergreen_content=app/cobalt/content,--gtest_output=xml:/data/local/tmp/nplb_testResult.xml' dev.cobalt.coat"
```
### Build and run nplb evergreen compat test apk
1. Build nplb_evergreen_compat_tests apk
Expand Down
Loading

0 comments on commit 80c46e0

Please sign in to comment.