File: README.md

package info (click to toggle)
sonivox 3.6.16-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 25,424 kB
  • sloc: ansic: 67,233; python: 8,597; cpp: 396; asm: 281; xml: 28; makefile: 5
file content (39 lines) | stat: -rw-r--r-- 1,202 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
## Media Testing ##
---
#### Sonivox Unit Test
The Sonivox Unit Test Suite validates the Sonivox library available in external/sonivox/

Run the following steps to build the test suite:
```
m SonivoxTest
```

The 32-bit binaries will be created in the following path : ${OUT}/data/nativetest/

The 64-bit binaries will be created in the following path : ${OUT}/data/nativetest64/

To test 64-bit binary push binaries from nativetest64.
```
adb push ${OUT}/data/nativetest64/SonivoxTest/SonivoxTest /data/local/tmp/
```

To test 32-bit binary push binaries from nativetest.
```
adb push ${OUT}/data/nativetest/SonivoxTest/SonivoxTest /data/local/tmp/
```

The resource file for the tests is taken from [here](https://dl.google.com/android-unittest/media/external/sonivox/test/SonivoxTestRes-1.0.zip). Download, unzip and push these files into device for testing.

```
adb push SonivoxTestRes-1.0 /sdcard/test/
```

usage: SonivoxTest -P \<path_to_res_folder\> -C <remove_output_file>
```
adb shell /data/local/tmp/SonivoxTest -P /sdcard/test/SonivoxTestRes-1.0/ -C true
```
Alternatively, the test can also be run using atest command.

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