-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile.in
executable file
·827 lines (684 loc) · 35.6 KB
/
Makefile.in
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
# Makefile for Tokyo Cabinet
#================================================================
# Setting Variables
#================================================================
# Generic settings
SHELL = @SHELL@
# Package information
PACKAGE = @PACKAGE_NAME@
VERSION = @PACKAGE_VERSION@
PACKAGEDIR = $(PACKAGE)-$(VERSION)
PACKAGETGZ = $(PACKAGE)-$(VERSION).tar.gz
LIBVER = @MYLIBVER@
LIBREV = @MYLIBREV@
FORMATVER = @MYFORMATVER@
# Targets
HEADERFILES = @MYHEADERFILES@
LIBRARYFILES = @MYLIBRARYFILES@
LIBOBJFILES = @MYLIBOBJFILES@
COMMANDFILES = @MYCOMMANDFILES@
CGIFILES = @MYCGIFILES@
MAN1FILES = @MYMAN1FILES@
MAN3FILES = @MYMAN3FILES@
DOCUMENTFILES = @MYDOCUMENTFILES@
PCFILES = @MYPCFILES@
# Install destinations
prefix = @prefix@
exec_prefix = @exec_prefix@
datarootdir = @datarootdir@
INCLUDEDIR = @includedir@
LIBDIR = @libdir@
BINDIR = @bindir@
LIBEXECDIR = @libexecdir@
DATADIR = @datadir@/$(PACKAGE)
MAN1DIR = @mandir@/man1
MAN3DIR = @mandir@/man3
PCDIR = @libdir@/pkgconfig
DESTDIR =
# Building configuration
CC = @CC@
CPPFLAGS = @MYCPPFLAGS@ \
-D_TC_PREFIX="\"$(prefix)\"" -D_TC_INCLUDEDIR="\"$(INCLUDEDIR)\"" \
-D_TC_LIBDIR="\"$(LIBDIR)\"" -D_TC_BINDIR="\"$(BINDIR)\"" -D_TC_LIBEXECDIR="\"$(LIBEXECDIR)\"" \
-D_TC_APPINC="\"-I$(INCLUDEDIR)\"" -D_TC_APPLIBS="\"-L$(LIBDIR) -ltokyocabinet @LIBS@\""
CFLAGS = @MYCFLAGS@
LDFLAGS = @MYLDFLAGS@
CMDLDFLAGS = @MYCMDLDFLAGS@
LIBS = @LIBS@
LDENV = LD_RUN_PATH=/lib:/usr/lib:$(LIBDIR):$(HOME)/lib:/usr/local/lib:@MYRUNPATH@:.
RUNENV = @MYLDLIBPATHENV@=.:/lib:/usr/lib:$(LIBDIR):$(HOME)/lib:/usr/local/lib:@MYRUNPATH@
POSTCMD = @MYPOSTCMD@
#================================================================
# Suffix rules
#================================================================
.SUFFIXES :
.SUFFIXES : .c .o
.c.o :
$(CC) -c $(CPPFLAGS) $(CFLAGS) $<
#================================================================
# Actions
#================================================================
all : $(LIBRARYFILES) $(COMMANDFILES) $(CGIFILES)
@$(POSTCMD)
@printf '\n'
@printf '#================================================================\n'
@printf '# Ready to install.\n'
@printf '#================================================================\n'
clean :
rm -rf $(LIBRARYFILES) $(LIBOBJFILES) $(COMMANDFILES) $(CGIFILES) \
*.o a.out tokyocabinet_all.c check.in check.out gmon.out *.vlog words.tsv \
casket casket-* casket.* *.tch *.tcb *.tcf *.tct *.idx.* *.wal *~ hoge moge tako ika
version :
vernum=`expr $(LIBVER)00 + $(LIBREV)` ; \
sed -e 's/_TC_VERSION.*/_TC_VERSION "$(VERSION)"/' \
-e "s/_TC_LIBVER.*/_TC_LIBVER $$vernum/" \
-e 's/_TC_FORMATVER.*/_TC_FORMATVER "$(FORMATVER)"/' tcutil.h > tcutil.h~
[ -f tcutil.h~ ] && mv -f tcutil.h~ tcutil.h
untabify :
ls *.c *.h *.idl | while read name ; \
do \
sed -e 's/\t/ /g' -e 's/ *$$//' $$name > $$name~; \
[ -f $$name~ ] && mv -f $$name~ $$name ; \
done
install :
mkdir -p $(DESTDIR)$(INCLUDEDIR)
cp -Rf $(HEADERFILES) $(DESTDIR)$(INCLUDEDIR)
mkdir -p $(DESTDIR)$(LIBDIR)
cp -Rf $(LIBRARYFILES) $(DESTDIR)$(LIBDIR)
mkdir -p $(DESTDIR)$(BINDIR)
cp -Rf $(COMMANDFILES) $(DESTDIR)$(BINDIR)
mkdir -p $(DESTDIR)$(LIBEXECDIR)
cp -Rf $(CGIFILES) $(DESTDIR)$(LIBEXECDIR)
mkdir -p $(DESTDIR)$(DATADIR)
cp -Rf $(DOCUMENTFILES) $(DESTDIR)$(DATADIR)
mkdir -p $(DESTDIR)$(MAN1DIR)
cd man && cp -Rf $(MAN1FILES) $(DESTDIR)$(MAN1DIR)
mkdir -p $(DESTDIR)$(MAN3DIR)
cd man && cp -Rf $(MAN3FILES) $(DESTDIR)$(MAN3DIR)
mkdir -p $(DESTDIR)$(PCDIR)
cp -Rf $(PCFILES) $(DESTDIR)$(PCDIR)
-[ "$$UID" = 0 ] && PATH=/sbin:/usr/sbin:$(PATH) ldconfig 2>/dev/null || true
@printf '\n'
@printf '#================================================================\n'
@printf '# Thanks for using Tokyo Cabinet.\n'
@printf '#================================================================\n'
install-strip :
make DESTDIR=$(DESTDIR) install
cd $(DESTDIR)$(BINDIR) && strip $(COMMANDFILES)
uninstall :
cd $(DESTDIR)$(INCLUDEDIR) && rm -f $(HEADERFILES)
cd $(DESTDIR)$(LIBDIR) && rm -f $(LIBRARYFILES)
cd $(DESTDIR)$(BINDIR) && rm -f $(COMMANDFILES)
cd $(DESTDIR)$(LIBEXECDIR) && rm -f $(CGIFILES)
cd $(DESTDIR)$(MAN1DIR) && rm -f $(MAN1FILES)
cd $(DESTDIR)$(MAN3DIR) && rm -f $(MAN3FILES)
rm -rf $(DESTDIR)$(DATADIR)
cd $(DESTDIR)$(PCDIR) && rm -f $(PCFILES)
[ "$$UID" = 0 ] && PATH=/sbin:/usr/sbin:$(PATH) ldconfig 2>/dev/null || true
dist :
make version
make untabify
make distclean
cd .. && tar cvf - $(PACKAGEDIR) | gzip -c > $(PACKAGETGZ)
sync ; sync
distclean : clean
cd example && make clean
cd bros && make clean
rm -rf Makefile tokyocabinet.pc config.cache config.log config.status autom4te.cache
check :
make check-util
make check-hdb
make check-bdb
make check-fdb
make check-tdb
make check-adb
rm -rf casket*
@printf '\n'
@printf '#================================================================\n'
@printf '# Checking completed.\n'
@printf '#================================================================\n'
check-util :
rm -rf casket*
$(RUNENV) $(RUNCMD) ./tcamgr version
$(RUNENV) $(RUNCMD) ./tcutest xstr 50000
$(RUNENV) $(RUNCMD) ./tcutest list -rd 50000
$(RUNENV) $(RUNCMD) ./tcutest map -rd -tr 50000
$(RUNENV) $(RUNCMD) ./tcutest map -rd -tr -rnd -dc 50000
$(RUNENV) $(RUNCMD) ./tcutest tree -rd -tr 50000
$(RUNENV) $(RUNCMD) ./tcutest tree -rd -tr -rnd -dc 50000
$(RUNENV) $(RUNCMD) ./tcutest mdb -rd -tr 50000
$(RUNENV) $(RUNCMD) ./tcutest mdb -rd -tr -rnd -dc 50000
$(RUNENV) $(RUNCMD) ./tcutest mdb -rd -tr -rnd -dpr 50000
$(RUNENV) $(RUNCMD) ./tcutest ndb -rd -tr 50000
$(RUNENV) $(RUNCMD) ./tcutest ndb -rd -tr -rnd -dc 50000
$(RUNENV) $(RUNCMD) ./tcutest ndb -rd -tr -rnd -dpr 50000
$(RUNENV) $(RUNCMD) ./tcutest misc 500
$(RUNENV) $(RUNCMD) ./tcutest wicked 50000
$(RUNENV) $(RUNCMD) ./tcumttest combo 5 50000 500
$(RUNENV) $(RUNCMD) ./tcumttest combo -rnd 5 50000 500
$(RUNENV) $(RUNCMD) ./tcumttest typical 5 50000 5000
$(RUNENV) $(RUNCMD) ./tcumttest typical -rr 1000 5 50000 5000
$(RUNENV) $(RUNCMD) ./tcumttest typical -nc 5 50000 5000
$(RUNENV) $(RUNCMD) ./tcumttest combo -tr 5 50000 500
$(RUNENV) $(RUNCMD) ./tcumttest combo -tr -rnd 5 50000 500
$(RUNENV) $(RUNCMD) ./tcumttest typical -tr 5 50000 5000
$(RUNENV) $(RUNCMD) ./tcumttest typical -tr -rr 1000 5 50000 5000
$(RUNENV) $(RUNCMD) ./tcumttest typical -tr -nc 5 50000 5000
$(RUNENV) $(RUNCMD) ./tcucodec url Makefile > check.in
$(RUNENV) $(RUNCMD) ./tcucodec url -d check.in > check.out
$(RUNENV) $(RUNCMD) ./tcucodec base Makefile > check.in
$(RUNENV) $(RUNCMD) ./tcucodec base -d check.in > check.out
$(RUNENV) $(RUNCMD) ./tcucodec quote Makefile > check.in
$(RUNENV) $(RUNCMD) ./tcucodec quote -d check.in > check.out
$(RUNENV) $(RUNCMD) ./tcucodec mime Makefile > check.in
$(RUNENV) $(RUNCMD) ./tcucodec mime -d check.in > check.out
$(RUNENV) $(RUNCMD) ./tcucodec pack -bwt Makefile > check.in
$(RUNENV) $(RUNCMD) ./tcucodec pack -d -bwt check.in > check.out
$(RUNENV) $(RUNCMD) ./tcucodec tcbs Makefile > check.in
$(RUNENV) $(RUNCMD) ./tcucodec tcbs -d check.in > check.out
$(RUNENV) $(RUNCMD) ./tcucodec zlib Makefile > check.in
$(RUNENV) $(RUNCMD) ./tcucodec zlib -d check.in > check.out
$(RUNENV) $(RUNCMD) ./tcucodec xml Makefile > check.in
$(RUNENV) $(RUNCMD) ./tcucodec xml -d check.in > check.out
$(RUNENV) $(RUNCMD) ./tcucodec cstr Makefile > check.in
$(RUNENV) $(RUNCMD) ./tcucodec cstr -d check.in > check.out
$(RUNENV) $(RUNCMD) ./tcucodec ucs Makefile > check.in
$(RUNENV) $(RUNCMD) ./tcucodec ucs -d check.in > check.out
$(RUNENV) $(RUNCMD) ./tcucodec date -ds '1978-02-11T18:05:30+09:00' -rf > check.out
$(RUNENV) $(RUNCMD) ./tcucodec cipher -key "mikio" Makefile > check.in
$(RUNENV) $(RUNCMD) ./tcucodec cipher -key "mikio" check.in > check.out
$(RUNENV) $(RUNCMD) ./tcucodec tmpl -var name mikio -var nick micky \
'@name=[%name%][%IF nick%] nick=[%nick%][%END%][%IF hoge%][%ELSE%].[%END%]' > check.out
$(RUNENV) $(RUNCMD) ./tcucodec conf > check.out
rm -rf casket*
check-hdb :
rm -rf casket*
$(RUNENV) $(RUNCMD) ./tchtest write casket 50000 5000 5 5
$(RUNENV) $(RUNCMD) ./tchtest read casket
$(RUNENV) $(RUNCMD) ./tchtest remove casket
$(RUNENV) $(RUNCMD) ./tchtest write -mt -tl -td -rc 50 -xm 500000 casket 50000 5000 5 5
$(RUNENV) $(RUNCMD) ./tchtest read -mt -nb -rc 50 -xm 500000 casket
$(RUNENV) $(RUNCMD) ./tchtest remove -mt -rc 50 -xm 500000 casket
$(RUNENV) $(RUNCMD) ./tchtest write -as -tb -rc 50 -xm 500000 casket 50000 50000 5 5
$(RUNENV) $(RUNCMD) ./tchtest read -nl -rc 50 -xm 500000 casket
$(RUNENV) $(RUNCMD) ./tchtest remove -rc 50 -xm 500000 -df 5 casket
$(RUNENV) $(RUNCMD) ./tchtest rcat -pn 500 -xm 50000 -df 5 casket 50000 5000 5 5
$(RUNENV) $(RUNCMD) ./tchtest rcat -tl -td -pn 5000 casket 50000 500 5 15
$(RUNENV) $(RUNCMD) ./tchtest rcat -nl -pn 500 -rl casket 5000 500 5 5
$(RUNENV) $(RUNCMD) ./tchtest rcat -tb -pn 500 casket 5000 500 5 5
$(RUNENV) $(RUNCMD) ./tchtest rcat -ru -pn 500 casket 5000 500 1 1
$(RUNENV) $(RUNCMD) ./tchtest rcat -tl -td -ru -pn 500 casket 5000 500 1 1
$(RUNENV) $(RUNCMD) ./tchmgr list -pv casket > check.out
$(RUNENV) $(RUNCMD) ./tchmgr list -pv -fm 1 -px casket > check.out
$(RUNENV) $(RUNCMD) ./tchtest misc casket 5000
$(RUNENV) $(RUNCMD) ./tchtest misc -tl -td casket 5000
$(RUNENV) $(RUNCMD) ./tchtest misc -mt -tb casket 500
$(RUNENV) $(RUNCMD) ./tchtest wicked casket 50000
$(RUNENV) $(RUNCMD) ./tchtest wicked -tl -td casket 50000
$(RUNENV) $(RUNCMD) ./tchtest wicked -mt -tb casket 5000
$(RUNENV) $(RUNCMD) ./tchtest wicked -tt casket 5000
$(RUNENV) $(RUNCMD) ./tchtest wicked -tx casket 5000
$(RUNENV) $(RUNCMD) ./tchmttest write -xm 500000 -df 5 -tl casket 5 5000 500 5
$(RUNENV) $(RUNCMD) ./tchmttest read -xm 500000 -df 5 casket 5
$(RUNENV) $(RUNCMD) ./tchmttest read -xm 500000 -rnd casket 5
$(RUNENV) $(RUNCMD) ./tchmttest remove -xm 500000 casket 5
$(RUNENV) $(RUNCMD) ./tchmttest wicked -nc casket 5 5000
$(RUNENV) $(RUNCMD) ./tchmttest wicked -tl -td casket 5 5000
$(RUNENV) $(RUNCMD) ./tchmttest wicked -tb casket 5 5000
$(RUNENV) $(RUNCMD) ./tchmttest typical -df 5 casket 5 50000 5000
$(RUNENV) $(RUNCMD) ./tchmttest typical -rr 1000 casket 5 50000 5000
$(RUNENV) $(RUNCMD) ./tchmttest typical -tl -rc 50000 -nc casket 5 50000 5000
$(RUNENV) $(RUNCMD) ./tchmttest race -df 5 casket 5 10000
$(RUNENV) $(RUNCMD) ./tchmgr create casket 3 1 1
$(RUNENV) $(RUNCMD) ./tchmgr inform casket
$(RUNENV) $(RUNCMD) ./tchmgr put casket one first
$(RUNENV) $(RUNCMD) ./tchmgr put casket two second
$(RUNENV) $(RUNCMD) ./tchmgr put -dk casket three third
$(RUNENV) $(RUNCMD) ./tchmgr put -dc casket three third
$(RUNENV) $(RUNCMD) ./tchmgr put -dc casket three third
$(RUNENV) $(RUNCMD) ./tchmgr put -dc casket three third
$(RUNENV) $(RUNCMD) ./tchmgr put casket four fourth
$(RUNENV) $(RUNCMD) ./tchmgr put -dk casket five fifth
$(RUNENV) $(RUNCMD) ./tchmgr out casket one
$(RUNENV) $(RUNCMD) ./tchmgr out casket two
$(RUNENV) $(RUNCMD) ./tchmgr get casket three > check.out
$(RUNENV) $(RUNCMD) ./tchmgr get casket four > check.out
$(RUNENV) $(RUNCMD) ./tchmgr get casket five > check.out
$(RUNENV) $(RUNCMD) ./tchmgr list -pv casket > check.out
$(RUNENV) $(RUNCMD) ./tchmgr optimize casket
$(RUNENV) $(RUNCMD) ./tchmgr put -dc casket three third
$(RUNENV) $(RUNCMD) ./tchmgr get casket three > check.out
$(RUNENV) $(RUNCMD) ./tchmgr get casket four > check.out
$(RUNENV) $(RUNCMD) ./tchmgr get casket five > check.out
$(RUNENV) $(RUNCMD) ./tchmgr list -pv casket > check.out
rm -rf casket*
check-bdb :
rm -rf casket*
$(RUNENV) $(RUNCMD) ./tcbtest write casket 50000 5 5 5000 5 5
$(RUNENV) $(RUNCMD) ./tcbtest read casket
$(RUNENV) $(RUNCMD) ./tcbtest remove casket
$(RUNENV) $(RUNCMD) ./tcbmgr list -rb 00001000 00002000 casket > check.out
$(RUNENV) $(RUNCMD) ./tcbmgr list -fm 000001 casket > check.out
$(RUNENV) $(RUNCMD) ./tcbtest write -mt -tl -td -ls 1024 casket 50000 5000 5000 5000 5 5
$(RUNENV) $(RUNCMD) ./tcbtest read -mt -nb casket
$(RUNENV) $(RUNCMD) ./tcbtest remove -mt casket
$(RUNENV) $(RUNCMD) ./tcbtest write -tb -xm 50000 casket 50000 5 5 50000 5 5
$(RUNENV) $(RUNCMD) ./tcbtest read -nl casket
$(RUNENV) $(RUNCMD) ./tcbtest remove -df 5 casket
$(RUNENV) $(RUNCMD) ./tcbtest rcat -lc 5 -nc 5 -df 5 -pn 500 casket 50000 5 5 5000 5 5
$(RUNENV) $(RUNCMD) ./tcbtest rcat -tl -td -pn 5000 casket 50000 5 5 500 5 15
$(RUNENV) $(RUNCMD) ./tcbtest rcat -nl -pn 5000 -rl casket 15000 5 5 500 5 5
$(RUNENV) $(RUNCMD) ./tcbtest rcat -ca 1000 -tb -pn 5000 casket 15000 5 5 500 5 5
$(RUNENV) $(RUNCMD) ./tcbtest rcat -ru -pn 500 casket 5000 5 5 500 1 1
$(RUNENV) $(RUNCMD) ./tcbtest rcat -cd -tl -td -ru -pn 500 casket 5000 5 5 500 1 1
$(RUNENV) $(RUNCMD) ./tcbmgr list -pv casket > check.out
$(RUNENV) $(RUNCMD) ./tcbtest queue casket 15000 5 5
$(RUNENV) $(RUNCMD) ./tcbtest misc casket 5000
$(RUNENV) $(RUNCMD) ./tcbtest misc -tl -td casket 5000
$(RUNENV) $(RUNCMD) ./tcbtest misc -mt -tb casket 500
$(RUNENV) $(RUNCMD) ./tcbtest wicked casket 50000
$(RUNENV) $(RUNCMD) ./tcbtest wicked -tl -td casket 50000
$(RUNENV) $(RUNCMD) ./tcbtest wicked -mt -tb casket 5000
$(RUNENV) $(RUNCMD) ./tcbtest wicked -tt casket 5000
$(RUNENV) $(RUNCMD) ./tcbtest wicked -tx casket 5000
$(RUNENV) $(RUNCMD) ./tcbtest write -cd -lc 5 -nc 5 casket 5000 5 5 5 5 5
$(RUNENV) $(RUNCMD) ./tcbtest read -cd -lc 5 -nc 5 casket
$(RUNENV) $(RUNCMD) ./tcbtest remove -cd -lc 5 -nc 5 casket
$(RUNENV) $(RUNCMD) ./tcbmgr list -pv casket > check.out
$(RUNENV) $(RUNCMD) ./tcbtest write -ci -td -lc 5 -nc 5 casket 5000 5 5 5 5 5
$(RUNENV) $(RUNCMD) ./tcbtest read -ci -lc 5 -nc 5 casket
$(RUNENV) $(RUNCMD) ./tcbtest remove -ci -lc 5 -nc 5 casket
$(RUNENV) $(RUNCMD) ./tcbmgr list -pv casket > check.out
$(RUNENV) $(RUNCMD) ./tcbtest write -cj -tb -lc 5 -nc 5 casket 5000 5 5 5 5 5
$(RUNENV) $(RUNCMD) ./tcbtest read -cj -lc 5 -nc 5 casket
$(RUNENV) $(RUNCMD) ./tcbtest remove -cj -lc 5 -nc 5 casket
$(RUNENV) $(RUNCMD) ./tcbmgr list -pv casket > check.out
$(RUNENV) $(RUNCMD) ./tcbmttest write -df 5 -tl casket 5 5000 5 5 500 5
$(RUNENV) $(RUNCMD) ./tcbmttest read -df 5 casket 5
$(RUNENV) $(RUNCMD) ./tcbmttest read -rnd casket 5
$(RUNENV) $(RUNCMD) ./tcbmttest remove casket 5
$(RUNENV) $(RUNCMD) ./tcbmttest wicked -nc casket 5 5000
$(RUNENV) $(RUNCMD) ./tcbmttest wicked -tl -td casket 5 5000
$(RUNENV) $(RUNCMD) ./tchmttest wicked -tb casket 5 5000
$(RUNENV) $(RUNCMD) ./tcbmttest typical -df 5 casket 5 50000 5 5
$(RUNENV) $(RUNCMD) ./tcbmttest typical -rr 1000 casket 5 50000 5 5
$(RUNENV) $(RUNCMD) ./tcbmttest typical -tl -nc casket 5 50000 5 5
$(RUNENV) $(RUNCMD) ./tcbmttest race -df 5 casket 5 10000
$(RUNENV) $(RUNCMD) ./tcbmgr create casket 4 4 3 1 1
$(RUNENV) $(RUNCMD) ./tcbmgr inform casket
$(RUNENV) $(RUNCMD) ./tcbmgr put casket one first
$(RUNENV) $(RUNCMD) ./tcbmgr put casket two second
$(RUNENV) $(RUNCMD) ./tcbmgr put -dk casket three third
$(RUNENV) $(RUNCMD) ./tcbmgr put -dc casket three third
$(RUNENV) $(RUNCMD) ./tcbmgr put -dc casket three third
$(RUNENV) $(RUNCMD) ./tcbmgr put -dd casket three third
$(RUNENV) $(RUNCMD) ./tcbmgr put -dd casket three third
$(RUNENV) $(RUNCMD) ./tcbmgr put casket four fourth
$(RUNENV) $(RUNCMD) ./tcbmgr put -dk casket five fifth
$(RUNENV) $(RUNCMD) ./tcbmgr out casket one
$(RUNENV) $(RUNCMD) ./tcbmgr out casket two
$(RUNENV) $(RUNCMD) ./tcbmgr get casket three > check.out
$(RUNENV) $(RUNCMD) ./tcbmgr get casket four > check.out
$(RUNENV) $(RUNCMD) ./tcbmgr get casket five > check.out
$(RUNENV) $(RUNCMD) ./tcbmgr list -pv casket > check.out
$(RUNENV) $(RUNCMD) ./tcbmgr list -j three -pv casket > check.out
$(RUNENV) $(RUNCMD) ./tcbmgr optimize casket
$(RUNENV) $(RUNCMD) ./tcbmgr put -dc casket three third
$(RUNENV) $(RUNCMD) ./tcbmgr get casket three > check.out
$(RUNENV) $(RUNCMD) ./tcbmgr get casket four > check.out
$(RUNENV) $(RUNCMD) ./tcbmgr get casket five > check.out
$(RUNENV) $(RUNCMD) ./tcbmgr list -pv casket > check.out
check-fdb :
rm -rf casket*
$(RUNENV) $(RUNCMD) ./tcftest write casket 50000 50
$(RUNENV) $(RUNCMD) ./tcftest read casket
$(RUNENV) $(RUNCMD) ./tcftest remove casket
$(RUNENV) $(RUNCMD) ./tcftest write casket 50000 50
$(RUNENV) $(RUNCMD) ./tcftest read -mt -nb casket
$(RUNENV) $(RUNCMD) ./tcftest remove -mt casket
$(RUNENV) $(RUNCMD) ./tcftest rcat -pn 500 casket 50000 50
$(RUNENV) $(RUNCMD) ./tcftest rcat -nl -pn 500 -rl casket 5000 500
$(RUNENV) $(RUNCMD) ./tcftest rcat -pn 500 -ru casket 5000 500
$(RUNENV) $(RUNCMD) ./tcfmgr list -pv casket > check.out
$(RUNENV) $(RUNCMD) ./tcfmgr list -pv -ri "[100,200)" -px casket > check.out
$(RUNENV) $(RUNCMD) ./tcftest misc casket 5000
$(RUNENV) $(RUNCMD) ./tcftest misc -mt -nl casket 500
$(RUNENV) $(RUNCMD) ./tcftest wicked casket 50000
$(RUNENV) $(RUNCMD) ./tcftest wicked -mt -nb casket 50000
$(RUNENV) $(RUNCMD) ./tcfmttest write casket 5 5000 50
$(RUNENV) $(RUNCMD) ./tcfmttest read casket 5
$(RUNENV) $(RUNCMD) ./tcfmttest read -rnd casket 5
$(RUNENV) $(RUNCMD) ./tcfmttest remove casket 5
$(RUNENV) $(RUNCMD) ./tcfmttest wicked -nc casket 5 5000
$(RUNENV) $(RUNCMD) ./tcfmttest wicked casket 5 5000
$(RUNENV) $(RUNCMD) ./tcfmttest typical casket 5 50000 50
$(RUNENV) $(RUNCMD) ./tcfmttest typical -rr 1000 casket 5 50000 50
$(RUNENV) $(RUNCMD) ./tcfmttest typical -nc casket 5 50000 50
$(RUNENV) $(RUNCMD) ./tcfmgr create casket 50
$(RUNENV) $(RUNCMD) ./tcfmgr inform casket
$(RUNENV) $(RUNCMD) ./tcfmgr put casket 1 first
$(RUNENV) $(RUNCMD) ./tcfmgr put casket 2 second
$(RUNENV) $(RUNCMD) ./tcfmgr put -dk casket 3 third
$(RUNENV) $(RUNCMD) ./tcfmgr put -dc casket 3 third
$(RUNENV) $(RUNCMD) ./tcfmgr put -dc casket 3 third
$(RUNENV) $(RUNCMD) ./tcfmgr put -dc casket 3 third
$(RUNENV) $(RUNCMD) ./tcfmgr put casket 4 fourth
$(RUNENV) $(RUNCMD) ./tcfmgr put -dk casket 5 fifth
$(RUNENV) $(RUNCMD) ./tcfmgr out casket 1
$(RUNENV) $(RUNCMD) ./tcfmgr out casket 2
$(RUNENV) $(RUNCMD) ./tcfmgr get casket 3 > check.out
$(RUNENV) $(RUNCMD) ./tcfmgr get casket 4 > check.out
$(RUNENV) $(RUNCMD) ./tcfmgr get casket 5 > check.out
$(RUNENV) $(RUNCMD) ./tcfmgr list -pv casket > check.out
$(RUNENV) $(RUNCMD) ./tcfmgr optimize casket 5
$(RUNENV) $(RUNCMD) ./tcfmgr put -dc casket 3 third
$(RUNENV) $(RUNCMD) ./tcfmgr get casket 3 > check.out
$(RUNENV) $(RUNCMD) ./tcfmgr get casket 4 > check.out
$(RUNENV) $(RUNCMD) ./tcfmgr get casket 5 > check.out
$(RUNENV) $(RUNCMD) ./tcfmgr list -pv casket > check.out
check-tdb :
rm -rf casket*
$(RUNENV) $(RUNCMD) ./tcttest write casket 50000 5000 5 5
$(RUNENV) $(RUNCMD) ./tcttest read casket
$(RUNENV) $(RUNCMD) ./tcttest remove casket
$(RUNENV) $(RUNCMD) ./tcttest write -mt -tl -td -rc 50 -lc 5 -nc 5 -xm 500000 \
-is -in -it -if -ix casket 5000 5000 5 5
$(RUNENV) $(RUNCMD) ./tcttest read -mt -nb -rc 50 -lc 5 -nc 5 -xm 500000 casket
$(RUNENV) $(RUNCMD) ./tcttest remove -mt -rc 50 -lc 5 -nc 5 -xm 500000 -df 5 casket
$(RUNENV) $(RUNCMD) ./tcttest rcat -pn 500 -xm 50000 -df 5 -is casket 5000 5000 5 5
$(RUNENV) $(RUNCMD) ./tcttest rcat -tl -td -pn 5000 -is -in casket 5000 500 5 15
$(RUNENV) $(RUNCMD) ./tcttest rcat -nl -pn 500 -rl -is -in casket 5000 500 5 5
$(RUNENV) $(RUNCMD) ./tcttest rcat -tb -pn 500 -is -in casket 5000 500 5 5
$(RUNENV) $(RUNCMD) ./tcttest rcat -ru -pn 500 -is -in casket 5000 500 1 1
$(RUNENV) $(RUNCMD) ./tcttest rcat -tl -td -ru -pn 500 -is -in casket 5000 500 1 1
$(RUNENV) $(RUNCMD) ./tctmgr list -pv casket > check.out
$(RUNENV) $(RUNCMD) ./tctmgr list -pv -px casket > check.out
$(RUNENV) $(RUNCMD) ./tcttest misc casket 500
$(RUNENV) $(RUNCMD) ./tcttest misc -tl -td casket 500
$(RUNENV) $(RUNCMD) ./tcttest misc -mt -tb casket 500
$(RUNENV) $(RUNCMD) ./tcttest wicked casket 5000
$(RUNENV) $(RUNCMD) ./tcttest wicked -tl -td casket 5000
$(RUNENV) $(RUNCMD) ./tcttest wicked -mt -tb casket 5000
$(RUNENV) $(RUNCMD) ./tcttest wicked -tt casket 5000
$(RUNENV) $(RUNCMD) ./tcttest wicked -tx casket 5000
$(RUNENV) $(RUNCMD) ./tctmttest write -xm 500000 -df 5 -tl -is -in casket 5 5000 500 5
$(RUNENV) $(RUNCMD) ./tctmttest read -xm 500000 -df 5 casket 5
$(RUNENV) $(RUNCMD) ./tctmttest read -xm 500000 -rnd casket 5
$(RUNENV) $(RUNCMD) ./tctmttest remove -xm 500000 casket 5
$(RUNENV) $(RUNCMD) ./tctmttest wicked casket 5 5000
$(RUNENV) $(RUNCMD) ./tctmttest wicked -tl -td casket 5 5000
$(RUNENV) $(RUNCMD) ./tctmttest typical -df 5 casket 5 5000 500
$(RUNENV) $(RUNCMD) ./tctmttest typical -rr 1000 casket 5 5000 500
$(RUNENV) $(RUNCMD) ./tctmttest typical -tl -rc 50000 -lc 5 -nc 5 casket 5 5000 500
$(RUNENV) $(RUNCMD) ./tctmgr create casket 3 1 1
$(RUNENV) $(RUNCMD) ./tctmgr setindex casket name
$(RUNENV) $(RUNCMD) ./tctmgr inform casket
$(RUNENV) $(RUNCMD) ./tctmgr put casket "" name mikio birth 19780211 lang ja,en,c
$(RUNENV) $(RUNCMD) ./tctmgr put casket "" name fal birth 19771007 lang ja
$(RUNENV) $(RUNCMD) ./tctmgr put casket "" name banana price 100
$(RUNENV) $(RUNCMD) ./tctmgr put -dc casket 3 color yellow
$(RUNENV) $(RUNCMD) ./tctmgr put -dk casket "" name melon price 1200 color green
$(RUNENV) $(RUNCMD) ./tctmgr put casket "" name void birth 20010101 lang en
$(RUNENV) $(RUNCMD) ./tctmgr out casket 5
$(RUNENV) $(RUNCMD) ./tctmgr get casket 1 > check.out
$(RUNENV) $(RUNCMD) ./tctmgr get casket 2 > check.out
$(RUNENV) $(RUNCMD) ./tctmgr get casket 3 > check.out
$(RUNENV) $(RUNCMD) ./tctmgr search casket > check.out
$(RUNENV) $(RUNCMD) ./tctmgr search -m 10 -sk 1 -pv -ph casket > check.out
$(RUNENV) $(RUNCMD) ./tctmgr search -m 10 -ord name STRDESC -pv -ph casket > check.out
$(RUNENV) $(RUNCMD) ./tctmgr search -m 10 -ord name STRDESC -pv -ph casket \
name STRBW mi birth NUMBT 19700101,19791231 lang STRAND ja,en > check.out
$(RUNENV) $(RUNCMD) ./tctmgr search -ord birth NUMDESC -pv -ms UNION casket \
name STREQ mikio name STRINC fal name FTSEX "ba na na"
$(RUNENV) $(RUNCMD) ./tctmgr setindex casket name
$(RUNENV) $(RUNCMD) ./tctmgr setindex -it dec casket birth
$(RUNENV) $(RUNCMD) ./tctmgr setindex casket lang
$(RUNENV) $(RUNCMD) ./tctmgr list -pv casket > check.out
$(RUNENV) $(RUNCMD) ./tctmgr optimize casket
$(RUNENV) $(RUNCMD) ./tctmgr put casket "" name tokyo country japan lang ja
$(RUNENV) $(RUNCMD) ./tctmgr search -m 10 -sk 1 -pv -ph casket > check.out
$(RUNENV) $(RUNCMD) ./tctmgr search -m 10 -ord name STRDESC -pv -ph casket > check.out
$(RUNENV) $(RUNCMD) ./tctmgr search -m 10 -ord name STRDESC -pv -ph casket \
name STRBW mi birth NUMBT 19700101,19791231 lang STRAND ja,en > check.out
$(RUNENV) $(RUNCMD) ./tctmgr search -ord price NUMDESC -ph -rm casket name STRINC a
$(RUNENV) $(RUNCMD) ./tctmgr list -pv casket > check.out
check-adb :
rm -rf casket*
$(RUNENV) $(RUNCMD) ./tcatest write 'casket.tch#mode=wct#bnum=5000' 50000
$(RUNENV) $(RUNCMD) ./tcatest read 'casket.tch#mode=r'
$(RUNENV) $(RUNCMD) ./tcatest remove 'casket.tch#mode=w'
$(RUNENV) $(RUNCMD) ./tcatest misc 'casket.tch#mode=wct#bnum=500#opts=ld' 5000
$(RUNENV) $(RUNCMD) ./tcatest wicked 'casket.tch#mode=wct' 5000
$(RUNENV) $(RUNCMD) ./tcatest write '@casket.tcb#mode=wct#lmemb=5#nmemb=5' 50000
$(RUNENV) $(RUNCMD) ./tcatest read '@casket.tcb#mode=r'
$(RUNENV) $(RUNCMD) ./tcatest remove '@casket.tcb#mode=w'
$(RUNENV) $(RUNCMD) ./tcatest misc '@casket.tcb#mode=wct#lmemb=5#nmemb=5#opts=ld' 5000
$(RUNENV) $(RUNCMD) ./tcatest wicked '@casket.tcb#mode=wct' 5000
$(RUNENV) $(RUNCMD) ./tcatest write 'casket.tcf#mode=wct#width=10' 50000
$(RUNENV) $(RUNCMD) ./tcatest read 'casket.tcf#mode=r'
$(RUNENV) $(RUNCMD) ./tcatest remove 'casket.tcf#mode=w'
$(RUNENV) $(RUNCMD) ./tcatest write '*#bnum=5000#cap=100' 50000
$(RUNENV) $(RUNCMD) ./tcatest misc '*' 5000
$(RUNENV) $(RUNCMD) ./tcatest wicked '*' 5000
$(RUNENV) $(RUNCMD) ./tcatest write '%casket-mul.tch#mode=wct#bnum=500' 50000
$(RUNENV) $(RUNCMD) ./tcatest read '%casket-mul.tch#mode=r'
$(RUNENV) $(RUNCMD) ./tcatest remove '%casket-mul.tch#mode=w'
$(RUNENV) $(RUNCMD) ./tcatest misc '%casket-mul.tch#mode=wct#bnum=500#opts=ld' 5000
$(RUNENV) $(RUNCMD) ./tcatest wicked '%casket-mul.tch#mode=wct' 5000
$(RUNENV) $(RUNCMD) ./tcatest compare casket 50 500
$(RUNENV) $(RUNCMD) ./tcatest compare casket 5 5000
$(RUNENV) $(RUNCMD) ./tcamttest write 'casket.tch#mode=wct#bnum=5000' 5 5000
$(RUNENV) $(RUNCMD) ./tcamttest read 'casket.tch#mode=r' 5
$(RUNENV) $(RUNCMD) ./tcamttest remove 'casket.tch#mode=w' 5
$(RUNENV) $(RUNCMD) ./tcamttest write '%casket-mul.tcb#mode=wct#bnum=5000' 5 5000
$(RUNENV) $(RUNCMD) ./tcamttest read '%casket-mul.tcb#mode=r' 5
$(RUNENV) $(RUNCMD) ./tcamttest remove '%casket-mul.tcb#mode=w' 5
$(RUNENV) $(RUNCMD) ./tcamgr create 'casket.tch#mode=wct#bnum=3'
$(RUNENV) $(RUNCMD) ./tcamgr inform 'casket.tch'
$(RUNENV) $(RUNCMD) ./tcamgr put casket.tch one first
$(RUNENV) $(RUNCMD) ./tcamgr put casket.tch two second
$(RUNENV) $(RUNCMD) ./tcamgr put -dk casket.tch three third
$(RUNENV) $(RUNCMD) ./tcamgr put -dc casket.tch three third
$(RUNENV) $(RUNCMD) ./tcamgr put -dc casket.tch three third
$(RUNENV) $(RUNCMD) ./tcamgr put -dc casket.tch three third
$(RUNENV) $(RUNCMD) ./tcamgr put casket.tch four fourth
$(RUNENV) $(RUNCMD) ./tcamgr put -dk casket.tch five fifth
$(RUNENV) $(RUNCMD) ./tcamgr out casket.tch one
$(RUNENV) $(RUNCMD) ./tcamgr out casket.tch two
$(RUNENV) $(RUNCMD) ./tcamgr get casket.tch three > check.out
$(RUNENV) $(RUNCMD) ./tcamgr get casket.tch four > check.out
$(RUNENV) $(RUNCMD) ./tcamgr get casket.tch five > check.out
$(RUNENV) $(RUNCMD) ./tcamgr list -pv -fm f casket.tch > check.out
$(RUNENV) $(RUNCMD) ./tcamgr optimize casket.tch
$(RUNENV) $(RUNCMD) ./tcamgr put -dc casket.tch three third
$(RUNENV) $(RUNCMD) ./tcamgr get casket.tch three > check.out
$(RUNENV) $(RUNCMD) ./tcamgr get casket.tch four > check.out
$(RUNENV) $(RUNCMD) ./tcamgr get casket.tch five > check.out
$(RUNENV) $(RUNCMD) ./tcamgr misc casket.tch putlist six sixth seven seventh
$(RUNENV) $(RUNCMD) ./tcamgr misc casket.tch outlist six
$(RUNENV) $(RUNCMD) ./tcamgr misc casket.tch getlist three four five six > check.out
$(RUNENV) $(RUNCMD) ./tcamgr list -pv casket.tch > check.out
$(RUNENV) $(RUNCMD) ./tcamgr create 'casket.tct#mode=wct#idx=name:lex#idx=age:dec'
$(RUNENV) $(RUNCMD) ./tcamgr put -sep '|' casket.tct 1 "name|mikio|age|30"
$(RUNENV) $(RUNCMD) ./tcamgr put -sep '|' casket.tct 2 "name|fal|age|31"
$(RUNENV) $(RUNCMD) ./tcamgr put -sep '|' casket.tct 3 "name|lupin|age|29"
$(RUNENV) $(RUNCMD) ./tcamgr get -sep '\t' casket.tct 1 > check.out
$(RUNENV) $(RUNCMD) ./tcamgr list -sep '\t' -pv casket.tct > check.out
$(RUNENV) $(RUNCMD) ./tcamgr misc -sep '|' casket.tct search \
"addcond|name|STRINC|i" "setorder|age|NUMASC" "setmax|1" "get" > check.out
$(RUNENV) $(RUNCMD) ./tcamgr misc -sep '|' casket.tct search "get" "out" > check.out
$(RUNENV) $(RUNCMD) ./tcamgr create '%casket-mul.tcb#mode=wct'
$(RUNENV) $(RUNCMD) ./tcamgr put '%casket-mul.tcb' one first
$(RUNENV) $(RUNCMD) ./tcamgr put '%casket-mul.tcb' two second
$(RUNENV) $(RUNCMD) ./tcamgr put -dk '%casket-mul.tcb' three third
$(RUNENV) $(RUNCMD) ./tcamgr put -dc '%casket-mul.tcb' three third
$(RUNENV) $(RUNCMD) ./tcamgr put -dc '%casket-mul.tcb' three third
$(RUNENV) $(RUNCMD) ./tcamgr put -dc '%casket-mul.tcb' three third
$(RUNENV) $(RUNCMD) ./tcamgr put '%casket-mul.tcb' four fourth
$(RUNENV) $(RUNCMD) ./tcamgr put -dk '%casket-mul.tcb' five fifth
$(RUNENV) $(RUNCMD) ./tcamgr out '%casket-mul.tcb' one
$(RUNENV) $(RUNCMD) ./tcamgr out '%casket-mul.tcb' two
$(RUNENV) $(RUNCMD) ./tcamgr get '%casket-mul.tcb' three > check.out
$(RUNENV) $(RUNCMD) ./tcamgr get '%casket-mul.tcb' four > check.out
$(RUNENV) $(RUNCMD) ./tcamgr get '%casket-mul.tcb' five > check.out
$(RUNENV) $(RUNCMD) ./tcamgr list -pv -fm f '%casket-mul.tcb' > check.out
$(RUNENV) $(RUNCMD) ./tcamgr optimize '%casket-mul.tcb'
$(RUNENV) $(RUNCMD) ./tcamgr put -dc '%casket-mul.tcb' three third
$(RUNENV) $(RUNCMD) ./tcamgr get '%casket-mul.tcb' three > check.out
$(RUNENV) $(RUNCMD) ./tcamgr get '%casket-mul.tcb' four > check.out
$(RUNENV) $(RUNCMD) ./tcamgr get '%casket-mul.tcb' five > check.out
$(RUNENV) $(RUNCMD) ./tcamgr misc '%casket-mul.tcb' '%putlist' six sixth seven seventh
$(RUNENV) $(RUNCMD) ./tcamgr misc '%casket-mul.tcb' '@outlist' six
$(RUNENV) $(RUNCMD) ./tcamgr misc '%casket-mul.tcb' '@getlist' \
three four five six > check.out
$(RUNENV) $(RUNCMD) ./tcamgr list -pv '%casket-mul.tcb' > check.out
check-valgrind :
make RUNCMD="valgrind --tool=memcheck --log-file=%p.vlog" check
grep ERROR *.vlog | grep -v ' 0 errors' ; true
grep 'at exit' *.vlog | grep -v ' 0 bytes' ; true
check-large :
rm -rf casket*
$(RUNENV) $(RUNCMD) ./tchmttest typical casket 3 1000000 5000000 13 8
$(RUNENV) $(RUNCMD) ./tchmttest typical -nc casket 3 1000000 5000000 13 8
$(RUNENV) $(RUNCMD) ./tcbmttest typical casket 3 500000 8 8 500000 16 8
$(RUNENV) $(RUNCMD) ./tcbmttest typical -nc casket 3 500000 8 8 500000 16 8
$(RUNENV) $(RUNCMD) ./tcfmttest typical casket 3 500000 2048 4g
$(RUNENV) $(RUNCMD) ./tcfmttest typical -nc casket 3 500000 2048 4g
rm -rf casket*
check-compare :
$(RUNENV) $(RUNCMD) ./tcatest compare casket 5 10000
$(RUNENV) $(RUNCMD) ./tcatest compare casket 10 5000
$(RUNENV) $(RUNCMD) ./tcatest compare casket 50 1000
$(RUNENV) $(RUNCMD) ./tcatest compare casket 100 500
check-thread :
rm -rf casket*
$(RUNENV) $(RUNCMD) ./tcumttest typical 5 500000 500000
$(RUNENV) $(RUNCMD) ./tcumttest typical -nc -rr 1000 5 500000 500000
$(RUNENV) $(RUNCMD) ./tchmttest typical casket 5 500000 500000
$(RUNENV) $(RUNCMD) ./tchmttest typical -rc 500000 -nc -rr 1000 casket 5 500000 500000
$(RUNENV) $(RUNCMD) ./tcbmttest typical casket 5 100000 5 5
$(RUNENV) $(RUNCMD) ./tcbmttest typical -nc -rr 1000 casket 5 100000 5 5
$(RUNENV) $(RUNCMD) ./tcfmttest typical casket 5 500000 10
$(RUNENV) $(RUNCMD) ./tcfmttest typical -nc -rr 1000 casket 5 500000 10
rm -rf casket*
check-race :
$(RUNENV) $(RUNCMD) ./tchmttest race casket 5 10000
$(RUNENV) $(RUNCMD) ./tcbmttest race casket 5 10000
check-forever :
while true ; \
do \
make check || break ; \
make check || break ; \
make check-thread || break ; \
make check-race || break ; \
make check-race || break ; \
make check-compare || break ; \
make check-compare || break ; \
done
words :
rm -f casket-* words.tsv
cat /usr/share/dict/words | \
tr '\t\r' ' ' | grep -v '^ *$$' | cat -n | sort | \
LC_ALL=C sed -e 's/^ *//' -e 's/\(^[0-9]*\)\t\(.*\)/\2\t\1/' > words.tsv
./tchmgr create casket-hash -1 0 ; ./tchmgr importtsv casket-hash words.tsv
./tcbmgr create casket-btree 8192 ; ./tcbmgr importtsv casket-btree words.tsv
./tcbmgr create -td casket-btree-td 8192 ; ./tcbmgr importtsv casket-btree-td words.tsv
./tcbmgr create -tb casket-btree-tb 8192 ; ./tcbmgr importtsv casket-btree-tb words.tsv
./tcbmgr create -tt casket-btree-tt 8192 ; ./tcbmgr importtsv casket-btree-tt words.tsv
./tcbmgr create -tx casket-btree-tx 8192 ; ./tcbmgr importtsv casket-btree-tx words.tsv
wc -c words.tsv casket-hash casket-btree \
casket-btree-td casket-btree-tb casket-btree-tt casket-btree-tx
wordtable :
rm -rf casket* words.tsv
cat /usr/share/dict/words | \
tr '\t\r' ' ' | grep -v '^ *$$' | cat -n | sort | \
LC_ALL=C sed -e 's/^ *//' -e 's/\(^[0-9]*\)\t\(.*\)/\1\tword\t\2\tnum\t\1/' \
-e 's/$$/\txxx\tabc\tyyy\t123/' > words.tsv
./tctmgr create casket
./tctmgr setindex casket word
./tctmgr setindex -it dec casket num
./tctmgr importtsv casket words.tsv
.PHONY : all clean install check
#================================================================
# Building binaries
#================================================================
libtokyocabinet.a : $(LIBOBJFILES)
$(AR) $(ARFLAGS) $@ $(LIBOBJFILES)
libtokyocabinet.so.$(LIBVER).$(LIBREV).0 : $(LIBOBJFILES)
if uname -a | egrep -i 'SunOS' > /dev/null ; \
then \
$(CC) $(CFLAGS) -shared -Wl,-G,-h,libtokyocabinet.so.$(LIBVER) -o $@ \
$(LIBOBJFILES) $(LDFLAGS) $(LIBS) ; \
else \
$(CC) $(CFLAGS) -shared -Wl,-soname,libtokyocabinet.so.$(LIBVER) -o $@ \
$(LIBOBJFILES) $(LDFLAGS) $(LIBS) ; \
fi
libtokyocabinet.so.$(LIBVER) : libtokyocabinet.so.$(LIBVER).$(LIBREV).0
ln -f -s libtokyocabinet.so.$(LIBVER).$(LIBREV).0 $@
libtokyocabinet.so : libtokyocabinet.so.$(LIBVER).$(LIBREV).0
ln -f -s libtokyocabinet.so.$(LIBVER).$(LIBREV).0 $@
libtokyocabinet.$(LIBVER).$(LIBREV).0.dylib : $(LIBOBJFILES)
$(CC) $(CFLAGS) -dynamiclib -o $@ \
-install_name $(LIBDIR)/libtokyocabinet.$(LIBVER).dylib \
-current_version $(LIBVER).$(LIBREV).0 -compatibility_version $(LIBVER) \
$(LIBOBJFILES) $(LDFLAGS) $(LIBS)
libtokyocabinet.$(LIBVER).dylib : libtokyocabinet.$(LIBVER).$(LIBREV).0.dylib
ln -f -s libtokyocabinet.$(LIBVER).$(LIBREV).0.dylib $@
libtokyocabinet.dylib : libtokyocabinet.$(LIBVER).$(LIBREV).0.dylib
ln -f -s libtokyocabinet.$(LIBVER).$(LIBREV).0.dylib $@
tcutest : tcutest.o $(LIBRARYFILES)
$(LDENV) $(CC) $(CFLAGS) -o $@ $< $(LDFLAGS) $(CMDLDFLAGS) -ltokyocabinet $(LIBS)
tcumttest : tcumttest.o $(LIBRARYFILES)
$(LDENV) $(CC) $(CFLAGS) -o $@ $< $(LDFLAGS) $(CMDLDFLAGS) -ltokyocabinet $(LIBS)
tcucodec : tcucodec.o $(LIBRARYFILES)
$(LDENV) $(CC) $(CFLAGS) -o $@ $< $(LDFLAGS) $(CMDLDFLAGS) -ltokyocabinet $(LIBS)
tchtest : tchtest.o $(LIBRARYFILES)
$(LDENV) $(CC) $(CFLAGS) -o $@ $< $(LDFLAGS) $(CMDLDFLAGS) -ltokyocabinet $(LIBS)
tchmttest : tchmttest.o $(LIBRARYFILES)
$(LDENV) $(CC) $(CFLAGS) -o $@ $< $(LDFLAGS) $(CMDLDFLAGS) -ltokyocabinet $(LIBS)
tchmgr : tchmgr.o $(LIBRARYFILES)
$(LDENV) $(CC) $(CFLAGS) -o $@ $< $(LDFLAGS) $(CMDLDFLAGS) -ltokyocabinet $(LIBS)
tcbtest : tcbtest.o $(LIBRARYFILES)
$(LDENV) $(CC) $(CFLAGS) -o $@ $< $(LDFLAGS) $(CMDLDFLAGS) -ltokyocabinet $(LIBS)
tcbmttest : tcbmttest.o $(LIBRARYFILES)
$(LDENV) $(CC) $(CFLAGS) -o $@ $< $(LDFLAGS) $(CMDLDFLAGS) -ltokyocabinet $(LIBS)
tcbmgr : tcbmgr.o $(LIBRARYFILES)
$(LDENV) $(CC) $(CFLAGS) -o $@ $< $(LDFLAGS) $(CMDLDFLAGS) -ltokyocabinet $(LIBS)
tcftest : tcftest.o $(LIBRARYFILES)
$(LDENV) $(CC) $(CFLAGS) -o $@ $< $(LDFLAGS) $(CMDLDFLAGS) -ltokyocabinet $(LIBS)
tcfmttest : tcfmttest.o $(LIBRARYFILES)
$(LDENV) $(CC) $(CFLAGS) -o $@ $< $(LDFLAGS) $(CMDLDFLAGS) -ltokyocabinet $(LIBS)
tcfmgr : tcfmgr.o $(LIBRARYFILES)
$(LDENV) $(CC) $(CFLAGS) -o $@ $< $(LDFLAGS) $(CMDLDFLAGS) -ltokyocabinet $(LIBS)
tcttest : tcttest.o $(LIBRARYFILES)
$(LDENV) $(CC) $(CFLAGS) -o $@ $< $(LDFLAGS) $(CMDLDFLAGS) -ltokyocabinet $(LIBS)
tctmttest : tctmttest.o $(LIBRARYFILES)
$(LDENV) $(CC) $(CFLAGS) -o $@ $< $(LDFLAGS) $(CMDLDFLAGS) -ltokyocabinet $(LIBS)
tctmgr : tctmgr.o $(LIBRARYFILES)
$(LDENV) $(CC) $(CFLAGS) -o $@ $< $(LDFLAGS) $(CMDLDFLAGS) -ltokyocabinet $(LIBS)
tcatest : tcatest.o $(LIBRARYFILES)
$(LDENV) $(CC) $(CFLAGS) -o $@ $< $(LDFLAGS) $(CMDLDFLAGS) -ltokyocabinet $(LIBS)
tcamttest : tcamttest.o $(LIBRARYFILES)
$(LDENV) $(CC) $(CFLAGS) -o $@ $< $(LDFLAGS) $(CMDLDFLAGS) -ltokyocabinet $(LIBS)
tcamgr : tcamgr.o $(LIBRARYFILES)
$(LDENV) $(CC) $(CFLAGS) -o $@ $< $(LDFLAGS) $(CMDLDFLAGS) -ltokyocabinet $(LIBS)
tcawmgr.cgi : tcawmgr.o $(LIBRARYFILES)
$(LDENV) $(CC) $(CFLAGS) -o $@ $< $(LDFLAGS) $(CMDLDFLAGS) -ltokyocabinet $(LIBS)
myconf.o : myconf.h
tcutil.o : myconf.h tcutil.h md5.h
tchdb.o : myconf.h tcutil.h tchdb.h
tcbdb.o : myconf.h tcutil.h tchdb.h tcbdb.h
tcfdb.o : myconf.h tcutil.h tcfdb.h
tctdb.o : myconf.h tcutil.h tchdb.h tctdb.h
tcadb.o : myconf.h tcutil.h tchdb.h tcbdb.h tcfdb.h tctdb.h tcadb.h
tcutest.o tcucodec.o : myconf.h tcutil.h
tchtest.o tchmttest.o tchmgr.o : myconf.h tcutil.h tchdb.h
tcbtest.o tcbmttest.o tcbmgr.o : myconf.h tcutil.h tchdb.h tcbdb.h
tcftest.o tcfmttest.o tcfmgr.o : myconf.h tcutil.h tcfdb.h
tcttest.o tctmttest.o tctmgr.o : myconf.h tcutil.h tchdb.h tcbdb.h tctdb.h
tcatest.o tcamttest.o tcamgr.o tcawmgr.o : \
myconf.h tcutil.h tchdb.h tcbdb.h tcfdb.h tctdb.h tcadb.h
tokyocabinet_all.c : myconf.c tcutil.c md5.c tchdb.c tcbdb.c tcfdb.c tctdb.c tcadb.c
cat myconf.c tcutil.c md5.c tchdb.c tcbdb.c tcfdb.c tctdb.c tcadb.c > $@
tokyocabinet_all.o : myconf.h tcutil.h tchdb.h tcbdb.h tcfdb.h tctdb.h tcadb.h
# END OF FILE