• Home
Name
Date
Size
#Lines
LOC

..--

Android.bpD03-May-20242 KiB7869

AndroidTest.xmlD03-May-20241.5 KiB3216

Mpeg2tsUnitTest.cppD03-May-20248.8 KiB236174

Mpeg2tsUnitTestEnvironment.hD03-May-20242 KiB7443

README.mdD03-May-20241.2 KiB3927

README.md

1## Media Testing ##
2---
3#### Mpeg2TS Unit Test :
4The Mpeg2TS Unit Test Suite validates the functionality of the libraries present in Mpeg2TS.
5
6Run the following steps to build the test suite:
7```
8mmm frameworks/av/media/libstagefright/mpeg2ts/test/
9```
10
11The 32-bit binaries will be created in the following path : ${OUT}/data/nativetest/
12
13The 64-bit binaries will be created in the following path : ${OUT}/data/nativetest64/
14
15To test 64-bit binary push binaries from nativetest64.
16
17adb push ${OUT}/data/nativetest64/Mpeg2tsUnitTest/Mpeg2tsUnitTest /data/local/tmp/
18
19To test 32-bit binary push binaries from nativetest.
20
21adb push ${OUT}/data/nativetest/Mpeg2tsUnitTest/Mpeg2tsUnitTest /data/local/tmp/
22
23The resource file for the tests is taken from [here](https://storage.googleapis.com/android_media/frameworks/av/media/libstagefright/mpeg2ts/test/Mpeg2tsUnitTest.zip ).
24Download, unzip and push these files into device for testing.
25
26```
27adb push Mpeg2tsUnitTestRes/. /data/local/tmp/
28```
29
30usage: Mpeg2tsUnitTest -P \<path_to_folder\>
31```
32adb shell /data/local/tmp/Mpeg2tsUnitTest -P /data/local/tmp/Mpeg2tsUnitTestRes/
33```
34Alternatively, the test can also be run using atest command.
35
36```
37atest Mpeg2tsUnitTest -- --enable-module-dynamic-download=true
38```
39