r1283@opsdev009 (orig r69414): dreiss | 2007-11-13 03:55:06 -0800
[amiethrift.git] / test / ManyTypedefs.thrift
blob447d7d2b2c48fb247ee5dcb665ae1541cf4b7a29
1 // This is to make sure you don't mess something up when you change typedef code.
2 // Generate it with the old and new thrift and make sure they are the same.
3 /*
4 rm -rf gen-* orig-*
5 mkdir old new
6 thrift -cpp -java -php -phpi -py -rb -xsd -perl -ocaml -erl -hs -strict ManyTypedefs.thrift
7 mv gen-* old
8 ../compiler/cpp/thrift -cpp -java -php -phpi -py -rb -xsd -perl -ocaml -erl -hs -strict ManyTypedefs.thrift
9 mv gen-* new
10 diff -ur old new
11 rm -rf old new
12 # There should be no output.
15 typedef i32 int32
16 typedef list<map<int32, string>> biglist
18 struct struct1 {
19   1: int32 myint;
20   2: biglist mylist;
23 exception exception1 {
24   1: biglist alist;
25   2: struct1 mystruct;
28 service AService {
29   struct1 method1(1: int32 myint) throws (1: exception1 exn);
30   biglist method2();