@@ -608,8 +608,8 @@ def cflatloadbfwi():
608
608
if (exit_code != 0 ):
609
609
exit (exit_code )
610
610
################################### test cflatloadbfwi end ############################################
611
- ################################### test cbfqbftiquerydbn ############################################
612
- def cbfqbftiquerydbn ():
611
+ ################################### test cbfqbftiquerydbs ############################################
612
+ def cbfqbftiquerydbs ():
613
613
global dcnt
614
614
global fcnt
615
615
global fsz
@@ -637,10 +637,10 @@ def cbfqbftiquerydbn():
637
637
############################
638
638
# do some bfq tests now
639
639
print "testing bfq tot dirs %d tot files %d tot bytes %d tot files with xattrs %d tot links %d" % (dcnt ,fcnt ,fsz ,xcnt ,lcnt )
640
- of = "%s/cbfqbftiquerydbnout " % (top )
641
- of1 = "%s/cbfqbftiquerydbnout1 " % (top )
642
- oft = "%s/cbfqbftiquerydbnout .0" % (top )
643
- oft1 = "%s/cbfqbftiquerydbnout1 .0" % (top )
640
+ of = "%s/cbfqbftiquerydbsout " % (top )
641
+ of1 = "%s/cbfqbftiquerydbsout1 " % (top )
642
+ oft = "%s/cbfqbftiquerydbsout .0" % (top )
643
+ oft1 = "%s/cbfqbftiquerydbsout1 .0" % (top )
644
644
###### num file test #####
645
645
print "+++++++++ test to see if gufi agrees totfiles=%d" % (fcnt )
646
646
os .system ('%s/%s/bfq -n1 -p -E "select name from entries where type=\' f\' ;" -o %s %s' % (tdir ,gdir ,of ,'gt/d0' ))
@@ -682,23 +682,23 @@ def cbfqbftiquerydbn():
682
682
else :
683
683
print "xattr count match xcnt %d numl %d" % (xcnt ,numl )
684
684
###### end num dir test #####
685
- ###### sum of file sizes test uses querydbn #####/os
686
- print "+++++++++ test to see if bfq creating output db per thread and use querydbn to aggregate total size=%d" % (fsz )
685
+ ###### sum of file sizes test uses querydbs #####/os
686
+ print "+++++++++ test to see if bfq creating output db per thread and use querydbs to aggregate total size=%d" % (fsz )
687
687
os .system ('%s/%s/bfq -n 2 -p -E "insert into sument select size from entries where type=\' f\' and size>0;" -I "create table sument (sz int64);" -O outdb %s' % (tdir ,gdir ,'gt/d0' ))
688
688
#os.system('%s/%s/bfq -n 1 -p -E "insert into sument select size from entries where type=\'f\'and size>0;" -I "create table sument (sz int64);" -O outdb %s' % (tdir,gdir,'gt/d0'))
689
- os .system ('%s/%s/querydbn -V outdb 2 "select sum(sz) from vsument" sument > querydbnout ' % (tdir ,gdir ))
690
- #os.system('%s/%s/querydbn -V outdb 1 "select sum(sz) from vsument" sument > querydbnout ' % (tdir,gdir))
691
- os .system ('cat querydbnout ' );
692
- proc = subprocess .Popen ('head -1 querydbnout ' ,stdout = subprocess .PIPE ,shell = True )
689
+ os .system ('%s/%s/querydbs -V outdb 2 "select sum(sz) from vsument" sument > querydbsout ' % (tdir ,gdir ))
690
+ #os.system('%s/%s/querydbs -V outdb 1 "select sum(sz) from vsument" sument > querydbsout ' % (tdir,gdir))
691
+ os .system ('cat querydbsout ' );
692
+ proc = subprocess .Popen ('head -1 querydbsout ' ,stdout = subprocess .PIPE ,shell = True )
693
693
for line in proc .stdout :
694
694
csz = line .split ('|' )[0 ]
695
695
sz = string .atoi (csz )
696
696
if (sz != fsz ):
697
- print "error: file size total from querydbn %d real file size total %d" % (sz ,fsz )
697
+ print "error: file size total from querydbs %d real file size total %d" % (sz ,fsz )
698
698
exit ()
699
699
else :
700
- print "good news: file size total from querydbn %d real file size total %d" % (sz ,fsz )
701
- ###### end sum of file sizes test uses querydbn #####
700
+ print "good news: file size total from querydbs %d real file size total %d" % (sz ,fsz )
701
+ ###### end sum of file sizes test uses querydbs #####
702
702
###### tree directory use test #####
703
703
####?????????????????????? need to fix bfq so that it doesnt print an error if a dir doesnt have a tree summary
704
704
#### select name from sqlite_master where type='table' and name='treesummary'; should do the trick
@@ -713,7 +713,7 @@ def cbfqbftiquerydbn():
713
713
else :
714
714
print "good news: using tree summary examined %d directories and not using tree summary examined %d directories" % (numl ,numl1 )
715
715
###### end tree directory use test #####
716
- ################################## test cbfqbftiquerydbn end ############################################
716
+ ################################## test cbfqbftiquerydbs end ############################################
717
717
################################### test cincr3modf ############################################
718
718
def cbfwiinsrc ():
719
719
testn = "correctness bfwi in src tree"
@@ -881,16 +881,16 @@ def fbfwreaddirplus2db():
881
881
os .system ('%s/runbfwreaddirplus2db %s > %s' % (tdir ,'d0' ,testfull ))
882
882
outlines = flines (testfull ,normlines ,1 ,1 )
883
883
################################### func fquerydb end ############################################
884
- ################################### func fquerydbn ############################################
885
- def fquerydbn ():
886
- testf = 'fquerydbn '
884
+ ################################### func fquerydbs ############################################
885
+ def fquerydbs ():
886
+ testf = 'fquerydbs '
887
887
normlines = 5
888
888
testfull = '%s/%s' % (funcout ,testf )
889
- testn = "functional querydbn "
889
+ testn = "functional querydbs "
890
890
cleanstart (testn ,1 )
891
- os .system ('%s/runquerydbn %s %s > %s' % (tdir ,'gt/d0' ,'2' ,testfull ))
891
+ os .system ('%s/runquerydbs %s %s > %s' % (tdir ,'gt/d0' ,'2' ,testfull ))
892
892
outlines = flines (testfull ,normlines ,1 ,1 )
893
- ################################### func fquerydbn end ############################################
893
+ ################################### func fquerydbs end ############################################
894
894
################################### func fgroupfilespacehog ############################################
895
895
def fgroupfilespacehog ():
896
896
testf = 'fgroupfilespacehog'
@@ -1015,7 +1015,7 @@ def runallc():
1015
1015
cflatloaddfw ()
1016
1016
cflatloadfinddfw ()
1017
1017
cflatloadbfwi ()
1018
- cbfqbftiquerydbn ()
1018
+ cbfqbftiquerydbs ()
1019
1019
cbfwiinsrc ()
1020
1020
cbfwrp2dbfullinsrc ()
1021
1021
cbfwrdp2dbincrinsrc ()
@@ -1028,7 +1028,7 @@ def runallf():
1028
1028
fdfw ()
1029
1029
fquerydb ()
1030
1030
fbfwreaddirplus2db ()
1031
- fquerydbn ()
1031
+ fquerydbs ()
1032
1032
fgroupfilespacehog ()
1033
1033
fgroupfilespacehogusesummary ()
1034
1034
fuserfilespacehog ()
@@ -1053,7 +1053,7 @@ def usage():
1053
1053
print "cflatloaddfw - correctness flat load using bfwi -u from dfw"
1054
1054
print "cflatloadfinddfw - correctness flat load using bfwi -u from find dfw"
1055
1055
print "cflatloadbfwi - correctness flat load using bfwi -u from bfwi"
1056
- print "cbfqbftiquerydbn - correctness bfq and bfti and querydnb"
1056
+ print "cbfqbftiquerydbs - correctness bfq and bfti and querydnb"
1057
1057
print "cbfwiinsrc - correctness bfwi putting index in src tree"
1058
1058
print "cbfwrp2dbfullinsrc - correctness bfwreaddirplus2db full gufi tree build in src tree"
1059
1059
print "cbfwrdp2dbincrinsrc - correctness bfwreaddirplus2db incr gufi tree update in src tree"
@@ -1063,7 +1063,7 @@ def usage():
1063
1063
print "fdfw - functional dfw"
1064
1064
print "fquerydb - functional querydb"
1065
1065
print "freaddirplus2db - functional readdirplus2db"
1066
- print "fquerydbn - functional querydbn "
1066
+ print "fquerydbs - functional querydbs "
1067
1067
print "fgroupfilespacehog - functional groupfilespacehog"
1068
1068
print "fgroupfilespacehogusesummary - functional groupfilespacehogusesummary"
1069
1069
print "fuserfilespacehog - functional userfilespacehog"
@@ -1123,8 +1123,8 @@ def usage():
1123
1123
cflatloadbfwi ()
1124
1124
print "+_+_+_+_+_+_+_+_+_ end test %s +_+_+_+_+_+_+_+_+" % (sys .argv [1 ])
1125
1125
exit (0 )
1126
- elif (sys .argv [1 ] == 'cbfqbftiquerydbn ' ):
1127
- cbfqbftiquerydbn ()
1126
+ elif (sys .argv [1 ] == 'cbfqbftiquerydbs ' ):
1127
+ cbfqbftiquerydbs ()
1128
1128
print "+_+_+_+_+_+_+_+_+_ end test %s +_+_+_+_+_+_+_+_+" % (sys .argv [1 ])
1129
1129
exit (0 )
1130
1130
elif (sys .argv [1 ] == 'cbfwiinsrc' ):
@@ -1169,9 +1169,9 @@ def usage():
1169
1169
fbfwreaddirplus2db ()
1170
1170
print "+_+_+_+_+_+_+_+_+_ end test %s +_+_+_+_+_+_+_+_+" % (sys .argv [1 ])
1171
1171
exit (0 )
1172
- elif (sys .argv [1 ] == 'fquerydbn ' ):
1172
+ elif (sys .argv [1 ] == 'fquerydbs ' ):
1173
1173
os .system ('mkdir %s' % (funcout ))
1174
- fquerydbn ()
1174
+ fquerydbs ()
1175
1175
print "+_+_+_+_+_+_+_+_+_ end test %s +_+_+_+_+_+_+_+_+" % (sys .argv [1 ])
1176
1176
exit (0 )
1177
1177
elif (sys .argv [1 ] == 'fgroupfilespacehog' ):
0 commit comments