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

Commit 289a8e8b authored by Treehugger Robot's avatar Treehugger Robot Committed by Automerger Merge Worker
Browse files

Merge "WriterTest: Update resource folder path" am: db7906a9 am: b3152bdc...

Merge "WriterTest: Update resource folder path" am: db7906a9 am: b3152bdc am: 01e0e340 am: 3426b6c3

Change-Id: Idbfb993770bfd6587f4ecfe53a567669bd3a8aaa
parents 9dbb53a1 3426b6c3
Loading
Loading
Loading
Loading
+3 −3
Original line number Original line Diff line number Diff line
@@ -19,12 +19,12 @@
        <option name="cleanup" value="true" />
        <option name="cleanup" value="true" />
        <option name="push" value="writerTest->/data/local/tmp/writerTest" />
        <option name="push" value="writerTest->/data/local/tmp/writerTest" />
        <option name="push-file"
        <option name="push-file"
            key="https://storage.googleapis.com/android_media/frameworks/av/media/libstagefright/tests/writer/Writer.zip?unzip=true"
            key="https://storage.googleapis.com/android_media/frameworks/av/media/libstagefright/tests/writer/WriterTestRes.zip?unzip=true"
            value="/data/local/tmp/writerTestRes/" />
            value="/data/local/tmp/WriterTestRes/" />
    </target_preparer>
    </target_preparer>
    <test class="com.android.tradefed.testtype.GTest" >
    <test class="com.android.tradefed.testtype.GTest" >
        <option name="native-test-device-path" value="/data/local/tmp" />
        <option name="native-test-device-path" value="/data/local/tmp" />
        <option name="module-name" value="writerTest" />
        <option name="module-name" value="writerTest" />
        <option name="native-test-flag" value="-P /data/local/tmp/writerTestRes/" />
        <option name="native-test-flag" value="-P /data/local/tmp/WriterTestRes/" />
    </test>
    </test>
</configuration>
</configuration>
+8 −3
Original line number Original line Diff line number Diff line
@@ -19,13 +19,18 @@ To test 32-bit binary push binaries from nativetest.


adb push ${OUT}/data/nativetest/writerTest/writerTest /data/local/tmp/
adb push ${OUT}/data/nativetest/writerTest/writerTest /data/local/tmp/


The resource file for the tests is taken from [here](https://storage.googleapis.com/android_media/frameworks/av/media/libstagefright/tests/writer/writerTestRes.zip).
The resource file for the tests is taken from [here](https://storage.googleapis.com/android_media/frameworks/av/media/libstagefright/tests/writer/WriterTestRes.zip).
Download and extract the folder. Push all the files in this folder to /data/local/tmp/ on the device.
Download and extract the folder. Push all the files in this folder to /data/local/tmp/ on the device.
```
```
adb push writerTestRes /data/local/tmp/
adb push WriterTestRes /data/local/tmp/
```
```


usage: writerTest -P \<path_to_res_folder\>
usage: writerTest -P \<path_to_res_folder\>
```
```
adb shell /data/local/tmp/writerTest -P /data/local/tmp/
adb shell /data/local/tmp/writerTest -P /data/local/tmp/WriterTestRes/
```
Alternatively, the test can also be run using atest command.

```
atest writerTest -- --enable-module-dynamic-download=true
```
```