From 8b4297a8ab9e2286969d7559ec4382f3869db7ab Mon Sep 17 00:00:00 2001 From: Jens Ahrensfeld Date: Fri, 17 Jun 2022 08:03:19 +0000 Subject: [PATCH] - customize debug and release build git-svn-id: http://moon:8086/svn/software/trunk/libsrc/cpp@1015 b431acfa-c32f-4a4a-93f1-934dc6c82436 --- radio/tests/interpolation/farrow/Makefile | 2 ++ radio/tests/interpolation/farrow/test.cpp | 7 +++++++ 2 files changed, 9 insertions(+) diff --git a/radio/tests/interpolation/farrow/Makefile b/radio/tests/interpolation/farrow/Makefile index d04d847..f6f4e0a 100644 --- a/radio/tests/interpolation/farrow/Makefile +++ b/radio/tests/interpolation/farrow/Makefile @@ -9,6 +9,8 @@ CXXFLAGS += -std=c++20 CXXFLAGS += -Wno-volatile CXXFLAGS += -Wno-deprecated-declarations +DEFINES_debug += -DTEST_DEBUG + PWD := $(realpath .) CXX_SRCS += $(PWD)/main.cpp CXX_SRCS += $(PWD)/test.cpp diff --git a/radio/tests/interpolation/farrow/test.cpp b/radio/tests/interpolation/farrow/test.cpp index 0df7b2e..b335bc3 100644 --- a/radio/tests/interpolation/farrow/test.cpp +++ b/radio/tests/interpolation/farrow/test.cpp @@ -116,7 +116,9 @@ class TimingGeneratorGardner : public Interpolation::TimingGenerator if (is_time) { // @1 x symbolrate +#ifdef TEST_DEBUG cout << "Vd = " << vd << ", omega = " << m_dOmega << ", mu = " << getMu() << endl; +#endif m_dOmega = LeadLagProcess(&loop_filter_str, &str_loopfilter_coeff, vd); } is_time = not is_time; @@ -138,8 +140,13 @@ void test() // Setup IQ data WAVEHEADER header; +#ifdef TEST_DEBUG CVec iq_in = wavLoad("m2_12k_12k_i_q_short_2sps.wav", header); // CVec iq_in = wavLoad("sine.wav", header); +#else + CVec iq_in = wavLoad("m2_12k_12k_i_q_2sps.wav", header); +#endif + CVec iq_out; iq_out.reserve(8*iq_in.size());