X-Git-Url: http://jsfdemo.indexdata.com/?a=blobdiff_plain;f=src%2Ftest_relevance.c;h=b3707f78d40b9d5b3ce215c583446607046518a7;hb=67ebd94d4bd94b8ade005dfa371638e0855f84d1;hp=d1077a63a26742f6243ffda4c1fde3888d283f37;hpb=758cd20c5d2f16e02370fbbd42a15fc4d13baa4b;p=pazpar2-moved-to-github.git diff --git a/src/test_relevance.c b/src/test_relevance.c index d1077a6..b3707f7 100644 --- a/src/test_relevance.c +++ b/src/test_relevance.c @@ -1,7 +1,5 @@ -/* $Id: test_relevance.c,v 1.12 2007-04-26 21:31:05 marc Exp $ - Copyright (c) 2006-2007, Index Data. - -This file is part of Pazpar2. +/* This file is part of Pazpar2. + Copyright (C) 2006-2008 Index Data Pazpar2 is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free @@ -14,13 +12,13 @@ FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License -along with Pazpar2; see the file LICENSE. If not, write to the -Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA -02111-1307, USA. - */ +along with this program; if not, write to the Free Software +Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + +*/ #if HAVE_CONFIG_H -#include "cconfig.h" +#include #endif #define USE_TIMING 0 @@ -31,11 +29,12 @@ Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA #include -#include "config.h" +#include "pazpar2_config.h" #include "relevance.h" #include "record.h" #include "reclists.h" +#if 0 void test_relevance_7bit(int argc, char **argv) { @@ -165,7 +164,9 @@ void test_relevance_7bit(int argc, char **argv) // now sorting according to sorting criteria, here ascending title struct reclist_sortparms *sort_parms = 0; + reclist_sortparms_insert(nmem, &sort_parms, service, "title", 1); + //reclist_sortparms_insert(nmem, &sort_parms, service, "relevance", 1); // crashes with a fat segmentation fault! To be traced tomorrow @@ -196,6 +197,7 @@ void test_relevance_7bit(int argc, char **argv) //YAZ_CHECK_EQ(0, 1); } +#endif int main(int argc, char **argv) { @@ -203,7 +205,7 @@ int main(int argc, char **argv) YAZ_CHECK_LOG(); - test_relevance_7bit(argc, argv); + //test_relevance_7bit(argc, argv); YAZ_CHECK_TERM;