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

Commit 13bae590 authored by Harish Mahendrakar's avatar Harish Mahendrakar Committed by hkuang
Browse files

Enable atest for mediatranscoder benchmarks

Bug: 173627260
Test: push libmediatranscoder.so to /system/lib64 (if required)
Test: atest MediaTrackTranscoderBenchmark \
      -- --enable-module-dynamic-download=true
Test: atest MediaTranscoderBenchmark \
      -- --enable-module-dynamic-download=true
Test: atest MediaSampleReaderBenchmark \
      -- --enable-module-dynamic-download=true

Change-Id: I048876ecc884f534d5aeee1c173dcc4cfe838dae
parent 92bb814c
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -2,6 +2,8 @@ cc_defaults {
    name: "benchmarkdefaults",
    shared_libs: ["libmediatranscoder", "libmediandk", "libbase", "libbinder_ndk"],
    static_libs: ["libgoogle-benchmark"],
    test_config_template: "AndroidTestTemplate.xml",
    test_suites: ["device-tests", "TranscoderBenchmarks"],
}

cc_test {
+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="Unit test configuration for {MODULE}">
    <option name="test-suite-tag" value="TranscoderBenchmarks" />
    <target_preparer class="com.android.tradefed.targetprep.PushFilePreparer">
        <option name="cleanup" value="false" />
        <option name="push-file" key="{MODULE}" value="/data/local/tmp/{MODULE}" />
        <option name="push-file"
            key="https://storage.googleapis.com/android_media/frameworks/av/media/libmediatranscoding/transcoder/benchmark/TranscodingBenchmark-1.1.zip?unzip=true"
            value="/data/local/tmp/TranscodingBenchmark/" />
    </target_preparer>

    <test class="com.android.tradefed.testtype.GoogleBenchmarkTest" >
        <option name="native-benchmark-device-path" value="/data/local/tmp" />
        <option name="benchmark-module-name" value="{MODULE}" />
    </test>
</configuration>