19 #include <boost/test/unit_test.hpp>
28 BOOST_AUTO_TEST_SUITE(physical)
55 /
"torc" /
"physical" /
"DesignUnitTest.reference.xdl";
61 std::fstream fileStream(referencePath.string().c_str());
62 BOOST_REQUIRE(fileStream.good());
64 importer(fileStream, referencePath.string());
65 BOOST_CHECK_EQUAL(referencePath.string(), importer.mStreamName);
70 BOOST_REQUIRE(designPtr.get() != 0);
71 BOOST_CHECK_EQUAL(designPtr->getName(),
"blinker");
72 BOOST_CHECK_EQUAL(designPtr->getDevice(),
"xc5vlx30");
73 BOOST_CHECK_EQUAL(designPtr->getPackage(),
"ff324");
74 BOOST_CHECK_EQUAL(designPtr->getSpeedGrade(),
"-1");
75 BOOST_CHECK_EQUAL(designPtr->getModuleCount(), 0u);
76 BOOST_CHECK_EQUAL(designPtr->getInstanceCount(), 8u);
77 BOOST_CHECK_EQUAL(designPtr->getNetCount(), 7u);
80 BOOST_AUTO_TEST_SUITE_END()
DesignSharedPtr getDesignPtr(void)
Returns a shared pointer for the design.
Header for the DirectoryTree class.
BOOST_AUTO_TEST_CASE(XdlUnpackUnitTest)
Unit test for the XdlUnpack class.
Header for the XdlImporter class.
Header for the Design class.
boost::filesystem::path path
boost::shared_ptr< Design > DesignSharedPtr
Shared pointer encapsulation of a Design.
Importer from XDL format into a physical design.
static const boost::filesystem::path & getExecutablePath(void)
Returns the absolute path to the executable directory.