xref: /aosp_15_r20/external/tremolo/tests/README.md (revision bda690e46497e1f65c5077173b9c548e6e0cd5a1)
1*bda690e4SXin Li## Media Testing ##
2*bda690e4SXin Li---
3*bda690e4SXin Li#### Vorbis Decoder
4*bda690e4SXin LiThe VorbisDecoder Test Suite validates the libvorbisidec library available in external/tremelo.
5*bda690e4SXin Li
6*bda690e4SXin LiRun the following steps to build the test suite:
7*bda690e4SXin Li```
8*bda690e4SXin Lim VorbisDecoderTest
9*bda690e4SXin Li```
10*bda690e4SXin Li
11*bda690e4SXin LiThe 32-bit binaries will be created in the following path : ${OUT}/data/nativetest/
12*bda690e4SXin Li
13*bda690e4SXin LiThe 64-bit binaries will be created in the following path : ${OUT}/data/nativetest64/
14*bda690e4SXin Li
15*bda690e4SXin LiTo test 64-bit binary push binaries from nativetest64.
16*bda690e4SXin Li```
17*bda690e4SXin Liadb push ${OUT}/data/nativetest64/VorbisDecoderTest/VorbisDecoderTest /data/local/tmp/
18*bda690e4SXin Li```
19*bda690e4SXin Li
20*bda690e4SXin LiTo test 32-bit binary push binaries from nativetest.
21*bda690e4SXin Li```
22*bda690e4SXin Liadb push ${OUT}/data/nativetest/VorbisDecoderTest/VorbisDecoderTest /data/local/tmp/
23*bda690e4SXin Li```
24*bda690e4SXin Li
25*bda690e4SXin LiThe resource file for the tests is taken from [here](https://dl.google.com/android-unittest/media/external/tremolo/tests/VorbisDecoderRes-1.0.zip). Download, unzip and push these files into device for testing.
26*bda690e4SXin Li
27*bda690e4SXin Li```
28*bda690e4SXin Liadb push VorbisDecoderRes-1.0 /sdcard/test/
29*bda690e4SXin Li```
30*bda690e4SXin Li
31*bda690e4SXin Liusage: VorbisDecoderTest -P \<path_to_folder\> -C <remove_output_file>
32*bda690e4SXin Li```
33*bda690e4SXin Liadb shell /data/local/tmp/VorbisDecoderTest -P /sdcard/test/VorbisDecoderRes-1.0/ -C true
34*bda690e4SXin Li```
35*bda690e4SXin LiAlternatively, the test can also be run using atest command.
36*bda690e4SXin Li
37*bda690e4SXin Li```
38*bda690e4SXin Liatest VorbisDecoderTest -- --enable-module-dynamic-download=true
39*bda690e4SXin Li```
40