Skip to content

Commit

Permalink
FATE: replace the acodec-g726 test with 4 new encode/decode tests
Browse files Browse the repository at this point in the history
Avoids resampling and channel mixing. This only tests the behavior
with respect to input and output audio rather than also testing changes
to the encoder or muxer that do not affect the resulting decoded output.
  • Loading branch information
justinruggles committed Apr 20, 2012
1 parent a6c8cca commit 03caef1
Show file tree
Hide file tree
Showing 8 changed files with 27 additions and 62 deletions.
5 changes: 0 additions & 5 deletions tests/codec-regression.sh
Expand Up @@ -311,11 +311,6 @@ do_audio_encoding ac3.ac3 "-vn -acodec ac3_fixed"
#$tiny_psnr $pcm_dst $pcm_ref 2 1024
fi

if [ -n "$do_g726" ] ; then
do_audio_encoding g726.wav "-b 32k -ac 1 -ar 8000 -acodec g726"
do_audio_decoding
fi

if [ -n "$do_adpcm_adx" ] ; then
do_audio_encoding adpcm_adx.adx "-acodec adpcm_adx"
do_audio_decoding
Expand Down
23 changes: 23 additions & 0 deletions tests/fate/voice.mak
Expand Up @@ -9,6 +9,29 @@ fate-g722-encode: CMD = enc_dec_pcm wav md5 s16le $(SRC) -c:a g722
FATE_TESTS += $(FATE_G722)
fate-g722: $(FATE_G722)

FATE_G726 += fate-g726-encode-2bit
fate-g726-encode-2bit: tests/data/asynth-8000-1.wav
fate-g726-encode-2bit: SRC = tests/data/asynth-8000-1.wav
fate-g726-encode-2bit: CMD = enc_dec_pcm wav md5 s16le $(SRC) -c:a g726 -b:a 16k

FATE_G726 += fate-g726-encode-3bit
fate-g726-encode-3bit: tests/data/asynth-8000-1.wav
fate-g726-encode-3bit: SRC = tests/data/asynth-8000-1.wav
fate-g726-encode-3bit: CMD = enc_dec_pcm wav md5 s16le $(SRC) -c:a g726 -b:a 24k

FATE_G726 += fate-g726-encode-4bit
fate-g726-encode-4bit: tests/data/asynth-8000-1.wav
fate-g726-encode-4bit: SRC = tests/data/asynth-8000-1.wav
fate-g726-encode-4bit: CMD = enc_dec_pcm wav md5 s16le $(SRC) -c:a g726 -b:a 32k

FATE_G726 += fate-g726-encode-5bit
fate-g726-encode-5bit: tests/data/asynth-8000-1.wav
fate-g726-encode-5bit: SRC = tests/data/asynth-8000-1.wav
fate-g726-encode-5bit: CMD = enc_dec_pcm wav md5 s16le $(SRC) -c:a g726 -b:a 40k

FATE_TESTS += $(FATE_G726)
fate-g726: $(FATE_G726)

FATE_GSM += fate-gsm-ms
fate-gsm-ms: CMD = framecrc -i $(SAMPLES)/gsm/ciao.wav

Expand Down
4 changes: 0 additions & 4 deletions tests/ref/acodec/g726

This file was deleted.

1 change: 1 addition & 0 deletions tests/ref/fate/g726-encode-2bit
@@ -0,0 +1 @@
MD5=215eaef5778a16e2bf4f3725a557f355
1 change: 1 addition & 0 deletions tests/ref/fate/g726-encode-3bit
@@ -0,0 +1 @@
MD5=0bebd949dfd5ac0ae3f2c3ceb2e3fac1
1 change: 1 addition & 0 deletions tests/ref/fate/g726-encode-4bit
@@ -0,0 +1 @@
MD5=a21cfea116ab2179eabe5d84b6bfc09a
1 change: 1 addition & 0 deletions tests/ref/fate/g726-encode-5bit
@@ -0,0 +1 @@
MD5=9cad98cf5205bf76d6e9d1241e56141a
53 changes: 0 additions & 53 deletions tests/ref/seek/g726_wav

This file was deleted.

0 comments on commit 03caef1

Please sign in to comment.