summaryrefslogtreecommitdiff
path: root/test/README.md
blob: 8027002235e85a3b0cabd4b66cedb8ee09e796a0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
MessagePack cross-language test cases
=====================================

## cases

Valid serialized data are stored in "cases.mpac" and "cases_compact.mpac".
These files describe same objects. And "cases.json" describes an array of the described objects.

Thus you can verify your implementations as comparing the objects.


## crosslang

The *crosslang* tool reads serialized data from stdin and writes re-serialize data to stdout.

There are C++ and Ruby implementation of crosslang tool. You can verify your implementation
as comparing that implementations.

### C++ version

    $ cd ../cpp && ./configure && make && make install
    or
    $ port install msgpack  # MacPorts
    
    $ g++ -Wall -lmsgpack crosslang.cc -o crosslang

    $ ./crosslang
    Usage: ./crosslang [in-file] [out-file]

### Ruby version

    $ gem install msgpack
    or
    $ port install rb_msgpack   # MacPorts

    $ ruby crosslang.rb
    Usage: crosslang.rb [in-file] [out-file]