Skip to content

Commit

Permalink
Test Compact Binary v2 compat between C# and C++
Browse files Browse the repository at this point in the history
  • Loading branch information
chwarr committed Apr 26, 2016
1 parent 13ed9a5 commit 5bbe73c
Showing 1 changed file with 2 additions and 10 deletions.
12 changes: 2 additions & 10 deletions cpp/test/compat/compat.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -13,18 +13,10 @@ if (${TEST} STREQUAL schema)
endif()

if (CSHARP_COMPAT)
set (TEST_CS ${TEST})

# C# implements reading of Compact Binary v2 but not writing
if (${TEST_CS} STREQUAL compact2)
set (TEST_CS compact)
endif()

run (${CSHARP_COMPAT} ${TEST} ${COMPAT_DATA}/compat.${TEST}.dat compat.${TEST}.cs.dat ${TEST_CS})
run (${BOND_COMPAT} ${TEST_CS} -d compat.${TEST}.cs.dat expected.cs.${TEST} deserialized.cs.${TEST})
run (${CSHARP_COMPAT} ${TEST} ${COMPAT_DATA}/compat.${TEST}.dat compat.${TEST}.cs.dat ${TEST})
run (${BOND_COMPAT} ${TEST} -d compat.${TEST}.cs.dat expected.cs.${TEST} deserialized.cs.${TEST})

if (${TEST} STREQUAL schema)
run (${CSHARP_COMPAT} ${TEST} compat.Compat.json compat.${TEST}.gbc.dat)
endif()
endif()

0 comments on commit 5bbe73c

Please sign in to comment.