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

Commit 4e11414a authored by Treehugger Robot's avatar Treehugger Robot Committed by Gerrit Code Review
Browse files

Merge "Mpeg4H263DecoderTest: Added AndroidTest.xml to run test with atest"

parents 2c03bb87 95ee3f84
Loading
Loading
Loading
Loading
+31 −0
Original line number Diff line number Diff line
<?xml version="1.0" encoding="utf-8"?>
<!-- Copyright (C) 2020 The Android Open Source Project

     Licensed under the Apache License, Version 2.0 (the "License");
     you may not use this file except in compliance with the License.
     You may obtain a copy of the License at

          http://www.apache.org/licenses/LICENSE-2.0

     Unless required by applicable law or agreed to in writing, software
     distributed under the License is distributed on an "AS IS" BASIS,
     WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
     See the License for the specific language governing permissions and
     limitations under the License.
-->
<configuration description="Test module config for Mpeg4H263 Decoder unit tests">
    <option name="test-suite-tag" value="Mpeg4H263DecoderTest" />
    <target_preparer class="com.android.tradefed.targetprep.PushFilePreparer">
        <option name="cleanup" value="true" />
        <option name="push" value="Mpeg4H263DecoderTest->/data/local/tmp/Mpeg4H263DecoderTest" />
        <option name="push-file"
            key="https://storage.googleapis.com/android_media/frameworks/av/media/libstagefright/codecs/m4v_h263/dec/test/Mpeg4H263Decoder.zip?unzip=true"
            value="/data/local/tmp/Mpeg4H263DecoderTestRes/" />
    </target_preparer>

    <test class="com.android.tradefed.testtype.GTest" >
        <option name="native-test-device-path" value="/data/local/tmp" />
        <option name="module-name" value="Mpeg4H263DecoderTest" />
        <option name="native-test-flag" value="-P /data/local/tmp/Mpeg4H263DecoderTestRes/" />
    </test>
</configuration>
+9 −4
Original line number Diff line number Diff line
@@ -22,13 +22,18 @@ To test 32-bit binary push binaries from nativetest.
adb push ${OUT}/data/nativetest/Mpeg4H263DecoderTest/Mpeg4H263DecoderTest /data/local/tmp/
```

The resource file for the tests is taken from [here](https://drive.google.com/drive/folders/13cM4tAaVFrmr-zGFqaAzFBbKs75pnm9b).
Download Mpeg4H263Decoder folder and push all the files in this folder to /data/local/tmp/ on the device for testing.
The resource file for the tests is taken from [here](https://storage.googleapis.com/android_media/frameworks/av/media/libstagefright/codecs/m4v_h263/dec/test/Mpeg4H263Decoder.zip). Download, unzip and push these files into device for testing.

```
adb push Mpeg4H263Decoder/. /data/local/tmp/
adb push Mpeg4H263Decoder /data/local/tmp/
```

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

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