tests/api_collated.h

Go to the documentation of this file.
00001 /* Warning: This file is generated by /data/home/olly/tmp/xapian-svn-snapshot/tags/1.0.20/xapian/xapian-core/tests/collate-apitest - do not modify directly! */
00002 
00003     if (!backend) {
00004         static const test_desc tests[] = {
00005             { "defaultctor1", test_defaultctor1 },
00006             { "copyassign1", test_copyassign1 },
00007             { "trivial1", test_trivial1 },
00008             { "getqterms1", test_getqterms1 },
00009             { "getqterms2", test_getqterms2 },
00010             { "emptyquery2", test_emptyquery2 },
00011             { "emptyquery3", test_emptyquery3 },
00012             { "querylen1", test_querylen1 },
00013             { "querylen2", test_querylen2 },
00014             { "queryvalid1", test_queryvalid1 },
00015             { "subqcollapse1", test_subqcollapse1 },
00016             { "emptyquerypart1", test_emptyquerypart1 },
00017             { "singlesubq1", test_singlesubq1 },
00018             { "stemlangs1", test_stemlangs1 },
00019             { "weight1", test_weight1 },
00020             { "nosuchdb1", test_nosuchdb1 },
00021             { "addvalue1", test_addvalue1 },
00022             { "poscollapse2", test_poscollapse2 },
00023             { "uninitdb1", test_uninitdb1 },
00024             { "scaleweight3", test_scaleweight3 },
00025             { "scaleweight4", test_scaleweight4 },
00026             { "rset4", test_rset4 },
00027             { "opvaluege1", test_opvaluege1 },
00028             { "nosubdatabases1", test_nosubdatabases1 },
00029             { "document1", test_document1 },
00030             { "queryterms1", test_queryterms1 },
00031             { "matchnothing1", test_matchnothing1 },
00032             { "nearsubqueries1", test_nearsubqueries1 },
00033             { "utf8iterator1", test_utf8iterator1 },
00034             { "utf8iterator2", test_utf8iterator2 },
00035             { "unicode1", test_unicode1 },
00036             { "caseconvert1", test_caseconvert1 },
00037             { "utf8convert1", test_utf8convert1 },
00038             { "unicodepredicates1", test_unicodepredicates1 },
00039             { "valuestats5", test_valuestats5 },
00040             { 0, 0 }
00041         };
00042         result = max(result, test_driver::run(tests));
00043     }
00044     if (backend) {
00045         static const test_desc tests[] = {
00046             { "zerodocid1", test_zerodocid1 },
00047             { "emptyquery1", test_emptyquery1 },
00048             { "simplequery1", test_simplequery1 },
00049             { "simplequery2", test_simplequery2 },
00050             { "simplequery3", test_simplequery3 },
00051             { "wildquery1", test_wildquery1 },
00052             { "multidb1", test_multidb1 },
00053             { "msetmaxitems1", test_msetmaxitems1 },
00054             { "expandweights1", test_expandweights1 },
00055             { "expandweights2", test_expandweights2 },
00056             { "expandmaxitems1", test_expandmaxitems1 },
00057             { "boolquery1", test_boolquery1 },
00058             { "msetfirst1", test_msetfirst1 },
00059             { "topercent1", test_topercent1 },
00060             { "topercent2", test_topercent2 },
00061             { "expandfunctor1", test_expandfunctor1 },
00062             { "pctcutoff1", test_pctcutoff1 },
00063             { "pctcutoff2", test_pctcutoff2 },
00064             { "cutoff1", test_cutoff1 },
00065             { "allowqterms1", test_allowqterms1 },
00066             { "maxattain1", test_maxattain1 },
00067             { "reversebool1", test_reversebool1 },
00068             { "reversebool2", test_reversebool2 },
00069             { "getmterms1", test_getmterms1 },
00070             { "getmterms2", test_getmterms2 },
00071             { "poscollapse1", test_poscollapse1 },
00072             { "repeatquery1", test_repeatquery1 },
00073             { "fetchdocs1", test_fetchdocs1 },
00074             { "absentterm1", test_absentterm1 },
00075             { "absentterm2", test_absentterm2 },
00076             { "rset1", test_rset1 },
00077             { "rset2", test_rset2 },
00078             { "eliteset1", test_eliteset1 },
00079             { "eliteset2", test_eliteset2 },
00080             { "eliteset3", test_eliteset3 },
00081             { "eliteset4", test_eliteset4 },
00082             { "eliteset5", test_eliteset5 },
00083             { "termlisttermfreq1", test_termlisttermfreq1 },
00084             { "qterminfo1", test_qterminfo1 },
00085             { "qterminfo2", test_qterminfo2 },
00086             { "msetzeroitems1", test_msetzeroitems1 },
00087             { "matches1", test_matches1 },
00088             { "wqf1", test_wqf1 },
00089             { "qlen1", test_qlen1 },
00090             { "termlist1", test_termlist1 },
00091             { "termlist2", test_termlist2 },
00092             { "termlist3", test_termlist3 },
00093             { "termlist4", test_termlist4 },
00094             { "puncterms1", test_puncterms1 },
00095             { "spaceterms1", test_spaceterms1 },
00096             { "xor1", test_xor1 },
00097             { "getdoc1", test_getdoc1 },
00098             { "emptyop1", test_emptyop1 },
00099             { "checkatleast1", test_checkatleast1 },
00100             { "checkatleast2", test_checkatleast2 },
00101             { "checkatleast3", test_checkatleast3 },
00102             { "allpostlist1", test_allpostlist1 },
00103             { "emptyterm1", test_emptyterm1 },
00104             { "valuerange1", test_valuerange1 },
00105             { "valuege1", test_valuege1 },
00106             { "valuele1", test_valuele1 },
00107             { "scaleweight1", test_scaleweight1 },
00108             { "scaleweight2", test_scaleweight2 },
00109             { "bm25weight1", test_bm25weight1 },
00110             { "tradweight1", test_tradweight1 },
00111             { "alldocspl3", test_alldocspl3 },
00112             { "termstats", test_termstats },
00113             { "msetiterator1", test_msetiterator1 },
00114             { "msetiterator2", test_msetiterator2 },
00115             { "msetiterator3", test_msetiterator3 },
00116             { "esetiterator1", test_esetiterator1 },
00117             { "esetiterator2", test_esetiterator2 },
00118             { "collapsekey1", test_collapsekey1 },
00119             { "collapsekey2", test_collapsekey2 },
00120             { "collapsekey3", test_collapsekey3 },
00121             { "collapsekey4", test_collapsekey4 },
00122             { "allterms1", test_allterms1 },
00123             { "allterms2", test_allterms2 },
00124             { "allterms3", test_allterms3 },
00125             { "allterms4", test_allterms4 },
00126             { "allterms5", test_allterms5 },
00127             { "allterms6", test_allterms6 },
00128             { "specialterms1", test_specialterms1 },
00129             { "specialterms2", test_specialterms2 },
00130             { "postlist1", test_postlist1 },
00131             { "postlist2", test_postlist2 },
00132             { "postlist3", test_postlist3 },
00133             { "postlist4", test_postlist4 },
00134             { "postlist5", test_postlist5 },
00135             { "postlist6", test_postlist6 },
00136             { "collfreq1", test_collfreq1 },
00137             { "sortvalue1", test_sortvalue1 },
00138             { "sortrel1", test_sortrel1 },
00139             { "matchall1", test_matchall1 },
00140             { "consistency3", test_consistency3 },
00141             { "pctcutoff5", test_pctcutoff5 },
00142             { 0, 0 }
00143         };
00144         result = max(result, test_driver::run(tests));
00145     }
00146     if (backend&&!multi) {
00147         static const test_desc tests[] = {
00148             { "multidb2", test_multidb2 },
00149             { "multidb3", test_multidb3 },
00150             { "multidb4", test_multidb4 },
00151             { "multidb5", test_multidb5 },
00152             { "rsetmultidb1", test_rsetmultidb1 },
00153             { "rsetmultidb3", test_rsetmultidb3 },
00154             { "rsetmultidb2", test_rsetmultidb2 },
00155             { "multiexpand1", test_multiexpand1 },
00156             { 0, 0 }
00157         };
00158         result = max(result, test_driver::run(tests));
00159     }
00160     if (backend&&!remote) {
00161         static const test_desc tests[] = {
00162             { "matchdecider1", test_matchdecider1 },
00163             { "matchdecider2", test_matchdecider2 },
00164             { "matchdecider3", test_matchdecider3 },
00165             { "consistency1", test_consistency1 },
00166             { "userweight1", test_userweight1 },
00167             { "sortfunctor1", test_sortfunctor1 },
00168             { "changesorter1", test_changesorter1 },
00169             { "sortfunctorempty1", test_sortfunctorempty1 },
00170             { 0, 0 }
00171         };
00172         result = max(result, test_driver::run(tests));
00173     }
00174     if (flint) {
00175         static const test_desc tests[] = {
00176             { "lockfileumask1", test_lockfileumask1 },
00177             { "lockfilefd0or1", test_lockfilefd0or1 },
00178             { "compactnorenumber1", test_compactnorenumber1 },
00179             { "compactmerge1", test_compactmerge1 },
00180             { "compactmultichunks1", test_compactmultichunks1 },
00181             { "stubdb1", test_stubdb1 },
00182             { "flintdatabaseopeningerror1", test_flintdatabaseopeningerror1 },
00183             { "flintdatabaseformaterror1", test_flintdatabaseformaterror1 },
00184             { "flintdatabaseformaterror2", test_flintdatabaseformaterror2 },
00185             { "flintdatabaseformaterror3", test_flintdatabaseformaterror3 },
00186             { "flintbackwardcompat1", test_flintbackwardcompat1 },
00187             { "flintbackwardcompat2", test_flintbackwardcompat2 },
00188             { "flintdatabaseopen1", test_flintdatabaseopen1 },
00189             { "qpsynonympartial1", test_qpsynonympartial1 },
00190             { "cursordelbug1", test_cursordelbug1 },
00191             { 0, 0 }
00192         };
00193         result = max(result, test_driver::run(tests));
00194     }
00195     if (metadata) {
00196         static const test_desc tests[] = {
00197             { "metadata3", test_metadata3 },
00198             { 0, 0 }
00199         };
00200         result = max(result, test_driver::run(tests));
00201     }
00202     if (metadata&&!inmemory) {
00203         static const test_desc tests[] = {
00204             { "metadata2", test_metadata2 },
00205             { "metadata4", test_metadata4 },
00206             { 0, 0 }
00207         };
00208         result = max(result, test_driver::run(tests));
00209     }
00210     if (positional) {
00211         static const test_desc tests[] = {
00212             { "near1", test_near1 },
00213             { "near2", test_near2 },
00214             { "phrase1", test_phrase1 },
00215             { "phrase2", test_phrase2 },
00216             { "poslist1", test_poslist1 },
00217             { "positfromtermit1", test_positfromtermit1 },
00218             { 0, 0 }
00219         };
00220         result = max(result, test_driver::run(tests));
00221     }
00222     if (positional&&writable) {
00223         static const test_desc tests[] = {
00224             { "poslist2", test_poslist2 },
00225             { "poslist3", test_poslist3 },
00226             { "poslistupdate1", test_poslistupdate1 },
00227             { 0, 0 }
00228         };
00229         result = max(result, test_driver::run(tests));
00230     }
00231     if (quartz) {
00232         static const test_desc tests[] = {
00233             { "quartzdatabaseopeningerror1", test_quartzdatabaseopeningerror1 },
00234             { "quartzdatabaseopen1", test_quartzdatabaseopen1 },
00235             { 0, 0 }
00236         };
00237         result = max(result, test_driver::run(tests));
00238     }
00239     if (remote) {
00240         static const test_desc tests[] = {
00241             { "matchdecider4", test_matchdecider4 },
00242             { "keepalive1", test_keepalive1 },
00243             { "netstats1", test_netstats1 },
00244             { "topercent3", test_topercent3 },
00245             { "sortfunctorremote1", test_sortfunctorremote1 },
00246             { 0, 0 }
00247         };
00248         result = max(result, test_driver::run(tests));
00249     }
00250     if (spelling) {
00251         static const test_desc tests[] = {
00252             { "spell1", test_spell1 },
00253             { "spell2", test_spell2 },
00254             { "spell3", test_spell3 },
00255             { "spell4", test_spell4 },
00256             { "spell5", test_spell5 },
00257             { "spell6", test_spell6 },
00258             { 0, 0 }
00259         };
00260         result = max(result, test_driver::run(tests));
00261     }
00262     if (transactions) {
00263         static const test_desc tests[] = {
00264             { "badtransaction1", test_badtransaction1 },
00265             { "committransaction1", test_committransaction1 },
00266             { "canceltransaction1", test_canceltransaction1 },
00267             { "canceltransaction2", test_canceltransaction2 },
00268             { 0, 0 }
00269         };
00270         result = max(result, test_driver::run(tests));
00271     }
00272     if (writable) {
00273         static const test_desc tests[] = {
00274             { "valuerange2", test_valuerange2 },
00275             { "alldocspl1", test_alldocspl1 },
00276             { "alldocspl2", test_alldocspl2 },
00277             { "totaldoclen1", test_totaldoclen1 },
00278             { "modifiedpostlist1", test_modifiedpostlist1 },
00279             { "replacedoc8", test_replacedoc8 },
00280             { "metadata1", test_metadata1 },
00281             { "metadata5", test_metadata5 },
00282             { "modtermwdf1", test_modtermwdf1 },
00283             { "bigoaddvalue1", test_bigoaddvalue1 },
00284             { "adddoc1", test_adddoc1 },
00285             { "adddoc2", test_adddoc2 },
00286             { "adddoc3", test_adddoc3 },
00287             { "adddoc4", test_adddoc4 },
00288             { "adddoc5", test_adddoc5 },
00289             { "adddoc6", test_adddoc6 },
00290             { "implicitendsession1", test_implicitendsession1 },
00291             { "databaseassign1", test_databaseassign1 },
00292             { "deldoc1", test_deldoc1 },
00293             { "deldoc2", test_deldoc2 },
00294             { "deldoc3", test_deldoc3 },
00295             { "deldoc4", test_deldoc4 },
00296             { "deldoc5", test_deldoc5 },
00297             { "deldoc6", test_deldoc6 },
00298             { "replacedoc1", test_replacedoc1 },
00299             { "replacedoc2", test_replacedoc2 },
00300             { "replacedoc3", test_replacedoc3 },
00301             { "replacedoc4", test_replacedoc4 },
00302             { "replacedoc5", test_replacedoc5 },
00303             { "replacedoc6", test_replacedoc6 },
00304             { "uniqueterm1", test_uniqueterm1 },
00305             { "allpostlist2", test_allpostlist2 },
00306             { "emptyterm2", test_emptyterm2 },
00307             { "phraseorneartoand1", test_phraseorneartoand1 },
00308             { "longpositionlist1", test_longpositionlist1 },
00309             { "consistency2", test_consistency2 },
00310             { "crashrecovery1", test_crashrecovery1 },
00311             { "nomoredocids1", test_nomoredocids1 },
00312             { "synonymitor1", test_synonymitor1 },
00313             { "termtoolong1", test_termtoolong1 },
00314             { "postlist7", test_postlist7 },
00315             { 0, 0 }
00316         };
00317         result = max(result, test_driver::run(tests));
00318     }
00319     if (writable&&!inmemory) {
00320         static const test_desc tests[] = {
00321             { "qpmemoryleak1", test_qpmemoryleak1 },
00322             { 0, 0 }
00323         };
00324         result = max(result, test_driver::run(tests));
00325     }
00326     if (writable&&!inmemory&&!remote) {
00327         static const test_desc tests[] = {
00328             { "databasemodified1", test_databasemodified1 },
00329             { "msize1", test_msize1 },
00330             { "msize2", test_msize2 },
00331             { 0, 0 }
00332         };
00333         result = max(result, test_driver::run(tests));
00334     }
00335     if (writable&&!inmemory&&!remote&&!quartz) {
00336         static const test_desc tests[] = {
00337             { "replacedoc7", test_replacedoc7 },
00338             { 0, 0 }
00339         };
00340         result = max(result, test_driver::run(tests));
00341     }
00342     if (writable&&!remote) {
00343         static const test_desc tests[] = {
00344             { "sortfunctor2", test_sortfunctor2 },
00345             { 0, 0 }
00346         };
00347         result = max(result, test_driver::run(tests));
00348     }
00349     if (writable&&flint) {
00350         static const test_desc tests[] = {
00351             { "lazytablebug1", test_lazytablebug1 },
00352             { 0, 0 }
00353         };
00354         result = max(result, test_driver::run(tests));
00355     }
00356     if (writable&&metadata) {
00357         static const test_desc tests[] = {
00358             { "writeread1", test_writeread1 },
00359             { 0, 0 }
00360         };
00361         result = max(result, test_driver::run(tests));
00362     }
00363     test_driver::report(test_driver::subtotal,
00364                         string("backend ") + backendmanager->get_dbtype());
00365     test_driver::total += test_driver::subtotal;
00366     test_driver::subtotal.reset();

Documentation for Xapian (version 1.0.20).
Generated on 28 Apr 2010 by Doxygen 1.5.2.