Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d18262cb authored by Yifeng Zeng's avatar Yifeng Zeng
Browse files

Use ld-library-path to point to the standalone libs when enabled

A follow of aosp/3459827 to implement go/standalone-native-device-tests

When `standalone_test` is set to `true` for `cc_test`, use
`ld-library-path` to point to the `standalone-libs` directory to use
those dependencies.

This is to add the `ld-library-path` option within the autogenerated
AndroidTest.xml file. Predefined test config needs to be manually
updated, e.g.:

```
...
<test class="com.android.tradefed.testtype.GTest" >
        <option name="ld-library-path" value="/data/local/tmp/libunwindstack_unit_test/x86_64/standalone-libs:/<some_other_path>" />
...
```

Test: m libunwindstack_unit_test
Change-Id: I41222f1651b746ae040096555369822041980651
parent 2572d255
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment