-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added a macro that will elide the CRC value for tests (#237)
Added a macro that will elide the CRC value for tests This will enable 'universal' tests in more cases, freeing us from maintaining two sets of baselines (one each for big- and little-endian machines).
- Loading branch information
1 parent
bfa2730
commit 11e6695
Showing
7 changed files
with
105 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
26 changes: 26 additions & 0 deletions
26
tests/dmr-testsuite/universal/test_simple_8.xml.1.trans_base
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
Parse successful | ||
<?xml version="1.0" encoding="ISO-8859-1"?> | ||
<Dataset xmlns="http://xml.opendap.org/ns/DAP/4.0#" xml:base="file:dap4/test_simple_8.xml" dapVersion="4.0" dmrVersion="1.0" name="test_simple_8"> | ||
<Structure name="outer"> | ||
<Sequence name="s"> | ||
<Int32 name="i1"/> | ||
<String name="s"/> | ||
</Sequence> | ||
</Structure> | ||
</Dataset> | ||
|
||
<?xml version="1.0" encoding="ISO-8859-1"?> | ||
<Dataset xmlns="http://xml.opendap.org/ns/DAP/4.0#" xml:base="file:dap4/test_simple_8.xml" dapVersion="4.0" dmrVersion="1.0" name="test_simple_8"> | ||
<Structure name="outer"> | ||
<Sequence name="s"> | ||
<Int32 name="i1"/> | ||
<String name="s"/> | ||
</Sequence> | ||
<Attribute name="DAP4_Checksum_CRC32" type="String"> | ||
removed checksum | ||
</Attribute> | ||
</Structure> | ||
</Dataset> | ||
|
||
The data: | ||
{ { { { 123456789, "Silly test string: 1" }, { 123456789, "Silly test string: 1" }, { 123456789, "Silly test string: 1" }, { 123456789, "Silly test string: 1" } } } } |
25 changes: 25 additions & 0 deletions
25
tests/dmr-testsuite/universal/test_simple_8.xml.2.trans_base
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
Parse successful | ||
<?xml version="1.0" encoding="ISO-8859-1"?> | ||
<Dataset xmlns="http://xml.opendap.org/ns/DAP/4.0#" xml:base="file:dap4/test_simple_8.xml" dapVersion="4.0" dmrVersion="1.0" name="test_simple_8"> | ||
<Structure name="outer"> | ||
<Sequence name="s"> | ||
<Int32 name="i1"/> | ||
<String name="s"/> | ||
</Sequence> | ||
</Structure> | ||
</Dataset> | ||
|
||
<?xml version="1.0" encoding="ISO-8859-1"?> | ||
<Dataset xmlns="http://xml.opendap.org/ns/DAP/4.0#" xml:base="file:dap4/test_simple_8.xml" dapVersion="4.0" dmrVersion="1.0" name="test_simple_8"> | ||
<Structure name="outer"> | ||
<Sequence name="s"> | ||
<String name="s"/> | ||
</Sequence> | ||
<Attribute name="DAP4_Checksum_CRC32" type="String"> | ||
removed checksum | ||
</Attribute> | ||
</Structure> | ||
</Dataset> | ||
|
||
The data: | ||
{ { { { "Silly test string: 1" }, { "Silly test string: 1" }, { "Silly test string: 1" }, { "Silly test string: 1" } } } } |