[2/2] g722: Add a fate test for the encoder

Message ID 1318883130-12299-1-git-send-email-martin@martin.st
State Committed
Headers show

Commit Message

Martin Storsjö Oct. 17, 2011, 8:25 p.m.
---
 tests/fate2.mak        |    4 ++++
 tests/ref/fate/g722enc |    1 +
 2 files changed, 5 insertions(+), 0 deletions(-)
 create mode 100644 tests/ref/fate/g722enc

Comments

Mans Rullgard Oct. 17, 2011, 8:44 p.m. | #1
Martin Storsjö <martin@martin.st> writes:

> ---
>  tests/fate2.mak        |    4 ++++
>  tests/ref/fate/g722enc |    1 +
>  2 files changed, 5 insertions(+), 0 deletions(-)
>  create mode 100644 tests/ref/fate/g722enc
>
> diff --git a/tests/fate2.mak b/tests/fate2.mak
> index 0bb6654..b148886 100644
> --- a/tests/fate2.mak
> +++ b/tests/fate2.mak
> @@ -133,6 +133,10 @@ fate-gsm-ms: CMD = framecrc -i $(SAMPLES)/gsm/ciao.wav
>  FATE_TESTS += fate-g722dec-1
>  fate-g722dec-1: CMD = framecrc -i $(SAMPLES)/g722/conf-adminmenu-162.g722
>
> +FATE_TESTS += fate-g722enc
> +fate-g722enc: tests/data/asynth-16000-1.sw
> +fate-g722enc: CMD = crc -ar 16000 -ac 1 -f s16le -i $(TARGET_PATH)/tests/data/asynth-16000-1.sw -acodec g722 -ac 1
> +
>  FATE_TESTS += fate-msmpeg4v1
>  fate-msmpeg4v1: CMD = framecrc -flags +bitexact -dct fastint -idct simple -i $(SAMPLES)/msmpeg4v1/mpg4.avi -an
>
> diff --git a/tests/ref/fate/g722enc b/tests/ref/fate/g722enc
> new file mode 100644
> index 0000000..2c55d23
> --- /dev/null
> +++ b/tests/ref/fate/g722enc
> @@ -0,0 +1 @@
> +CRC=0x6b47c5ec
> -- 

OK, but maybe md5 would be better than crc.
Martin Storsjö Oct. 18, 2011, 7:52 a.m. | #2
On Mon, 17 Oct 2011, Måns Rullgård wrote:

> Martin Storsjö <martin@martin.st> writes:
>
>> ---
>>  tests/fate2.mak        |    4 ++++
>>  tests/ref/fate/g722enc |    1 +
>>  2 files changed, 5 insertions(+), 0 deletions(-)
>>  create mode 100644 tests/ref/fate/g722enc
>>
>> diff --git a/tests/fate2.mak b/tests/fate2.mak
>> index 0bb6654..b148886 100644
>> --- a/tests/fate2.mak
>> +++ b/tests/fate2.mak
>> @@ -133,6 +133,10 @@ fate-gsm-ms: CMD = framecrc -i $(SAMPLES)/gsm/ciao.wav
>>  FATE_TESTS += fate-g722dec-1
>>  fate-g722dec-1: CMD = framecrc -i $(SAMPLES)/g722/conf-adminmenu-162.g722
>>
>> +FATE_TESTS += fate-g722enc
>> +fate-g722enc: tests/data/asynth-16000-1.sw
>> +fate-g722enc: CMD = crc -ar 16000 -ac 1 -f s16le -i $(TARGET_PATH)/tests/data/asynth-16000-1.sw -acodec g722 -ac 1
>> +
>>  FATE_TESTS += fate-msmpeg4v1
>>  fate-msmpeg4v1: CMD = framecrc -flags +bitexact -dct fastint -idct simple -i $(SAMPLES)/msmpeg4v1/mpg4.avi -an
>>
>> diff --git a/tests/ref/fate/g722enc b/tests/ref/fate/g722enc
>> new file mode 100644
>> index 0000000..2c55d23
>> --- /dev/null
>> +++ b/tests/ref/fate/g722enc
>> @@ -0,0 +1 @@
>> +CRC=0x6b47c5ec
>> --
>
> OK, but maybe md5 would be better than crc.

Pushed with md5 instead of crc.

// Martin

Patch

diff --git a/tests/fate2.mak b/tests/fate2.mak
index 0bb6654..b148886 100644
--- a/tests/fate2.mak
+++ b/tests/fate2.mak
@@ -133,6 +133,10 @@  fate-gsm-ms: CMD = framecrc -i $(SAMPLES)/gsm/ciao.wav
 FATE_TESTS += fate-g722dec-1
 fate-g722dec-1: CMD = framecrc -i $(SAMPLES)/g722/conf-adminmenu-162.g722
 
+FATE_TESTS += fate-g722enc
+fate-g722enc: tests/data/asynth-16000-1.sw
+fate-g722enc: CMD = crc -ar 16000 -ac 1 -f s16le -i $(TARGET_PATH)/tests/data/asynth-16000-1.sw -acodec g722 -ac 1
+
 FATE_TESTS += fate-msmpeg4v1
 fate-msmpeg4v1: CMD = framecrc -flags +bitexact -dct fastint -idct simple -i $(SAMPLES)/msmpeg4v1/mpg4.avi -an
 
diff --git a/tests/ref/fate/g722enc b/tests/ref/fate/g722enc
new file mode 100644
index 0000000..2c55d23
--- /dev/null
+++ b/tests/ref/fate/g722enc
@@ -0,0 +1 @@ 
+CRC=0x6b47c5ec