Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update documents to run Cobalt on Linux in evergreen mode #4108

Merged
merged 1 commit into from
Sep 19, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
jonastsai marked this conversation as resolved.
Show resolved Hide resolved
# 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
Loading