turn off backwards compatibility test with quaternions or TBB since serialization structure is different
parent
83276853b5
commit
fa196aa638
|
|
@ -109,10 +109,13 @@ TEST (Serialization, TemplatedValues) {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Test deserializing from a known serialization generated by code from commit
|
* Test deserializing from a known serialization generated by code from commit
|
||||||
* 3ba65669113f41d0e56a03b4b314047776bab5c4 (>4.2a4)
|
* 0af17f438f62f4788f3a572ecd36d06d224fd1e1 (>4.2a7)
|
||||||
* We only test that deserialization matches since
|
* We only test that deserialization matches since
|
||||||
* (1) that's the main backward compatibility requirement and
|
* (1) that's the main backward compatibility requirement and
|
||||||
* (2) serialized string depends on boost version
|
* (2) serialized string depends on boost version
|
||||||
|
* Also note: we don't run this test when quaternions or TBB are enabled since
|
||||||
|
* serialization structures are different and the serialized strings/xml are
|
||||||
|
* hard-coded in this test.
|
||||||
*/
|
*/
|
||||||
TEST(Serialization, NoiseModelFactor1_backwards_compatibility) {
|
TEST(Serialization, NoiseModelFactor1_backwards_compatibility) {
|
||||||
PriorFactor<Pose3> factor(
|
PriorFactor<Pose3> factor(
|
||||||
|
|
@ -124,6 +127,7 @@ TEST(Serialization, NoiseModelFactor1_backwards_compatibility) {
|
||||||
roundtrip(factor, factor_deserialized_str_2);
|
roundtrip(factor, factor_deserialized_str_2);
|
||||||
EXPECT(assert_equal(factor, factor_deserialized_str_2));
|
EXPECT(assert_equal(factor, factor_deserialized_str_2));
|
||||||
|
|
||||||
|
#if !defined(GTSAM_USE_QUATERNIONS) && !defined(GTSAM_USE_TBB)
|
||||||
// Deserialize string
|
// Deserialize string
|
||||||
std::string serialized_str =
|
std::string serialized_str =
|
||||||
"22 serialization::archive 15 1 0\n"
|
"22 serialization::archive 15 1 0\n"
|
||||||
|
|
@ -153,6 +157,7 @@ TEST(Serialization, NoiseModelFactor1_backwards_compatibility) {
|
||||||
"/../../gtsam/nonlinear/tests/priorFactor.xml",
|
"/../../gtsam/nonlinear/tests/priorFactor.xml",
|
||||||
factor_deserialized_xml);
|
factor_deserialized_xml);
|
||||||
EXPECT(assert_equal(factor, factor_deserialized_xml));
|
EXPECT(assert_equal(factor, factor_deserialized_xml));
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
TEST(Serialization, ISAM2) {
|
TEST(Serialization, ISAM2) {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue