diff options
author | Josh Blum <josh@joshknows.com> | 2010-01-21 19:05:30 -0800 |
---|---|---|
committer | Josh Blum <josh@joshknows.com> | 2010-01-21 19:05:30 -0800 |
commit | 069a7ce0570001ea3d9512a11d238ea4d6773f1d (patch) | |
tree | cf38f9c1745d0054d8775551b1caedf5522f55b2 /test | |
parent | e3483c7451d20b7ed1d8d4865e15751f18cdef78 (diff) | |
download | uhd-069a7ce0570001ea3d9512a11d238ea4d6773f1d.tar.gz uhd-069a7ce0570001ea3d9512a11d238ea4d6773f1d.tar.bz2 uhd-069a7ce0570001ea3d9512a11d238ea4d6773f1d.zip |
Added more to the mboard test and the usrp device.
Diffstat (limited to 'test')
-rw-r--r-- | test/device_test.cpp | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/test/device_test.cpp b/test/device_test.cpp index bbcada3ab..66256ba88 100644 --- a/test/device_test.cpp +++ b/test/device_test.cpp @@ -27,5 +27,20 @@ void device_test::test(void){ device_addr.virtual_args.num_rx_dsps = 3; device_addr.virtual_args.num_tx_dsps = 4; device::sptr dev = device::make(device_addr); + + std::cout << "Access the device" << std::endl; std::cout << wax::cast<std::string>((*dev)[DEVICE_PROP_NAME]) << std::endl; + + std::cout << "Access the mboard" << std::endl; + wax::proxy mb0 = (*dev)[DEVICE_PROP_MBOARD]; + std::cout << wax::cast<std::string>(mb0[MBOARD_PROP_NAME]) << std::endl; + CPPUNIT_ASSERT_EQUAL( + device_addr.virtual_args.num_dboards, + wax::cast<size_t>(mb0[MBOARD_PROP_NUM_RX_DBOARDS]) + ); + CPPUNIT_ASSERT_EQUAL( + device_addr.virtual_args.num_dboards, + wax::cast<size_t>(mb0[MBOARD_PROP_NUM_TX_DBOARDS]) + ); + } |