summaryrefslogtreecommitdiffstats
path: root/host/test/device_test.cpp
diff options
context:
space:
mode:
authorJosh Blum <josh@joshknows.com>2010-02-17 16:23:12 -0800
committerJosh Blum <josh@joshknows.com>2010-02-17 16:23:12 -0800
commit4fb4572e1a16f54439f57655f90e0fc937c57c1e (patch)
tree5dc731d266c8f5f783c5b28996a1583dac18ab57 /host/test/device_test.cpp
parenteb7e709b7aff162cc7c8f9b8004089846839ffbe (diff)
downloaduhd-4fb4572e1a16f54439f57655f90e0fc937c57c1e.tar.gz
uhd-4fb4572e1a16f54439f57655f90e0fc937c57c1e.tar.bz2
uhd-4fb4572e1a16f54439f57655f90e0fc937c57c1e.zip
Worked out spi api for the dboard interface.
Created usrp2 spi transaction control on host and fw
Diffstat (limited to 'host/test/device_test.cpp')
-rw-r--r--host/test/device_test.cpp44
1 files changed, 0 insertions, 44 deletions
diff --git a/host/test/device_test.cpp b/host/test/device_test.cpp
deleted file mode 100644
index 6373ff41b..000000000
--- a/host/test/device_test.cpp
+++ /dev/null
@@ -1,44 +0,0 @@
-//
-// Copyright 2010 Ettus Research LLC
-//
-// This program is free software: you can redistribute it and/or modify
-// it under the terms of the GNU General Public License as published by
-// the Free Software Foundation, either version 3 of the License, or
-// (at your option) any later version.
-//
-// This program is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
-//
-// You should have received a copy of the GNU General Public License
-// along with this program. If not, see <http://www.gnu.org/licenses/>.
-//
-
-#include <boost/test/unit_test.hpp>
-#include <uhd/device.hpp>
-
-using namespace uhd;
-
-BOOST_AUTO_TEST_CASE(test_device){
- device_addr_t device_addr;
- device_addr["type"] = "test";
- device_addr["num_dboards"] = "2";
- 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::obj mb0 = (*dev)[DEVICE_PROP_MBOARD];
- std::cout << wax::cast<std::string>(mb0[MBOARD_PROP_NAME]) << std::endl;
- BOOST_CHECK_EQUAL(
- 2,
- wax::cast<prop_names_t>(mb0[MBOARD_PROP_RX_DBOARD_NAMES]).size()
- );
- BOOST_CHECK_EQUAL(
- 2,
- wax::cast<prop_names_t>(mb0[MBOARD_PROP_TX_DBOARD_NAMES]).size()
- );
-
-}