aboutsummaryrefslogtreecommitdiffstats
path: root/host/test/tune_helper_test.cpp
diff options
context:
space:
mode:
authorJosh Blum <josh@joshknows.com>2010-07-15 14:51:18 -0700
committerJosh Blum <josh@joshknows.com>2010-07-16 16:51:30 -0700
commit1b7bf0ce1a5b5306323730ef790b3038d4ca3979 (patch)
treec37dacd879158a2950015293fdec4dee46e9b6f4 /host/test/tune_helper_test.cpp
parentb25e610868752ac55b6f8e0c05bc2e0f7b18e223 (diff)
downloaduhd-1b7bf0ce1a5b5306323730ef790b3038d4ca3979.tar.gz
uhd-1b7bf0ce1a5b5306323730ef790b3038d4ca3979.tar.bz2
uhd-1b7bf0ce1a5b5306323730ef790b3038d4ca3979.zip
uhd: added test to check derive_freq_from_xx_subdev_and_dsp
Diffstat (limited to 'host/test/tune_helper_test.cpp')
-rw-r--r--host/test/tune_helper_test.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/host/test/tune_helper_test.cpp b/host/test/tune_helper_test.cpp
index e9fb93081..47b47beda 100644
--- a/host/test/tune_helper_test.cpp
+++ b/host/test/tune_helper_test.cpp
@@ -122,6 +122,9 @@ BOOST_AUTO_TEST_CASE(test_tune_helper_rx){
std::cout << tr.to_pp_string() << std::endl;
BOOST_CHECK_CLOSE(tr.actual_inter_freq, 2.345e9, tolerance);
BOOST_CHECK_CLOSE(tr.actual_dsp_freq, -100e3, tolerance);
+
+ double freq_derived = derive_freq_from_rx_subdev_and_dsp(subdev.get_link(), dsp.get_link());
+ BOOST_CHECK_CLOSE(freq_derived, 2.3451e9, tolerance);
}
BOOST_AUTO_TEST_CASE(test_tune_helper_tx){
@@ -133,4 +136,7 @@ BOOST_AUTO_TEST_CASE(test_tune_helper_tx){
std::cout << tr.to_pp_string() << std::endl;
BOOST_CHECK_CLOSE(tr.actual_inter_freq, 2.345e9, tolerance);
BOOST_CHECK_CLOSE(tr.actual_dsp_freq, 100e3, tolerance);
+
+ double freq_derived = derive_freq_from_tx_subdev_and_dsp(subdev.get_link(), dsp.get_link());
+ BOOST_CHECK_CLOSE(freq_derived, 2.3451e9, tolerance);
}