Name |
Date |
Size |
#Lines |
LOC |
||
---|---|---|---|---|---|---|
.. | - | - | ||||
Android.bp | D | 03-May-2024 | 2 KiB | 78 | 69 | |
AndroidTest.xml | D | 03-May-2024 | 1.5 KiB | 32 | 16 | |
Mpeg2tsUnitTest.cpp | D | 03-May-2024 | 8.8 KiB | 236 | 174 | |
Mpeg2tsUnitTestEnvironment.h | D | 03-May-2024 | 2 KiB | 74 | 43 | |
README.md | D | 03-May-2024 | 1.2 KiB | 39 | 27 |
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