19 #include <boost/test/unit_test.hpp>
35 BOOST_AUTO_TEST_SUITE(packer)
42 "torc/router/TraceRegressionTest.Virtex5.xdl",
44 "torc/router/PathFinderRouter/PathFinderRegression.Virtex5.Test1.xdl",
45 "regression/PathFinderRegression.Virtex5.Test1.xdl",
47 "regression/cae_fpga_routed.xdl",
48 "regression/counter.xdl",
49 "regression/DesignUnitTest.reference.xdl",
50 "regression/PathFinderRegression.Virtex5.Test1.xdl",
51 "regression/TraceRegressionTest.Virtex5.xdl",
52 "regression/TraceRegressionTest.VirtexTbuf.xdl",
53 "regression/TraceVirtex5Test.xdl",
54 "regression/Virtex5UnitTest.reference.xdl",
56 "regression/audio_test.xdl",
57 "regression/bitstreamTest.xdl",
58 "regression/blinker.xdl",
59 "regression/collatz1.xdl",
60 "regression/config_with_trailing_embedded_newline.xdl",
61 "regression/counter.xdl",
62 "regression/fullroutetest3_noio.xdl",
63 "regression/hardnets.xdl",
64 "regression/input.xdl",
65 "regression/loop154@24816_1_test0.xdl",
66 "regression/loop154@24816_1_test1.xdl",
67 "regression/minimips.xdl",
68 "regression/neil.xdl",
69 "regression/path276@24816_16.xdl",
70 "regression/pathfindertest1.xdl",
71 "regression/pathfindertest1_constrained.xdl",
72 "regression/pathfindertest1_onenet.xdl",
73 "regression/pathfindertest2.xdl",
74 "regression/powerandglobal.xdl",
75 "regression/prng_v0.xdl",
76 "regression/rfft.par.xdl",
77 "regression/routingtest1.xdl",
78 "regression/test.xdl",
79 "regression/test_noroute.xdl",
80 "regression/testsys_nopips.xdl",
82 "regression/top_map.xdl",
83 "regression/twonet.xdl",
86 "regression/xc5vlx50ff676_base_io_single_test.xdl",
92 /
"torc" /
"router" /
"PathFinderRouter" /
"PathFinderRegression.Virtex5.Test1.xdl";
94 /
"regression" /
"UnpackerUnitTest.xdl";
95 std::cout << referencePath << std::endl;
97 for(
int i = 0; xdls[i].size(); i++) {
98 referencePath = xdls[i];
99 std::cerr <<
"Unpacking " << referencePath << std::endl;
102 std::fstream fileStream(referencePath.string().c_str());
103 BOOST_REQUIRE(fileStream.good());
105 importer(fileStream, referencePath.string());
109 BOOST_REQUIRE(mDesignPtr.get() != 0);
116 std::fstream xdlExport(generatedPath.string().c_str(), std::ios_base::out);
118 fileExporter(mDesignPtr);
124 BOOST_AUTO_TEST_SUITE_END()
DesignSharedPtr getDesignPtr(void)
Returns a shared pointer for the design.
Header for the DirectoryTree class.
Header for the Instance class.
Header for the PrimitiveStructure class.
Header for Boost.Test helper functions.
Architecture aware importer from XDL format into a physical design.
Main torc::physical namespace header.
boost::filesystem::path path
boost::shared_ptr< Design > DesignSharedPtr
Shared pointer encapsulation of a Design.
BOOST_AUTO_TEST_CASE(PrimitiveStructureUnitTest)
Unit test for the PrimitiveStructure class.
Header for the DDB class.
Header for the Net class.
Header for the XdlImporter class.
static const boost::filesystem::path & getExecutablePath(void)
Returns the absolute path to the executable directory.
Physical design exporter for XDL.