gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] r12744 - gnunet/src/datacache


From: gnunet
Subject: [GNUnet-SVN] r12744 - gnunet/src/datacache
Date: Thu, 26 Aug 2010 15:31:58 +0200

Author: grothoff
Date: 2010-08-26 15:31:58 +0200 (Thu, 26 Aug 2010)
New Revision: 12744

Added:
   gnunet/src/datacache/perf_datacache_data_postgres.conf
   gnunet/src/datacache/test_datacache_data_postgres.conf
Modified:
   gnunet/src/datacache/Makefile.am
Log:
towards datacache

Modified: gnunet/src/datacache/Makefile.am
===================================================================
--- gnunet/src/datacache/Makefile.am    2010-08-26 12:31:39 UTC (rev 12743)
+++ gnunet/src/datacache/Makefile.am    2010-08-26 13:31:58 UTC (rev 12744)
@@ -17,6 +17,9 @@
 if HAVE_MYSQL
   MYSQL_PLUGIN = libgnunet_plugin_datacache_mysql.la
 endif
+if HAVE_POSTGRES
+  POSTGRES_PLUGIN = libgnunet_plugin_datacache_postgres.la
+endif
 
 lib_LTLIBRARIES = \
   libgnunetdatacache.la
@@ -35,6 +38,7 @@
 plugin_LTLIBRARIES = \
   $(SQLITE_PLUGIN) \
   $(MYSQL_PLUGIN) \
+  $(POSTGRES_PLUGIN) \
   libgnunet_plugin_datacache_template.la 
 
 
@@ -57,6 +61,17 @@
 libgnunet_plugin_datacache_mysql_la_LDFLAGS = \
  $(GN_PLUGIN_LDFLAGS) $(MYSQL_LDFLAGS) -lmysqlclient
 
+libgnunet_plugin_datacache_postgres_la_SOURCES = \
+  plugin_datacache_postgres.c
+libgnunet_plugin_datacache_postgres_la_LIBADD = \
+  $(top_builddir)/src/statistics/libgnunetstatistics.la \
+  $(top_builddir)/src/util/libgnunetutil.la \
+  $(GN_PLUGIN_LDFLAGS) $(POSTGRES_LDFLAGS) -lpq
+libgnunet_plugin_datacache_postgres_la_CPPFLAGS = \
+ $(POSTGRES_CPPFLAGS)
+libgnunet_plugin_datacache_postgres_la_LDFLAGS = \
+ $(GN_PLUGIN_LDFLAGS) $(POSTGRES_LDFLAGS) -lpq
+
 libgnunet_plugin_datacache_template_la_SOURCES = \
   plugin_datacache_template.c
 libgnunet_plugin_datacache_template_la_LIBADD = \
@@ -79,9 +94,17 @@
  perf_datacache_mysql
 endif
 
+if HAVE_POSTGRES
+POSTGRES_TESTS = \
+ test_datacache_postgres \
+ test_datacache_quota_postgres \
+ perf_datacache_postgres
+endif
+
 check_PROGRAMS = \
  $(SQLITE_TESTS) \
- $(MYSQL_TESTS) 
+ $(MYSQL_TESTS) \
+ $(POSTGRES_TESTS) 
 
 if !DISABLE_TEST_RUN
 TESTS = $(check_PROGRAMS)
@@ -123,8 +146,28 @@
  $(top_builddir)/src/datacache/libgnunetdatacache.la \
  $(top_builddir)/src/util/libgnunetutil.la  
 
+test_datacache_postgres_SOURCES = \
+ test_datacache.c
+test_datacache_postgres_LDADD = \
+ $(top_builddir)/src/datacache/libgnunetdatacache.la \
+ $(top_builddir)/src/util/libgnunetutil.la  
+
+test_datacache_quota_postgres_SOURCES = \
+ test_datacache_quota.c
+test_datacache_quota_postgres_LDADD = \
+ $(top_builddir)/src/datacache/libgnunetdatacache.la \
+ $(top_builddir)/src/util/libgnunetutil.la  
+
+perf_datacache_postgres_SOURCES = \
+ perf_datacache.c
+perf_datacache_postgres_LDADD = \
+ $(top_builddir)/src/datacache/libgnunetdatacache.la \
+ $(top_builddir)/src/util/libgnunetutil.la  
+
 EXTRA_DIST = \
  test_datacache_data_sqlite.conf \
  perf_datacache_data_sqlite.conf \
  test_datacache_data_mysql.conf \
- perf_datacache_data_mysql.conf
+ perf_datacache_data_mysql.conf \
+ test_datacache_data_postgres.conf \
+ perf_datacache_data_postgres.conf

Added: gnunet/src/datacache/perf_datacache_data_postgres.conf
===================================================================
--- gnunet/src/datacache/perf_datacache_data_postgres.conf                      
        (rev 0)
+++ gnunet/src/datacache/perf_datacache_data_postgres.conf      2010-08-26 
13:31:58 UTC (rev 12744)
@@ -0,0 +1,7 @@
+
+[perfcache]
+QUOTA = 500000
+DATABASE = mysql
+
+[datacache-mysql]
+CONFIG = dbname=gnunetcheck

Added: gnunet/src/datacache/test_datacache_data_postgres.conf
===================================================================
--- gnunet/src/datacache/test_datacache_data_postgres.conf                      
        (rev 0)
+++ gnunet/src/datacache/test_datacache_data_postgres.conf      2010-08-26 
13:31:58 UTC (rev 12744)
@@ -0,0 +1,7 @@
+
+[testcache]
+QUOTA = 1000000
+DATABASE = postgrers
+
+[datacache-postgres]
+CONFIG = dbname=gnunetcheck




reply via email to

[Prev in Thread] Current Thread [Next in Thread]