Browse Source

disable all AMR tests by default due to inconsistent codec libs

closes #708

Change-Id: I48f8c229486dc52c227e64782b05f931f1012c66
changes/75/27475/1
Richard Fuchs 7 years ago
parent
commit
ee104e9382
2 changed files with 13 additions and 2 deletions
  1. +11
    -2
      t/Makefile
  2. +2
    -0
      t/transcode-test.c

+ 11
- 2
t/Makefile View File

@ -23,6 +23,9 @@ CFLAGS+= $(shell pkg-config --cflags libevent_pthreads)
CFLAGS+= $(shell pkg-config xmlrpc_client --cflags 2> /dev/null || xmlrpc-c-config client --cflags)
CFLAGS+= $(shell pkg-config xmlrpc --cflags 2> /dev/null)
CFLAGS+= $(shell pkg-config xmlrpc_util --cflags 2> /dev/null)
ifeq ($(with_amr_tests),yes)
CFLAGS+= -DWITH_AMR_TESTS
endif
else
CFLAGS+= -DWITHOUT_CODECLIB
endif
@ -51,7 +54,10 @@ endif
SRCS= bitstr-test.c aes-crypt.c payload-tracker-test.c
ifeq ($(with_transcoding),yes)
SRCS+= amr-decode-test.c amr-encode-test.c transcode-test.c
SRCS+= transcode-test.c
ifeq ($(with_amr_tests),yes)
SRCS+= amr-decode-test.c amr-encode-test.c
endif
endif
LIBSRCS= loglib.c auxlib.c str.c rtplib.c
ifeq ($(with_transcoding),yes)
@ -75,7 +81,10 @@ include .depend
TESTS= bitstr-test aes-crypt payload-tracker-test
ifeq ($(with_transcoding),yes)
TESTS+= amr-decode-test amr-encode-test transcode-test
TESTS+= transcode-test
ifeq ($(with_amr_tests),yes)
TESTS+= amr-decode-test amr-encode-test
endif
endif
ADD_CLEAN= $(TESTS)


+ 2
- 0
t/transcode-test.c View File

@ -453,6 +453,7 @@ int main() {
packet(B, 0, PCMU_payload, 0, PCMU_payload);
end();
#ifdef WITH_AMR_TESTS
{
str codec_name = STR_CONST_INIT("AMR-WB");
const codec_def_t *def = codec_find(&codec_name, MT_AUDIO);
@ -522,6 +523,7 @@ int main() {
end();
}
}
#endif
// G.722 <> PCMA
start();


Loading…
Cancel
Save