00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019 #include <boost/test/unit_test.hpp>
00020 #include "torc/architecture/XdlImporter.hpp"
00021 #include "torc/physical/Design.hpp"
00022 #include "torc/common/DirectoryTree.hpp"
00023 #include <fstream>
00024
00025
00026 namespace torc {
00027 namespace architecture {
00028
00029 BOOST_AUTO_TEST_SUITE(architecture)
00030
00031
00032
00033 BOOST_AUTO_TEST_CASE(XdlImporterUnitTest) {
00034
00035 boost::filesystem::path regressionPath
00036 = torc::common::DirectoryTree::getExecutablePath() / "regression";
00037 boost::filesystem::path generatedPath = regressionPath / "DesignUnitTest.generated.xdl";
00038 boost::filesystem::path referencePath = regressionPath / "DesignUnitTest.reference.xdl";
00039
00040
00041 std::fstream fileStream(referencePath.string().c_str());
00042 BOOST_REQUIRE(fileStream.good());
00043 XdlImporter importer;
00044 importer(fileStream, referencePath.string());
00045
00046
00047 torc::physical::DesignSharedPtr designPtr = importer.getDesignPtr();
00048 BOOST_REQUIRE(designPtr.get() != 0);
00049 BOOST_REQUIRE(false);
00050 BOOST_TEST_MESSAGE("Need to fix XdlImporter::bind(torc::physical::Pip& inPip, EPipType inPipType) and XDL design regression test files for directionality of pips.");
00051
00052
00053 DDB* ddbPtr = importer.releaseDDBPtr();
00054 (void) ddbPtr;
00055 }
00056
00057 BOOST_AUTO_TEST_SUITE_END()
00058
00059 }
00060 }