• Home
  • History
  • Annotate
Name Date Size #Lines LOC

..15-Jun-2013-

other/H15-Jun-2013-9367

threads/H15-Jun-2013-8357

MakefileH A D15-Jun-20132.9 KiB8945

Makefile.altH A D15-Jun-2013753 3221

Makefile.mingwH A D15-Jun-2013637 2616

READMEH A D15-Jun-20136.2 KiB126124

dbx.shH A D15-Jun-2013458 2512

do_testsH A D15-Jun-2013422 2316

do_tests.cygwinH A D15-Jun-2013419 2215

int64_align.cH A D15-Jun-2013387 2010

malign.cH A D15-Jun-2013480 219

mgwtest.cH A D15-Jun-20131.1 KiB5746

sizesH A D15-Jun-2013504 2414

test1-mingw.cH A D15-Jun-2013274 1310

test1.ansH A D15-Jun-20137 21

test1.cH A D15-Jun-2013407 2521

test10.ansH A D15-Jun-201370 1110

test10.cH A D15-Jun-2013241 1411

test100.ansH A D15-Jun-201316 32

test100.cH A D15-Jun-2013444 2823

test101.ansH A D15-Jun-201353 32

test101.cH A D15-Jun-2013532 3126

test102.ansH A D15-Jun-201312 32

test102.cH A D15-Jun-2013383 2318

test103.ansH A D15-Jun-201357 32

test103.cH A D15-Jun-2013674 3429

test104.ansH A D15-Jun-201356 32

test104.cH A D15-Jun-2013680 3429

test105.ansH A D15-Jun-201362 32

test105.cH A D15-Jun-2013666 3019

test106.ansH A D15-Jun-2013618 2524

test106.cH A D15-Jun-20132.9 KiB127105

test107.ansH A D15-Jun-201330 65

test107.cH A D15-Jun-2013694 3930

test108.ansH A D15-Jun-201355 32

test108.cH A D15-Jun-20131.3 KiB5039

test109.ansH A D15-Jun-201331 32

test109.cH A D15-Jun-2013653 3628

test11.ansH A D15-Jun-201333 21

test11.cH A D15-Jun-2013299 1813

test110.ansH A D15-Jun-201317 21

test110.cH A D15-Jun-20132.5 KiB7967

test111.ansH A D15-Jun-201317 21

test111.cH A D15-Jun-2013871 4632

test112.ansH A D15-Jun-201317 21

test112.cH A D15-Jun-2013921 4834

test113.ansH A D15-Jun-201357 65

test113.cH A D15-Jun-20131.2 KiB5440

test114.ansH A D15-Jun-201315 21

test114.cH A D15-Jun-2013832 4637

test115.ansH A D15-Jun-20133 KiB4140

test115.cH A D15-Jun-20132.4 KiB12093

test116.ansH A D15-Jun-201321 54

test116.cH A D15-Jun-2013605 3022

test117.ansH A D15-Jun-201358 1110

test117.cH A D15-Jun-2013990 4840

test118.ansH A D15-Jun-201376 65

test118.cH A D15-Jun-20131.3 KiB5644

test119.ansH A D15-Jun-201313 21

test119.cH A D15-Jun-2013682 4229

test12.ansH A D15-Jun-201333 21

test12.cH A D15-Jun-2013299 1813

test120.ansH A D15-Jun-2013149 1312

test120.cH A D15-Jun-2013660 2521

test121.ansH A D15-Jun-201329 76

test121.cH A D15-Jun-2013657 3226

test122.ansH A D15-Jun-201319 21

test122.cH A D15-Jun-2013762 4132

test123.ansH A D15-Jun-201314 21

test123.cH A D15-Jun-2013684 3427

test124.ansH A D15-Jun-201346 54

test124.cH A D15-Jun-2013664 3931

test13.ansH A D15-Jun-201333 21

test13.cH A D15-Jun-2013299 1813

test14.ansH A D15-Jun-201333 21

test14.cH A D15-Jun-2013299 1813

test15.ansH A D15-Jun-201333 21

test15.cH A D15-Jun-2013299 1813

test16.ansH A D15-Jun-201333 21

test16.cH A D15-Jun-2013299 1813

test17.ansH A D15-Jun-201338 21

test17.cH A D15-Jun-2013299 1813

test18.ansH A D15-Jun-201335 32

test18.cH A D15-Jun-2013243 1611

test19.ansH A D15-Jun-201337 32

test19.cH A D15-Jun-2013249 1611

test2.ansH A D15-Jun-20137 21

test2.cH A D15-Jun-2013363 2217

test20.ansH A D15-Jun-201336 32

test20.cH A D15-Jun-2013241 1611

test21.ansH A D15-Jun-201360 65

test21.cH A D15-Jun-2013408 1915

test22.ansH A D15-Jun-201370 1110

test22.cH A D15-Jun-2013382 1915

test23.ansH A D15-Jun-201370 1110

test23.cH A D15-Jun-2013621 3025

test24.ansH A D15-Jun-201370 1110

test24.cH A D15-Jun-2013535 2723

test25.ansH A D15-Jun-201333 21

test25.cH A D15-Jun-2013509 2823

test26.ansH A D15-Jun-201338 32

test26.cH A D15-Jun-20132.2 KiB8671

test27.ansH A D15-Jun-201370 1110

test27.cH A D15-Jun-2013798 3630

test28.ansH A D15-Jun-201316 21

test28.cH A D15-Jun-2013791 3931

test29.ansH A D15-Jun-201343 32

test29.cH A D15-Jun-20131.1 KiB5141

test3.ansH A D15-Jun-201370 1110

test3.cH A D15-Jun-2013380 1915

test30.ansH A D15-Jun-201322 32

test30.cH A D15-Jun-2013933 4131

test31.ansH A D15-Jun-201318 31

test31.cH A D15-Jun-2013899 3927

test32.ansH A D15-Jun-2013110 1110

test32.cH A D15-Jun-20131 KiB4535

test33.ansH A D15-Jun-201334 32

test33.cH A D15-Jun-2013429 2418

test34.ansH A D15-Jun-2013216 1615

test34.cH A D15-Jun-2013465 2216

test35.cH A D15-Jun-2013339 1712

test36.ansH A D15-Jun-201346 43

test36.cH A D15-Jun-2013373 2316

test37.cH A D15-Jun-2013308 2115

test38.ansH A D15-Jun-2013243 109

test38.cH A D15-Jun-2013382 2016

test39.ansH A D15-Jun-201353 32

test39.cH A D15-Jun-2013317 1813

test4.ansH A D15-Jun-201370 1110

test4.cH A D15-Jun-2013426 2319

test40.cH A D15-Jun-2013308 1913

test41.ansH A D15-Jun-201312 32

test41.cH A D15-Jun-2013315 1914

test42.cH A D15-Jun-2013350 1712

test43.cH A D15-Jun-2013391 2115

test44.cH A D15-Jun-2013458 2418

test45.ansH A D15-Jun-201328 32

test45.cH A D15-Jun-2013392 2217

test46.cH A D15-Jun-2013237 1511

test47.cH A D15-Jun-2013242 1512

test48.ansH A D15-Jun-201320 11

test48.cH A D15-Jun-2013268 1613

test49.cH A D15-Jun-2013306 1913

test5.ansH A D15-Jun-2013745 101100

test5.cH A D15-Jun-2013543 2824

test50.ansH A D15-Jun-201310 32

test50.cH A D15-Jun-2013386 2015

test51.ansH A D15-Jun-201322 21

test51.cH A D15-Jun-20131.5 KiB5850

test52.ansH A D15-Jun-201322 32

test52.cH A D15-Jun-2013562 3124

test53.ansH A D15-Jun-201333 43

test53.cH A D15-Jun-2013601 3123

test54.ansH A D15-Jun-201377 32

test54.cH A D15-Jun-20131.7 KiB6453

test55.ansH A D15-Jun-201376 43

test55.cH A D15-Jun-20132.4 KiB9274

test56.ansH A D15-Jun-201359 54

test56.cH A D15-Jun-2013870 4333

test57.cH A D15-Jun-2013497 2922

test58.ansH A D15-Jun-201355 54

test58.cH A D15-Jun-2013606 3124

test59.ansH A D15-Jun-201377 76

test59.cH A D15-Jun-20131,016 4838

test6.ansH A D15-Jun-201319 21

test6.cH A D15-Jun-2013433 2622

test60.ansH A D15-Jun-201370 1110

test60.cH A D15-Jun-2013401 1913

test61.ansH A D15-Jun-2013150 2120

test61.cH A D15-Jun-2013412 1913

test62.ansH A D15-Jun-2013149 2120

test62.cH A D15-Jun-2013515 2115

test63.ansH A D15-Jun-2013149 2120

test63.cH A D15-Jun-2013527 2313

test64.ansH A D15-Jun-201351 43

test64.cH A D15-Jun-20132.2 KiB8158

test65.cH A D15-Jun-2013293 1713

test66.cH A D15-Jun-2013368 1915

test67.ansH A D15-Jun-201367 43

test67.cH A D15-Jun-2013999 4131

test68.cH A D15-Jun-2013832 3830

test69.ansH A D15-Jun-201370 54

test69.cH A D15-Jun-2013971 4033

test7.ansH A D15-Jun-201351 43

test7.cH A D15-Jun-2013569 2824

test70.ansH A D15-Jun-201328 87

test70.cH A D15-Jun-2013804 3530

test71.ansH A D15-Jun-201328 87

test71.cH A D15-Jun-2013807 3530

test72.ansH A D15-Jun-201328 87

test72.cH A D15-Jun-2013804 3530

test73.ansH A D15-Jun-201330 87

test73.cH A D15-Jun-2013850 3530

test74.ansH A D15-Jun-20131.9 KiB302301

test74.cH A D15-Jun-2013837 4031

test75.ansH A D15-Jun-201318 32

test75.cH A D15-Jun-2013889 3929

test76.ansH A D15-Jun-201318 32

test76.cH A D15-Jun-2013907 3929

test77.ansH A D15-Jun-201318 32

test77.cH A D15-Jun-2013890 3929

test78.cH A D15-Jun-2013393 2416

test79.ansH A D15-Jun-201318 43

test79.cH A D15-Jun-2013450 2316

test8.ansH A D15-Jun-2013170 1110

test8.cH A D15-Jun-2013576 2824

test80.ansH A D15-Jun-201323 21

test80.cH A D15-Jun-2013589 3125

test81.ansH A D15-Jun-201347 32

test81.cH A D15-Jun-2013714 3728

test82.cH A D15-Jun-2013895 4435

test83.ansH A D15-Jun-2013234 87

test83.cH A D15-Jun-2013817 4333

test84.ansH A D15-Jun-2013468 1514

test84.cH A D15-Jun-20131.3 KiB6447

test85.ansH A D15-Jun-201319 21

test85.cH A D15-Jun-2013213 1412

test86.ansH A D15-Jun-20138 21

test86.cH A D15-Jun-2013474 2824

test87.ansH A D15-Jun-201316 21

test87.cH A D15-Jun-20131 KiB4840

test88.cH A D15-Jun-2013302 1915

test89.ansH A D15-Jun-201311 43

test89.cH A D15-Jun-2013368 2217

test9.ansH A D15-Jun-201370 1110

test9.cH A D15-Jun-2013240 1411

test90.ansH A D15-Jun-201319 21

test90.cH A D15-Jun-2013534 2418

test91.ansH A D15-Jun-201319 21

test91.cH A D15-Jun-2013536 2418

test92.cH A D15-Jun-20131.1 KiB4026

test93.ansH A D15-Jun-201310 21

test93.cH A D15-Jun-2013422 2218

test94.ansH A D15-Jun-201353 65

test94.cH A D15-Jun-2013530 2723

test95.ansH A D15-Jun-201321 43

test95.cH A D15-Jun-2013540 2420

test96.ansH A D15-Jun-2013105 1615

test96.cH A D15-Jun-2013605 2824

test97.ansH A D15-Jun-201322 21

test97.cH A D15-Jun-2013467 2820

test98.ansH A D15-Jun-201366 43

test98.cH A D15-Jun-2013557 2923

test99.ansH A D15-Jun-201321 32

test99.cH A D15-Jun-2013265 1513

README

1Run "make" in this directory to build the tests and run them.
2
3test1: serialize int into memory, unserialize
4test2: serialize int into file, unserialize
5test3: serialize A(i) into file, unserialize
6test4: serialize A(i) into memory, unserialize
7test5: serialize A(A(i)) into memory, unserialize
8test6: serialize string into memory, unserialize
9test7: serialize A(s) into file, unserialize
10test8: serialize cA(c) into file, unserialize
11test9: unpack big-endian tpl data file of A(i)
12test10: unpack little-endian tpl data file of A(i)
13test11: try to load a corrupt tpl image w/invalid chars
14test12: try to load a corrupt tpl image w/runaway format string
15test13: try to load a corrupt tpl image w/internal A length -1
16test14: try to load a corrupt tpl image w/internal A length +1
17test15: try to load a corrupt tpl image w/invalid magic
18test16: try to load a corrupt tpl image w/invalid len
19test17: try to load a good tpl but whose format mismatches map
20test18: try to map a tpl with malformed format- unbalanced parens: missing )
21test19: try to map a tpl with malformed format- unbalanced parens: extra )
22test20: try to map a tpl with malformed format- empty A()
23test21: serialize A(ii) into file, unserialize
24test22: serialize A(u) into file, unserialize
25test23: serialize A(u) into file, read tpl from fd using TPL_FD
26test24: read A(u) tpl file with extra trailing bytes, ok in TPL_FD mode
27test25: same A(u) tpl file with extra trailing bytes, not ok in TPL_FILE mode
28test26: test non-blocking tpl_gather using async read of 3 tpls across 2 pipes
29test27: test tpl_dump() of A(u) to file using TPL_FD, unserialize
30test28: parent writes A(u) tpl to child through pipe, both use TPL_FD mode
31test29: parent writes consecutive A(u) tpl then A(c) tpl to child through pipe
32test30: test pack B (binary buffer) and unpack
33test31: test pack B (binary buffer) of 0-length and unpack
34test32: test pack A(B) and unpack
35test33: test pack f (double) and unpack
36test34: test pack A(f) and unpack
37test35: pack A(is)
38test36: unpack A(is)
39test37: pack A(A(i)) [example from man page]
40test38: unpack A(A(i)) [example from man page]
41test39: try to load a tpl with an unsupported bit flag set
42test40: pack char array - userguide example
43test41: unpack char arrray - userguide example
44test42: test non-aligned pointers in backbone (under Solaris dbx, check -all)
45test43: test non-aligned pointers in backbone (under Solaris dbx, check -all)
46test44: test non-aligned pointers in backbone (under Solaris dbx, check -all)
47test46: test correct-size of backbone "double" datum (Solaris dbx, check -all)
48test47: store A(i) to file - userguide example
49test48: read A(i) from file - userguide example
50test49: write A(s) - userguide example
51test50: read A(s) - userguide example
52test51: test tpl_mem_gather (_0: 1 tpl; _1: 2 tpls; _2/_3/_4: 1 tpl in 3 parts)
53test52: A(A(i)): pack an int; pack parent; pack int; don't pack parent; ser_osz
54test53: A(A(i)): pack an int; pack parent; pack parent; 0-length 2nd parent el.
55test54: test callback negative return value for tpl_mem_gather
56test55: test callback negative return value for tpl_fd_gather
57test56: test static string using c# format pack/unpack in mem
58test57: test pack static string using c# to file
59test58: test unpack static string using c# from file
60test59: test alignment using cc#cc# pack/unpack in mem
61test60: test pack-then-load (implicit intervening free, using tpl_free_keep_map)
62test61: test load-then-load (implicit intervening free, using tpl_free_keep_map)
63test62: test load-then-pack (implicit intervening free, using tpl_free_keep_map)
64test63: test pack-then-unpack (implicit dump/load) then pack-then-unpack again
65test64: pack level 0 types, change and re-pack level 0 types, test implicit free
66test65: pack int[] using format character #
67test66: pack two separate int[] using format character #
68test67: test expected failure if format strings agree but array lengths mismatch
69test68: test octothorpe support by packing,unpacking two fixed lengths arrays
70test69: test octothorpic array support A(i#i#)
71test70: test S(...) structure pack and unpack
72test71: test cS(...) pack/unpack when preceded by non-structure byte
73test72: test wildcard structure unpack
74test73: test wildcard structure unpack
75test74: test wildcard structure unpack
76test75: test sc# (string and byte array)
77test76: test S(sc#) (structure of last)
78test77: test S(sc#) (structure of last) with wildcard unpack
79test78: pack A(i)c
80test79: unpack A(i)c
81test80: pack and unpack A(S(ci#))
82test81: pack and unpack A(S(ci#))
83test82: pack cA(i#)S(cf#)A(ci#)
84test83: unpack cA(i#)S(cf#)A(ci#)
85test84: repeat test83 with both big and little endian input files
86test85: tpl_peek at file
87test86: tpl_peek at in-memory tpl
88test87: test tpl_gather(TPL_GATHER_FD_BLOCKING)
89test88: test packing S(ic#f)
90test89: test unpacking S(ic#f) as S(*)
91test90: pack and unpack I
92test91: pack and unpack U
93test92: pack and unpack A(cIcU)
94test93: pack and unpack NULL string
95test94: pack and unpack A(s) with some null
96test95: pack and unpack null string, empty string, non-empty string
97test96: pack and unpack A(null string, empty string, non-empty string)
98test97: pack and unapck 16-bit int/uint (j,v)
99test98: pack and unapck 16-bit int/uint A(j,v)
100test99: data peek at c in complex format
101test100: data peek at i inside S(ic)
102test101: data peek at c inside S(ic) [expected failure test]
103test102: data peek at c in simple format c
104test103: data peek at iscsi in S(iscsiu)
105test104: data peek at iscsi in S(iscsiu) with NULL string pointer
106test105: tpl_jot then unpack by normal then by tpl_peek
107test106: test IS(Iiuijc#)#iiii
108test107: test S(ic#)#
109test108: test IS(Iiuijc#)#iiii
110test109: test S(cijc)# where next structure elt alignment based on i
111test110: test ssssiiiiiiiiiiiiiiiiiiiiiiiiiiiiifffiiii
112test111: test S(icfv#)#
113test112: test S(ic#fv#)#
114test113: test icS(ic#fv#)#ci
115test114: test multi-dimension i##
116test115: test S(s)#, S(si)#, S(c#si)#
117test116: test cs#i
118test117: test cA(s#)i
119test118: test tpl_peek(TPL_FXLENS) with cA(i#)S(cf#)A(ci#)
120test119: test tpl_dump(tn,TPL_GETSIZE,&sz);
121test120: test TPL_PREALLOCD and TPL_EXCESS_OK flags
122test121: test s##
123test122: test S(ic#f$(ci))
124test123: setjmp/longjmp based fatal error handler
125test124: test A(S(c#)s) as per bug report from Eric Rose
126