mirror of https://github.com/openXC7/prjxray.git
Fix up configuration tests
Signed-off-by: Lakira Ashley <lakridesagain@gmail.com>
This commit is contained in:
parent
da0f14f5fe
commit
a92201dd3b
|
|
@ -153,7 +153,8 @@ TEST(ConfigurationTest, DISABLED_CheckForPaddingAfterIOBFrame) {
|
|||
frames.getFrames(), test_part);
|
||||
// createType2ConfigurationPacketData should add a 16-bit pad word after
|
||||
// after the IOB frame
|
||||
EXPECT_EQ(packet_data.size(), 3 * 65 + 1);
|
||||
EXPECT_EQ(packet_data.frames.size(), 1);
|
||||
EXPECT_EQ(packet_data.frames[0].data.size(), 3 * 65 + 1);
|
||||
|
||||
std::vector<uint32_t> idcode{0x1234};
|
||||
std::vector<uint32_t> cmd{0x0001};
|
||||
|
|
@ -182,7 +183,7 @@ TEST(ConfigurationTest, DISABLED_CheckForPaddingAfterIOBFrame) {
|
|||
static_cast<unsigned int>(0x1),
|
||||
ConfigurationPacket<Spartan6::ConfRegType>::Opcode::Write,
|
||||
Spartan6::ConfRegType::FDRI,
|
||||
absl::MakeSpan(packet_data),
|
||||
absl::MakeSpan(packet_data.frames[0].data),
|
||||
},
|
||||
};
|
||||
|
||||
|
|
|
|||
|
|
@ -278,7 +278,8 @@ TEST(ConfigurationTest, CheckForPaddingFrames) {
|
|||
// extra padding frames are added at the end of the creation of the data
|
||||
// overall this gives us: 5(real frames) + 4*2 + 2 = 15 frames, which is
|
||||
// 15 * 101 = 1515 words
|
||||
EXPECT_EQ(packet_data.size(), 15 * 101);
|
||||
EXPECT_EQ(packet_data.frames.size(), 1);
|
||||
EXPECT_EQ(packet_data.frames[0].data.size(), 15 * 101);
|
||||
|
||||
std::vector<uint32_t> idcode{0x1234};
|
||||
std::vector<uint32_t> cmd{0x0001};
|
||||
|
|
@ -307,7 +308,7 @@ TEST(ConfigurationTest, CheckForPaddingFrames) {
|
|||
static_cast<unsigned int>(0x1),
|
||||
ConfigurationPacket<Series7::ConfRegType>::Opcode::Write,
|
||||
Series7::ConfRegType::FDRI,
|
||||
absl::MakeSpan(packet_data),
|
||||
absl::MakeSpan(packet_data.frames[0].data),
|
||||
},
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue