diff --git a/UnitTests/Cambridge/Runner.cpp b/UnitTests/Cambridge/Runner.cpp new file mode 100644 index 0000000000..bd7530620a --- /dev/null +++ b/UnitTests/Cambridge/Runner.cpp @@ -0,0 +1,3 @@ +#define BOOST_TEST_DYN_LINK +#define BOOST_TEST_MODULE "C Unit Tests for Cambridge" +#include diff --git a/UnitTests/georeg.c b/UnitTests/Cambridge/georeg.cpp similarity index 81% rename from UnitTests/georeg.c rename to UnitTests/Cambridge/georeg.cpp index 91a7234b07..637dbef151 100644 --- a/UnitTests/georeg.c +++ b/UnitTests/Cambridge/georeg.cpp @@ -36,13 +36,18 @@ //////////////////////////////////////////////////////////////////////////////// /* regression testing program for GeoIndex module */ -/* R.A.P. 2.0 4.12.2011 */ +/* R.A.P. 2.1 8.1.2012 */ + +#include -#ifdef GEO_TRIAGENS #include "GeoIndex/GeoIndex.h" -#else -#include "GeoIndex2.h" -#endif +#include "Basics/StringUtils.h" + +using namespace triagens::basics; + +// ----------------------------------------------------------------------------- +// --SECTION-- private variables +// ----------------------------------------------------------------------------- int errors; @@ -67,73 +72,41 @@ int np4[4]={2838,5116,5180,9869}; int hs4[4]={33972992,9770664,11661062,28398735}; int hs5[4]={79685116,67516870,19274248,35037618}; -void icheck(int e, int a, int b) -{ - if(a==b) return; - errors++; - printf("Error %d, should be %d, was %d\n",e,a,b); +// ----------------------------------------------------------------------------- +// --SECTION-- private functions +// ----------------------------------------------------------------------------- + +static void MyFree (GeoIndex * gi) { + int x; + x=GeoIndex_INDEXVALID(gi); + + BOOST_CHECK_EQUAL(x, 0); + + GeoIndex_free(gi); } -void pcheck(int e, char * a, char * b) -{ - if(a==b) return; - errors++; - if(b>a) printf("Error %d, pointer was %ld too high\n",e,(long)(b-a)); - if(ba+bar) - { - errors++; - printf("Error %d, should be %16.9f, was %16.9f\n",e,a,b); - } -} - -void gccheck(int e, GeoCoordinates * gc, int ct, char * bytes) -{ +int GCCHECK (GeoCoordinates * gc, int ct, char const * bytes) { int i,good; - icheck(e,ct,gc->length); + for(i=0;i<1000;i++) ix[i]=0; - for(i=0;ilength;i++) + for(i=0;i<(int) gc->length;i++) *((char *)gc->coordinates[i].data)=1; for(i=0;i<25;i++) iy[i]='A'+ix[4*i]+2*ix[4*i+1]+4*ix[4*i+2]+8*ix[4*i+3]; iy[25]=0; good=1; for(i=0;i<25;i++) if(bytes[i]!=iy[i]) good=0; - if(good==0) - { - errors++; - printf("Error %d, should be %s, was %s\n",e+1,bytes,iy); - } + GeoIndex_CoordinatesFree(gc); + + return good; } -void gicheck(int e, GeoIndex* gi) -{ - int r; - r=0; -#ifdef DEBUG - r = GeoIndex_INDEXVALID(gi); -#endif - if(r==0) return; - errors++; - printf("Error %d, Index invalidity code %d\n",e,r); -} - -void gcmass(int e, GeoCoordinates * gc, int ct, int hash) -{ +int GCMASS (GeoCoordinates * gc, int ct, int hash) { int i,j; - icheck(e,ct,gc->length); + for(i=0;i<1000;i++) ix[i]=0; - for(i=0;ilength;i++) + for(i=0;i<(int) gc->length;i++) (*((char *)gc->coordinates[i].data))++; j=0; for(i=0;i<1000;i++) @@ -142,10 +115,61 @@ void gcmass(int e, GeoCoordinates * gc, int ct, int hash) j=j*7; j=j%123456791; } - icheck(e+1,hash,j); GeoIndex_CoordinatesFree(gc); + + return hash == j ? 1 : 0; } +double tolerance (double a, double b, double c) { + if (c == 0.0) { + return 0.00000001; + } + else { + if (a == 0.0) { + if (b == 0.0) { + return 0.001; + } + else { + return c / b * 100.0; + } + } + else { + return c / a * 100.0; + } + } +} + +#define icheck(e, a, b) \ + BOOST_TEST_CHECKPOINT(StringUtils::itoa((e))); \ + BOOST_CHECK_EQUAL((a), (b)) + +#define pcheck(e, a, b) \ + BOOST_TEST_CHECKPOINT(StringUtils::itoa((e))); \ + BOOST_CHECK_EQUAL((a), (b)) + +#define dcheck(e, a, b, c) \ + BOOST_TEST_CHECKPOINT(StringUtils::itoa((e))); \ + BOOST_CHECK_CLOSE((a), (b), tolerance((a),(b),(c))) + +#define gccheck(e, gc, ct, bytes) \ + BOOST_TEST_CHECKPOINT(StringUtils::itoa((e))); \ + BOOST_CHECK_EQUAL((ct), (gc)->length); \ + BOOST_CHECK_EQUAL(GCCHECK((gc), (ct), (bytes)), 1) + +#ifdef DEBUG +#define gicheck(e, gi) \ + BOOST_TEST_CHECKPOINT(StringUtils::itoa((e))); \ + BOOST_CHECK_EQUAL(GeoIndex_INDEXVALID((gi)), 0) +#else +#define gicheck(e, gi) /* do nothing */ +#endif + +#define gcmass(e, gc, ct, hash) \ + BOOST_TEST_CHECKPOINT(StringUtils::itoa((e))); \ + BOOST_CHECK_EQUAL((ct), (gc)->length); \ + BOOST_TEST_CHECKPOINT(StringUtils::itoa((e + 1))); \ + BOOST_CHECK_EQUAL(GCMASS((gc), (ct), (hash)), 1) + void coonum(GeoCoordinate * gc, int num) { double lat,lon; @@ -196,7 +220,42 @@ void coonum(GeoCoordinate * gc, int num) } } -int main(int argc, char ** argv) +void litnum(GeoCoordinate * gc, int num) +{ + coonum(gc,num); + gc->data=&ix[num%97]; + return; +} + +// ----------------------------------------------------------------------------- +// --SECTION-- setup / tear-down +// ----------------------------------------------------------------------------- + +struct GeoIndexSetup { + GeoIndexSetup () { + BOOST_TEST_MESSAGE("setup GeoIndex"); + } + + ~GeoIndexSetup () { + BOOST_TEST_MESSAGE("tear-down GeoIndex"); + } +}; + +// ----------------------------------------------------------------------------- +// --SECTION-- test suite +// ----------------------------------------------------------------------------- + +//////////////////////////////////////////////////////////////////////////////// +/// @brief setup +//////////////////////////////////////////////////////////////////////////////// + +BOOST_FIXTURE_TEST_SUITE(GeoIndexTest, GeoIndexSetup) + +//////////////////////////////////////////////////////////////////////////////// +/// @brief main test +//////////////////////////////////////////////////////////////////////////////// + +void runTest (int mode) { GeoIndex * gi; GeoCoordinate gcp; @@ -204,14 +263,7 @@ int main(int argc, char ** argv) GeoCoordinates * list1; double la,lo; double d1; - int i,j,r,mode; - - if(argc!=2) - { - printf("usage georeg to run test n\n"); - exit(1); - } - mode=atoi(argv[1]); + int i,j,r; errors=0; @@ -221,26 +273,26 @@ int main(int argc, char ** argv) /* 3 is Auckland -36.916667 +174.783333 */ /* 4 is Jo'burg -26.166667 +28.033333 */ - gcp1.latitude = 51.5; - gcp1.longitude = -0.166666; - gcp2.latitude = 21.306111; - gcp2.longitude = -157.859722; - d1 = GeoIndex_distance(&gcp1, &gcp2); - dcheck(1,11624035.0, d1, 11000.0); - gcp3.latitude = -36.916667; - gcp3.longitude = 174.783333; - d1 = GeoIndex_distance(&gcp1, &gcp3); - dcheck(2,18332948.0, d1, 18000.0); - gcp4.latitude = -26.166667; - gcp4.longitude = +28.033333; - d1 = GeoIndex_distance(&gcp1, &gcp4); - dcheck(3,9059681.0, d1, 9000.0); - d1 = GeoIndex_distance(&gcp2, &gcp3); - dcheck(4,7076628.0, d1, 7000.0); - d1 = GeoIndex_distance(&gcp2, &gcp4); - dcheck(5,19194970.0, d1, 19000.0); - d1 = GeoIndex_distance(&gcp3, &gcp4); - dcheck(6,12177171.0, d1, 12000.0); + gcp1.latitude = 51.5; + gcp1.longitude = -0.166666; + gcp2.latitude = 21.306111; + gcp2.longitude = -157.859722; + d1 = GeoIndex_distance(&gcp1, &gcp2); + dcheck(1,11624035.0, d1, 11000.0); + gcp3.latitude = -36.916667; + gcp3.longitude = 174.783333; + d1 = GeoIndex_distance(&gcp1, &gcp3); + dcheck(2,18332948.0, d1, 18000.0); + gcp4.latitude = -26.166667; + gcp4.longitude = +28.033333; + d1 = GeoIndex_distance(&gcp1, &gcp4); + dcheck(3,9059681.0, d1, 9000.0); + d1 = GeoIndex_distance(&gcp2, &gcp3); + dcheck(4,7076628.0, d1, 7000.0); + d1 = GeoIndex_distance(&gcp2, &gcp4); + dcheck(5,19194970.0, d1, 19000.0); + d1 = GeoIndex_distance(&gcp3, &gcp4); + dcheck(6,12177171.0, d1, 12000.0); /* 10 - 19 */ @@ -268,8 +320,8 @@ int main(int argc, char ** argv) list1 = GeoIndex_NearestCountPoints(gi,&gcp,1); gccheck(13,list1, 1,"AAAAAAAAAAAAAAAABAAAAAAAA"); gicheck(14,gi); - - GeoIndex_free(gi); +/*GeoIndex_INDEXDUMP(gi,stdout);*/ + MyFree(gi); /* 20 - 39 */ @@ -312,7 +364,7 @@ int main(int argc, char ** argv) icheck(29,0,r); gicheck(30,gi); - GeoIndex_free(gi); + MyFree(gi); /* */ /* 50 - 69 */ /* ========= */ @@ -391,7 +443,7 @@ int main(int argc, char ** argv) gicheck(66,gi); - GeoIndex_free(gi); + MyFree(gi); /* */ /* 70 - 99 */ @@ -520,7 +572,7 @@ int main(int argc, char ** argv) gccheck(97,list1, 7,"KPBAAAAAAAAAAAAAAAAAAAAAA"); gicheck(98,gi); - GeoIndex_free(gi); + MyFree(gi); /* */ /* 100 - 199 */ @@ -593,7 +645,7 @@ int main(int argc, char ** argv) gccheck(150,list1,16,"AAAAAAAAAAAAMPAPPDAAAAAAA"); gicheck(151,gi); - GeoIndex_free(gi); + MyFree(gi); /* */ /* 200 - 299 */ @@ -787,7 +839,7 @@ int main(int argc, char ** argv) gccheck(265,list1, 5,"ODAAAAAAAAAAAAAAAAAAAAAAA"); gicheck(266,gi); - GeoIndex_free(gi); + MyFree(gi); /* */ /* 300 - 399 */ @@ -978,7 +1030,7 @@ int main(int argc, char ** argv) if(mode==2) { - printf("start of 5000000 x points within radius 127 Km (3 found)\n"); + BOOST_TEST_MESSAGE("start of 5000000 x points within radius 127 Km (3 found)"); for(i=0;i<10000;i++) { for(j=1;j<=500;j++) @@ -988,12 +1040,12 @@ int main(int argc, char ** argv) GeoIndex_CoordinatesFree(list1); } } - printf("End of timing test\n"); + BOOST_TEST_MESSAGE("End of timing test"); } if(mode==3) { - printf("start of 5000000 x points by count (2)\n"); + BOOST_TEST_MESSAGE("start of 5000000 x points by count (2)"); for(i=0;i<10000;i++) { for(j=1;j<=500;j++) @@ -1003,12 +1055,12 @@ int main(int argc, char ** argv) GeoIndex_CoordinatesFree(list1); } } - printf("End of timing test\n"); + BOOST_TEST_MESSAGE("End of timing test"); } gicheck(390,gi); - GeoIndex_free(gi); + MyFree(gi); /* */ /* 400 - 499 */ @@ -1036,14 +1088,13 @@ int main(int argc, char ** argv) if(lo>180) lo-=360.0; } list1 = GeoIndex_PointsWithinRadius(gi,&gcp,9800000.0); - for(j=0;jlength;j++) /* delete before freeing list1! */ + for(j=0;j<(int) list1->length;j++) /* delete before freeing list1! */ { r=GeoIndex_remove(gi,list1->coordinates+j); } gcmass(400+5*i,list1, np[i], hs[i]); } - - GeoIndex_free(gi); + MyFree(gi); /* */ /* 500 - 599 */ @@ -1075,9 +1126,9 @@ int main(int argc, char ** argv) } } - GeoIndex_free(gi); + MyFree(gi); /* */ -/* 600 - 610 */ +/* 600 - 649 */ /* ========= */ /* */ @@ -1105,9 +1156,50 @@ int main(int argc, char ** argv) gcmass(605+4*(i/4541672),list1,i/1832703,hs5[i/4541672 - 1]); } } - GeoIndex_free(gi); + MyFree(gi); } /* */ +/* 650 - 699 */ +/* ========= */ +/* */ + +/* This set of tests puts in a few points, looks */ +/* then puts in loads and deletes them again and */ +/* looks again. Testing deletion balancing */ + + gi=GeoIndex_new(); + for(i=1;i<13;i++) /* put in points 1-12 */ + { + litnum(&gcp,i); + r = GeoIndex_insert(gi,&gcp); + icheck(651,0,r); + } + litnum(&gcp,17); + list1 = GeoIndex_PointsWithinRadius(gi,&gcp,984000.0); + gccheck(652,list1, 5,"KCKAAAAAAAAAAAAAAAAAAAAAA"); + litnum(&gcp,16); + list1 = GeoIndex_NearestCountPoints(gi,&gcp,4); + gccheck(654,list1, 4,"EBBBAAAAAAAAAAAAAAAAAAAAA"); + for(i=100;i<80000;i++) /* put in points 100-80000 */ + { + litnum(&gcp,i); + r = GeoIndex_insert(gi,&gcp); + icheck(655,0,r); + } + for(i=100;i<80000;i++) /* remove them again */ + { + litnum(&gcp,i); + r = GeoIndex_remove(gi,&gcp); + icheck(656,0,r); + } + litnum(&gcp,17); /* see if it is all still OK */ + list1 = GeoIndex_PointsWithinRadius(gi,&gcp,984000.0); + gccheck(657,list1, 5,"KCKAAAAAAAAAAAAAAAAAAAAAA"); + litnum(&gcp,16); + list1 = GeoIndex_NearestCountPoints(gi,&gcp,4); + gccheck(659,list1, 4,"EBBBAAAAAAAAAAAAAAAAAAAAA"); + MyFree(gi); +/* */ /* 900 - 999 */ /* ========= */ /* */ @@ -1136,17 +1228,45 @@ int main(int argc, char ** argv) list1 = GeoIndex_PointsWithinRadius(gi,&gcp,30000000.0); gcmass(901,list1, 49, 94065911); - GeoIndex_free(gi); - - if(errors==0) { - printf("Georeg Regression Program succeeded\n"); - return 0; - } - else { - printf("Georeg Regression Program failed with %d errors\n", - errors); - return 1; - } + MyFree(gi); } -/* end of georeg.c */ +//////////////////////////////////////////////////////////////////////////////// +/// @brief tst_geo1 +//////////////////////////////////////////////////////////////////////////////// + +BOOST_AUTO_TEST_CASE (tst_geo1) { + runTest(1); +} + +//////////////////////////////////////////////////////////////////////////////// +/// @brief tst_geo2 +//////////////////////////////////////////////////////////////////////////////// + +BOOST_AUTO_TEST_CASE (tst_geo2) { + runTest(2); +} + +//////////////////////////////////////////////////////////////////////////////// +/// @brief tst_geo3 +//////////////////////////////////////////////////////////////////////////////// + +BOOST_AUTO_TEST_CASE (tst_geo3) { + runTest(3); +} + +//////////////////////////////////////////////////////////////////////////////// +/// @brief tst_geo4 +//////////////////////////////////////////////////////////////////////////////// + +BOOST_AUTO_TEST_CASE (tst_geo4) { + runTest(4); +} + +//////////////////////////////////////////////////////////////////////////////// +/// @brief generate tests +//////////////////////////////////////////////////////////////////////////////// + +BOOST_AUTO_TEST_SUITE_END () + +/* end of georeg.cpp */ diff --git a/UnitTests/Makefile.am b/UnitTests/Makefile.am deleted file mode 100644 index 853b862f45..0000000000 --- a/UnitTests/Makefile.am +++ /dev/null @@ -1,11 +0,0 @@ -SUBDIRS = . - -PID := $(shell echo $$PPID) -TMP_DIR := "/tmp/avocadodb.$(PID)" -PID_FILE := "/tmp//avocadodb.$(PID).pid" - -.PHONY: start-avocadodb stop-avocadodb - -start-avocadodb: - echo $(PID) - echo $(TMP_DIR) diff --git a/UnitTests/Makefile.in b/UnitTests/Makefile.in deleted file mode 100644 index 791b904998..0000000000 --- a/UnitTests/Makefile.in +++ /dev/null @@ -1,619 +0,0 @@ -# Makefile.in generated by automake 1.11.1 from Makefile.am. -# @configure_input@ - -# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, -# 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation, -# Inc. -# This Makefile.in is free software; the Free Software Foundation -# gives unlimited permission to copy and/or distribute it, -# with or without modifications, as long as this notice is preserved. - -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY, to the extent permitted by law; without -# even the implied warranty of MERCHANTABILITY or FITNESS FOR A -# PARTICULAR PURPOSE. - -@SET_MAKE@ -VPATH = @srcdir@ -pkgdatadir = $(datadir)/@PACKAGE@ -pkgincludedir = $(includedir)/@PACKAGE@ -pkglibdir = $(libdir)/@PACKAGE@ -pkglibexecdir = $(libexecdir)/@PACKAGE@ -am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd -install_sh_DATA = $(install_sh) -c -m 644 -install_sh_PROGRAM = $(install_sh) -c -install_sh_SCRIPT = $(install_sh) -c -INSTALL_HEADER = $(INSTALL_DATA) -transform = $(program_transform_name) -NORMAL_INSTALL = : -PRE_INSTALL = : -POST_INSTALL = : -NORMAL_UNINSTALL = : -PRE_UNINSTALL = : -POST_UNINSTALL = : -build_triplet = @build@ -host_triplet = @host@ -target_triplet = @target@ -subdir = UnitTests -DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in -ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 -am__aclocal_m4_deps = $(top_srcdir)/m4/acx_pthread.m4 \ - $(top_srcdir)/m4/ax_boost_base.m4 \ - $(top_srcdir)/m4/ax_cxx_check_lib.m4 \ - $(top_srcdir)/m4/configure.basics \ - $(top_srcdir)/m4/configure.static \ - $(top_srcdir)/m4/configure.32bit \ - $(top_srcdir)/m4/configure.logging \ - $(top_srcdir)/m4/configure.largefile \ - $(top_srcdir)/m4/configure.threads \ - $(top_srcdir)/m4/configure.dot \ - $(top_srcdir)/m4/configure.coverage \ - $(top_srcdir)/m4/configure.flex \ - $(top_srcdir)/m4/configure.bison \ - $(top_srcdir)/m4/external.math \ - $(top_srcdir)/m4/external.ncurses \ - $(top_srcdir)/m4/external.readline \ - $(top_srcdir)/m4/external.openssl \ - $(top_srcdir)/m4/all-in-one.libev \ - $(top_srcdir)/m4/all-in-one.v8 $(top_srcdir)/m4/external.libev \ - $(top_srcdir)/m4/external.v8 $(top_srcdir)/m4/all-in-one.mruby \ - $(top_srcdir)/m4/all-in-one.boost \ - $(top_srcdir)/m4/external.boost \ - $(top_srcdir)/m4/configure.information \ - $(top_srcdir)/configure.ac -am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ - $(ACLOCAL_M4) -mkinstalldirs = $(install_sh) -d -CONFIG_HEADER = $(top_builddir)/config/config.h \ - $(top_builddir)/BasicsC/local-configuration.h -CONFIG_CLEAN_FILES = -CONFIG_CLEAN_VPATH_FILES = -AM_V_GEN = $(am__v_GEN_$(V)) -am__v_GEN_ = $(am__v_GEN_$(AM_DEFAULT_VERBOSITY)) -am__v_GEN_0 = @echo " GEN " $@; -AM_V_at = $(am__v_at_$(V)) -am__v_at_ = $(am__v_at_$(AM_DEFAULT_VERBOSITY)) -am__v_at_0 = @ -SOURCES = -DIST_SOURCES = -RECURSIVE_TARGETS = all-recursive check-recursive dvi-recursive \ - html-recursive info-recursive install-data-recursive \ - install-dvi-recursive install-exec-recursive \ - install-html-recursive install-info-recursive \ - install-pdf-recursive install-ps-recursive install-recursive \ - installcheck-recursive installdirs-recursive pdf-recursive \ - ps-recursive uninstall-recursive -RECURSIVE_CLEAN_TARGETS = mostlyclean-recursive clean-recursive \ - distclean-recursive maintainer-clean-recursive -AM_RECURSIVE_TARGETS = $(RECURSIVE_TARGETS:-recursive=) \ - $(RECURSIVE_CLEAN_TARGETS:-recursive=) tags TAGS ctags CTAGS \ - distdir -ETAGS = etags -CTAGS = ctags -DIST_SUBDIRS = $(SUBDIRS) -DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) -am__relativize = \ - dir0=`pwd`; \ - sed_first='s,^\([^/]*\)/.*$$,\1,'; \ - sed_rest='s,^[^/]*/*,,'; \ - sed_last='s,^.*/\([^/]*\)$$,\1,'; \ - sed_butlast='s,/*[^/]*$$,,'; \ - while test -n "$$dir1"; do \ - first=`echo "$$dir1" | sed -e "$$sed_first"`; \ - if test "$$first" != "."; then \ - if test "$$first" = ".."; then \ - dir2=`echo "$$dir0" | sed -e "$$sed_last"`/"$$dir2"; \ - dir0=`echo "$$dir0" | sed -e "$$sed_butlast"`; \ - else \ - first2=`echo "$$dir2" | sed -e "$$sed_first"`; \ - if test "$$first2" = "$$first"; then \ - dir2=`echo "$$dir2" | sed -e "$$sed_rest"`; \ - else \ - dir2="../$$dir2"; \ - fi; \ - dir0="$$dir0"/"$$first"; \ - fi; \ - fi; \ - dir1=`echo "$$dir1" | sed -e "$$sed_rest"`; \ - done; \ - reldir="$$dir2" -ACLOCAL = @ACLOCAL@ -AMTAR = @AMTAR@ -AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@ -AUTOCONF = @AUTOCONF@ -AUTOHEADER = @AUTOHEADER@ -AUTOMAKE = @AUTOMAKE@ -AWK = @AWK@ -BISON = @BISON@ -BOOST_CPPFLAGS = @BOOST_CPPFLAGS@ -BOOST_LDFLAGS = @BOOST_LDFLAGS@ -BOOST_LIBS = @BOOST_LIBS@ -BUILD_H = @BUILD_H@ -CC = @CC@ -CCDEPMODE = @CCDEPMODE@ -CFLAGS = @CFLAGS@ -CPP = @CPP@ -CPPFLAGS = @CPPFLAGS@ -CXX = @CXX@ -CXXCPP = @CXXCPP@ -CXXDEPMODE = @CXXDEPMODE@ -CXXFLAGS = @CXXFLAGS@ -CYGPATH_W = @CYGPATH_W@ -DEFS = @DEFS@ -DEPDIR = @DEPDIR@ -DOT_PATH = @DOT_PATH@ -ECHO_C = @ECHO_C@ -ECHO_N = @ECHO_N@ -ECHO_T = @ECHO_T@ -EGREP = @EGREP@ -EXEEXT = @EXEEXT@ -GCOV_CFLAGS = @GCOV_CFLAGS@ -GCOV_CXXFLAGS = @GCOV_CXXFLAGS@ -GCOV_LDFLAGS = @GCOV_LDFLAGS@ -GCOV_LIBS = @GCOV_LIBS@ -GREP = @GREP@ -HAVE_DOT = @HAVE_DOT@ -INSTALL = @INSTALL@ -INSTALL_DATA = @INSTALL_DATA@ -INSTALL_PROGRAM = @INSTALL_PROGRAM@ -INSTALL_SCRIPT = @INSTALL_SCRIPT@ -INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ -LDFLAGS = @LDFLAGS@ -LEX = @LEX@ -LEXLIB = @LEXLIB@ -LEX_OUTPUT_ROOT = @LEX_OUTPUT_ROOT@ -LIBEV_CPPFLAGS = @LIBEV_CPPFLAGS@ -LIBEV_LDFLAGS = @LIBEV_LDFLAGS@ -LIBEV_LIBS = @LIBEV_LIBS@ -LIBOBJS = @LIBOBJS@ -LIBS = @LIBS@ -LN_S = @LN_S@ -LTLIBOBJS = @LTLIBOBJS@ -MAKEINFO = @MAKEINFO@ -MATH_CPPFLAGS = @MATH_CPPFLAGS@ -MATH_LDFLAGS = @MATH_LDFLAGS@ -MATH_LIBS = @MATH_LIBS@ -MKDIR_P = @MKDIR_P@ -MRUBY_CPPFLAGS = @MRUBY_CPPFLAGS@ -MRUBY_LDFLAGS = @MRUBY_LDFLAGS@ -MRUBY_LIBS = @MRUBY_LIBS@ -NCURSES_CONFIG = @NCURSES_CONFIG@ -NCURSES_CPPFLAGS = @NCURSES_CPPFLAGS@ -NCURSES_LDFLAGS = @NCURSES_LDFLAGS@ -NCURSES_LIBS = @NCURSES_LIBS@ -OBJEXT = @OBJEXT@ -OPENSSL_CPPFLAGS = @OPENSSL_CPPFLAGS@ -OPENSSL_LDFLAGS = @OPENSSL_LDFLAGS@ -OPENSSL_LIBS = @OPENSSL_LIBS@ -PACKAGE = @PACKAGE@ -PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ -PACKAGE_NAME = @PACKAGE_NAME@ -PACKAGE_STRING = @PACKAGE_STRING@ -PACKAGE_TARNAME = @PACKAGE_TARNAME@ -PACKAGE_URL = @PACKAGE_URL@ -PACKAGE_VERSION = @PACKAGE_VERSION@ -PATH_SEPARATOR = @PATH_SEPARATOR@ -PTHREAD_CC = @PTHREAD_CC@ -PTHREAD_CFLAGS = @PTHREAD_CFLAGS@ -PTHREAD_LIBS = @PTHREAD_LIBS@ -RANLIB = @RANLIB@ -READLINE_CPPFLAGS = @READLINE_CPPFLAGS@ -READLINE_LDFLAGS = @READLINE_LDFLAGS@ -READLINE_LIBS = @READLINE_LIBS@ -SET_MAKE = @SET_MAKE@ -SHELL = @SHELL@ -STRIP = @STRIP@ -V8_CPPFLAGS = @V8_CPPFLAGS@ -V8_LDFLAGS = @V8_LDFLAGS@ -V8_LIBS = @V8_LIBS@ -V8_TARGET = @V8_TARGET@ -VERSION = @VERSION@ -abs_builddir = @abs_builddir@ -abs_srcdir = @abs_srcdir@ -abs_top_builddir = @abs_top_builddir@ -abs_top_srcdir = @abs_top_srcdir@ -ac_ct_CC = @ac_ct_CC@ -ac_ct_CXX = @ac_ct_CXX@ -acx_pthread_config = @acx_pthread_config@ -am__include = @am__include@ -am__leading_dot = @am__leading_dot@ -am__quote = @am__quote@ -am__tar = @am__tar@ -am__untar = @am__untar@ -bindir = @bindir@ -build = @build@ -build_alias = @build_alias@ -build_cpu = @build_cpu@ -build_os = @build_os@ -build_vendor = @build_vendor@ -builddir = @builddir@ -datadir = @datadir@ -datarootdir = @datarootdir@ -docdir = @docdir@ -dvidir = @dvidir@ -exec_prefix = @exec_prefix@ -host = @host@ -host_alias = @host_alias@ -host_cpu = @host_cpu@ -host_os = @host_os@ -host_vendor = @host_vendor@ -htmldir = @htmldir@ -includedir = @includedir@ -infodir = @infodir@ -install_sh = @install_sh@ -libdir = @libdir@ -libexecdir = @libexecdir@ -localedir = @localedir@ -localstatedir = @localstatedir@ -mandir = @mandir@ -mkdir_p = @mkdir_p@ -oldincludedir = @oldincludedir@ -pdfdir = @pdfdir@ -prefix = @prefix@ -program_transform_name = @program_transform_name@ -psdir = @psdir@ -sbindir = @sbindir@ -sharedstatedir = @sharedstatedir@ -srcdir = @srcdir@ -sysconfdir = @sysconfdir@ -target = @target@ -target_alias = @target_alias@ -target_cpu = @target_cpu@ -target_os = @target_os@ -target_vendor = @target_vendor@ -top_build_prefix = @top_build_prefix@ -top_builddir = @top_builddir@ -top_srcdir = @top_srcdir@ -SUBDIRS = . -PID := $(shell echo $$PPID) -TMP_DIR := "/tmp/avocadodb.$(PID)" -PID_FILE := "/tmp//avocadodb.$(PID).pid" -all: all-recursive - -.SUFFIXES: -$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) - @for dep in $?; do \ - case '$(am__configure_deps)' in \ - *$$dep*) \ - ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \ - && { if test -f $@; then exit 0; else break; fi; }; \ - exit 1;; \ - esac; \ - done; \ - echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign UnitTests/Makefile'; \ - $(am__cd) $(top_srcdir) && \ - $(AUTOMAKE) --foreign UnitTests/Makefile -.PRECIOUS: Makefile -Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status - @case '$?' in \ - *config.status*) \ - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ - *) \ - echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ - cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ - esac; - -$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh - -$(top_srcdir)/configure: $(am__configure_deps) - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh -$(ACLOCAL_M4): $(am__aclocal_m4_deps) - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh -$(am__aclocal_m4_deps): - -# This directory's subdirectories are mostly independent; you can cd -# into them and run `make' without going through this Makefile. -# To change the values of `make' variables: instead of editing Makefiles, -# (1) if the variable is set in `config.status', edit `config.status' -# (which will cause the Makefiles to be regenerated when you run `make'); -# (2) otherwise, pass the desired values on the `make' command line. -$(RECURSIVE_TARGETS): - @fail= failcom='exit 1'; \ - for f in x $$MAKEFLAGS; do \ - case $$f in \ - *=* | --[!k]*);; \ - *k*) failcom='fail=yes';; \ - esac; \ - done; \ - dot_seen=no; \ - target=`echo $@ | sed s/-recursive//`; \ - list='$(SUBDIRS)'; for subdir in $$list; do \ - echo "Making $$target in $$subdir"; \ - if test "$$subdir" = "."; then \ - dot_seen=yes; \ - local_target="$$target-am"; \ - else \ - local_target="$$target"; \ - fi; \ - ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \ - || eval $$failcom; \ - done; \ - if test "$$dot_seen" = "no"; then \ - $(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \ - fi; test -z "$$fail" - -$(RECURSIVE_CLEAN_TARGETS): - @fail= failcom='exit 1'; \ - for f in x $$MAKEFLAGS; do \ - case $$f in \ - *=* | --[!k]*);; \ - *k*) failcom='fail=yes';; \ - esac; \ - done; \ - dot_seen=no; \ - case "$@" in \ - distclean-* | maintainer-clean-*) list='$(DIST_SUBDIRS)' ;; \ - *) list='$(SUBDIRS)' ;; \ - esac; \ - rev=''; for subdir in $$list; do \ - if test "$$subdir" = "."; then :; else \ - rev="$$subdir $$rev"; \ - fi; \ - done; \ - rev="$$rev ."; \ - target=`echo $@ | sed s/-recursive//`; \ - for subdir in $$rev; do \ - echo "Making $$target in $$subdir"; \ - if test "$$subdir" = "."; then \ - local_target="$$target-am"; \ - else \ - local_target="$$target"; \ - fi; \ - ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \ - || eval $$failcom; \ - done && test -z "$$fail" -tags-recursive: - list='$(SUBDIRS)'; for subdir in $$list; do \ - test "$$subdir" = . || ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) tags); \ - done -ctags-recursive: - list='$(SUBDIRS)'; for subdir in $$list; do \ - test "$$subdir" = . || ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) ctags); \ - done - -ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) - list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ - unique=`for i in $$list; do \ - if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ - done | \ - $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ - END { if (nonempty) { for (i in files) print i; }; }'`; \ - mkid -fID $$unique -tags: TAGS - -TAGS: tags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ - $(TAGS_FILES) $(LISP) - set x; \ - here=`pwd`; \ - if ($(ETAGS) --etags-include --version) >/dev/null 2>&1; then \ - include_option=--etags-include; \ - empty_fix=.; \ - else \ - include_option=--include; \ - empty_fix=; \ - fi; \ - list='$(SUBDIRS)'; for subdir in $$list; do \ - if test "$$subdir" = .; then :; else \ - test ! -f $$subdir/TAGS || \ - set "$$@" "$$include_option=$$here/$$subdir/TAGS"; \ - fi; \ - done; \ - list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ - unique=`for i in $$list; do \ - if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ - done | \ - $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ - END { if (nonempty) { for (i in files) print i; }; }'`; \ - shift; \ - if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \ - test -n "$$unique" || unique=$$empty_fix; \ - if test $$# -gt 0; then \ - $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ - "$$@" $$unique; \ - else \ - $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ - $$unique; \ - fi; \ - fi -ctags: CTAGS -CTAGS: ctags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ - $(TAGS_FILES) $(LISP) - list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ - unique=`for i in $$list; do \ - if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ - done | \ - $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ - END { if (nonempty) { for (i in files) print i; }; }'`; \ - test -z "$(CTAGS_ARGS)$$unique" \ - || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ - $$unique - -GTAGS: - here=`$(am__cd) $(top_builddir) && pwd` \ - && $(am__cd) $(top_srcdir) \ - && gtags -i $(GTAGS_ARGS) "$$here" - -distclean-tags: - -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags - -distdir: $(DISTFILES) - @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ - topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ - list='$(DISTFILES)'; \ - dist_files=`for file in $$list; do echo $$file; done | \ - sed -e "s|^$$srcdirstrip/||;t" \ - -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ - case $$dist_files in \ - */*) $(MKDIR_P) `echo "$$dist_files" | \ - sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ - sort -u` ;; \ - esac; \ - for file in $$dist_files; do \ - if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ - if test -d $$d/$$file; then \ - dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ - if test -d "$(distdir)/$$file"; then \ - find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ - fi; \ - if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ - cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ - find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ - fi; \ - cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ - else \ - test -f "$(distdir)/$$file" \ - || cp -p $$d/$$file "$(distdir)/$$file" \ - || exit 1; \ - fi; \ - done - @list='$(DIST_SUBDIRS)'; for subdir in $$list; do \ - if test "$$subdir" = .; then :; else \ - test -d "$(distdir)/$$subdir" \ - || $(MKDIR_P) "$(distdir)/$$subdir" \ - || exit 1; \ - fi; \ - done - @list='$(DIST_SUBDIRS)'; for subdir in $$list; do \ - if test "$$subdir" = .; then :; else \ - dir1=$$subdir; dir2="$(distdir)/$$subdir"; \ - $(am__relativize); \ - new_distdir=$$reldir; \ - dir1=$$subdir; dir2="$(top_distdir)"; \ - $(am__relativize); \ - new_top_distdir=$$reldir; \ - echo " (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) top_distdir="$$new_top_distdir" distdir="$$new_distdir" \\"; \ - echo " am__remove_distdir=: am__skip_length_check=: am__skip_mode_fix=: distdir)"; \ - ($(am__cd) $$subdir && \ - $(MAKE) $(AM_MAKEFLAGS) \ - top_distdir="$$new_top_distdir" \ - distdir="$$new_distdir" \ - am__remove_distdir=: \ - am__skip_length_check=: \ - am__skip_mode_fix=: \ - distdir) \ - || exit 1; \ - fi; \ - done -check-am: all-am -check: check-recursive -all-am: Makefile -installdirs: installdirs-recursive -installdirs-am: -install: install-recursive -install-exec: install-exec-recursive -install-data: install-data-recursive -uninstall: uninstall-recursive - -install-am: all-am - @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am - -installcheck: installcheck-recursive -install-strip: - $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ - install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ - `test -z '$(STRIP)' || \ - echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install -mostlyclean-generic: - -clean-generic: - -distclean-generic: - -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) - -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) - -maintainer-clean-generic: - @echo "This command is intended for maintainers to use" - @echo "it deletes files that may require special tools to rebuild." -clean: clean-recursive - -clean-am: clean-generic mostlyclean-am - -distclean: distclean-recursive - -rm -f Makefile -distclean-am: clean-am distclean-generic distclean-tags - -dvi: dvi-recursive - -dvi-am: - -html: html-recursive - -html-am: - -info: info-recursive - -info-am: - -install-data-am: - -install-dvi: install-dvi-recursive - -install-dvi-am: - -install-exec-am: - -install-html: install-html-recursive - -install-html-am: - -install-info: install-info-recursive - -install-info-am: - -install-man: - -install-pdf: install-pdf-recursive - -install-pdf-am: - -install-ps: install-ps-recursive - -install-ps-am: - -installcheck-am: - -maintainer-clean: maintainer-clean-recursive - -rm -f Makefile -maintainer-clean-am: distclean-am maintainer-clean-generic - -mostlyclean: mostlyclean-recursive - -mostlyclean-am: mostlyclean-generic - -pdf: pdf-recursive - -pdf-am: - -ps: ps-recursive - -ps-am: - -uninstall-am: - -.MAKE: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) ctags-recursive \ - install-am install-strip tags-recursive - -.PHONY: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) CTAGS GTAGS \ - all all-am check check-am clean clean-generic ctags \ - ctags-recursive distclean distclean-generic distclean-tags \ - distdir dvi dvi-am html html-am info info-am install \ - install-am install-data install-data-am install-dvi \ - install-dvi-am install-exec install-exec-am install-html \ - install-html-am install-info install-info-am install-man \ - install-pdf install-pdf-am install-ps install-ps-am \ - install-strip installcheck installcheck-am installdirs \ - installdirs-am maintainer-clean maintainer-clean-generic \ - mostlyclean mostlyclean-generic pdf pdf-am ps ps-am tags \ - tags-recursive uninstall uninstall-am - - -.PHONY: start-avocadodb stop-avocadodb - -start-avocadodb: - echo $(PID) - echo $(TMP_DIR) - -# Tell versions [3.59,3.63) of GNU make to not export all variables. -# Otherwise a system limit (for SysV at least) may be exceeded. -.NOEXPORT: