[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r15521 - in gnunet: . m4 src/arm src/chat src/core src/data
From: |
gnunet |
Subject: |
[GNUnet-SVN] r15521 - in gnunet: . m4 src/arm src/chat src/core src/datacache src/datastore src/dht src/dv src/fragmentation src/fs src/hello src/hostlist src/monkey src/peerinfo src/peerinfo-tool src/statistics src/template src/testing src/topology src/transport src/util src/vpn |
Date: |
Fri, 10 Jun 2011 12:45:33 +0200 |
Author: grothoff
Date: 2011-06-10 12:45:33 +0200 (Fri, 10 Jun 2011)
New Revision: 15521
Modified:
gnunet/HACKING
gnunet/TODO
gnunet/configure.ac
gnunet/m4/libcurl.m4
gnunet/src/arm/Makefile.am
gnunet/src/chat/Makefile.am
gnunet/src/core/Makefile.am
gnunet/src/datacache/Makefile.am
gnunet/src/datastore/Makefile.am
gnunet/src/dht/Makefile.am
gnunet/src/dv/Makefile.am
gnunet/src/fragmentation/Makefile.am
gnunet/src/fs/Makefile.am
gnunet/src/hello/Makefile.am
gnunet/src/hostlist/Makefile.am
gnunet/src/monkey/Makefile.am
gnunet/src/peerinfo-tool/Makefile.am
gnunet/src/peerinfo/Makefile.am
gnunet/src/statistics/Makefile.am
gnunet/src/template/Makefile.am
gnunet/src/testing/Makefile.am
gnunet/src/topology/Makefile.am
gnunet/src/transport/Makefile.am
gnunet/src/util/Makefile.am
gnunet/src/vpn/Makefile.am
Log:
adding configure code for --enable-benchmarks, --enable-expensive-tests, some
clean up
Modified: gnunet/HACKING
===================================================================
--- gnunet/HACKING 2011-06-10 10:27:34 UTC (rev 15520)
+++ gnunet/HACKING 2011-06-10 10:45:33 UTC (rev 15521)
@@ -13,6 +13,7 @@
* gnunet_directories.h --- generated
* gettext.h --- external library
+
configuration:
- paths (that are substituted in all filenames) are in PATHS (have as few as
possible)
- globals for the daemon are in [gnunetd] (for now, have as few as possible!)
@@ -22,11 +23,11 @@
together with the options for the testing module itself
-
exported symbols:
- must start with "GNUNET_modulename_" and be defined in "modulename.c"
- exceptions: those defined in gnunet_common.h
+
private (library-internal) symbols (including structs & macros):
- must NOT start with any prefix
- must not be exported in a way that linkers could use them or
@@ -43,9 +44,9 @@
performance tests:
- must be called "perf_module-under-test_case-description.c"
- "case-description" maybe omitted if there is only one performance test
+- Must only be run if HAVE_BENCHMARKS is satisfied
-
src/ directories:
- gnunet-NAME: end-user applications (i.e., gnunet-search, gnunet-arm)
- gnunet-service-NAME: service processes with accessor library (i.e.,
gnunet-service-arm)
@@ -54,22 +55,6 @@
- libgnunet_plugin_DIR_NAME: loadable plugins (i.e.,
libgnunet_plugin_transport_tcp)
-
-Minimum file-sharing system (in order of dependency):
-gnunet-service-arm
-gnunet-service-transport
-gnunet-service-core
-gnunet-daemon-hostlist
-gnunet-daemon-topology
-gnunet-service-statistics
-gnunet-service-datastore
-gnunet-service-datacache
-gnunet-service-dht
-gnunet-service-fs (or just lib?)
-
-
-
-
Coding style:
- GNU guidelines apply
- declare only one variable per line, so
@@ -82,7 +67,6 @@
int i,j;
-
Build-system:
If you have code that is likely not to compile or build rules you might want
to not
@@ -92,6 +76,24 @@
If you want to compile all testcases but NOT run them, run configure with the
--enable-test-suppression option.
+If you want to run all testcases, including those that take a while, run
configure with the
+--enable-expensive-testcases option.
+
+If you want to compile and run benchmarks, run configure with the
+--enable-benchmarks option.
+
If you want to obtain code coverage results, run configure with the
--enable-coverage option and run the coverage.sh script in contrib/.
+
+Minimum file-sharing system (in order of dependency):
+gnunet-service-arm
+gnunet-service-transport
+gnunet-service-core
+gnunet-daemon-hostlist
+gnunet-daemon-topology
+gnunet-service-statistics
+gnunet-service-datastore
+gnunet-service-datacache
+gnunet-service-dht
+gnunet-service-fs
Modified: gnunet/TODO
===================================================================
--- gnunet/TODO 2011-06-10 10:27:34 UTC (rev 15520)
+++ gnunet/TODO 2011-06-10 10:45:33 UTC (rev 15521)
@@ -1,6 +1,5 @@
0.9.0pre3:
* clean buildbots
-* clean build
0.9.0:
* new webpage:
Modified: gnunet/configure.ac
===================================================================
--- gnunet/configure.ac 2011-06-10 10:27:34 UTC (rev 15520)
+++ gnunet/configure.ac 2011-06-10 10:45:33 UTC (rev 15521)
@@ -714,61 +714,87 @@
# should 'make check' run tests?
AC_MSG_CHECKING(whether to run tests)
-AC_ARG_ENABLE(testruns,
- [AS_HELP_STRING([--enable-testruns=yes/no],
- [disable running tests on make check (default is YES)])],
- [enable_tests_run=$enableval],
- [enable_tests_run="yes"])
+AC_ARG_ENABLE([testruns],
+ [AS_HELP_STRING([--disable-testruns], [disable running tests on make check
(default is YES)])],
+ [enable_tests_run=${enableval}],
+ [enable_tests_run=yes])
AC_MSG_RESULT($enable_test_run)
-AM_CONDITIONAL([DISABLE_TEST_RUN], [test "x$enable_tests_run" = "xno"])
+AM_CONDITIONAL([ENABLE_TEST_RUN], [test "x$enable_tests_run" = "xyes"])
+# should expensive tests be run?
+AC_MSG_CHECKING(whether to run expensive tests)
+AC_ARG_ENABLE([expensivetests],
+ [AS_HELP_STRING([--enable-expensive-tests], [enable running expensive
testcases])],
+ [enable_expensive=${enableval}],
+ [enable_expensive=no])
+AC_MSG_RESULT($enable_expensive)
+AM_CONDITIONAL([HAVE_EXPENSIVE_TESTS], [test "x$enable_expensive" = "xyes"])
+
+# should benchmarks be run?
+AC_MSG_CHECKING(whether to run benchmarks during make check)
+AC_ARG_ENABLE([benchmarks],
+ [AS_HELP_STRING([--enable-benchmarks], [enable running benchmarks during
make check])],
+ [enable_benchmarks=${enableval}],
+ [enable_benchmarks=no])
+AC_MSG_RESULT($enable_benchmarks)
+AM_CONDITIONAL([HAVE_BENCHMARKS], [test "x$enable_benchmarks" = "xyes"])
+
# should experimental code be compiled (code that may not yet compile)?
-disable_experimental=yes
AC_MSG_CHECKING(whether to compile experimental code)
-AC_ARG_ENABLE(experimental,
- [AS_HELP_STRING([--enable-experimental],
- [enable compiling experimental code])],
- [enable_experimental=$enableval],
- [enable_experimental="no"])
+AC_ARG_ENABLE([experimental],
+ [AS_HELP_STRING([--enable-experimental], [enable compiling experimental
code])],
+ [enable_experimental=${enableval}],
+ [enable_experimental=no])
AC_MSG_RESULT($enable_experimental)
AM_CONDITIONAL([HAVE_EXPERIMENTAL], [test "x$enable_experimental" = "xyes"])
# should malicious code be compiled (code used for testing with malicious
peers)
-enable_malicious=0
AC_MSG_CHECKING(whether to compile malicious code)
-AC_ARG_ENABLE(malicious,
- [AS_HELP_STRING([--enable-malicious],
- [enable compiling malicious code (only for developers for
testing)])],
- [enable_malicious=1],
- [enable_malicious=0])
+AC_ARG_ENABLE([malicious],
+ [AS_HELP_STRING([--enable-malicious], [enable compiling malicious code
(only for developers for testing)])],
+ [enable_malicious=${enableval}],
+ [enable_malicious=no])
AC_MSG_RESULT($enable_malicious)
-AM_CONDITIONAL([HAVE_MALICIOUS], [test "x$enable_malicious" = "x1"])
-AC_DEFINE_UNQUOTED([HAVE_MALICIOUS], $enable_malicious, [Compile malicious
code])
+AM_CONDITIONAL([HAVE_MALICIOUS], [test "x$enable_malicious" = "xyes"])
+if test "$enable_malicious" = "yes"
+then
+ AC_DEFINE([HAVE_MALICIOUS],[1],[include malicious code])
+else
+ AC_DEFINE([HAVE_MALICIOUS],[0],[disable malicious code])
+fi
# should code be enabled that works around missing OS functionality on Windows?
# used for test cases
-AC_ARG_ENABLE(windows_workarounds,
[AS_HELP_STRING([--enable-windows_workarounds],
- [enable workarounds used on Windows (only useful for test
cases)])])
if test $build_target = "mingw"
then
workarounds=1
else
- if test x$enable_windows_workarounds = "xyes"
- then
- workarounds=1
- else
- workarounds=0
- fi
+ AC_MSG_CHECKING(whether to enable windows workarounds)
+ AC_ARG_ENABLE([windows_workarounds],
+ [AS_HELP_STRING([--enable-windows_workarounds], [enable workarounds used
on Windows (only useful for test cases)])],
+ [enable_workarounds=${enableval}],
+ [enable_workarounds=no])
+ AC_MSG_RESULT($enable_workarounds)
+ if test x$enable_windows_workarounds = "xyes"
+ then
+ workarounds=1
+ else
+ workarounds=0
+ fi
fi
AC_DEFINE_UNQUOTED([ENABLE_WINDOWS_WORKAROUNDS], $workarounds, [enable
workarounds used on Windows (only useful for test cases)])
# gcov compilation
-use_gcov=no
-AC_ARG_ENABLE([coverage], AS_HELP_STRING([--enable-coverage],
- [Compile the library with code
coverage support (default is NO)]),
- [use_gcov=yes], [use_gcov=no])
+AC_MSG_CHECKING(whether to compile with support for code coverage analysis)
+AC_ARG_ENABLE([coverage],
+ AS_HELP_STRING([--enable-coverage],
+ [compile the library with code coverage support]),
+ [use_gcov=${enableval}],
+ [use_gcov=no])
+AC_MSG_RESULT($use_gcov)
AM_CONDITIONAL([USE_COVERAGE], [test "x$use_gcov" = "xyes"])
+
AC_CONFIG_FILES([
Makefile
contrib/Makefile
Modified: gnunet/m4/libcurl.m4
===================================================================
--- gnunet/m4/libcurl.m4 2011-06-10 10:27:34 UTC (rev 15520)
+++ gnunet/m4/libcurl.m4 2011-06-10 10:45:33 UTC (rev 15521)
@@ -55,9 +55,13 @@
AH_TEMPLATE([LIBCURL_PROTOCOL_LDAP],[Defined if libcurl supports LDAP])
AH_TEMPLATE([LIBCURL_PROTOCOL_DICT],[Defined if libcurl supports DICT])
AH_TEMPLATE([LIBCURL_PROTOCOL_TFTP],[Defined if libcurl supports TFTP])
+ AH_TEMPLATE([LIBCURL_PROTOCOL_RTSP],[Defined if libcurl supports RTSP])
+ AH_TEMPLATE([LIBCURL_PROTOCOL_POP3],[Defined if libcurl supports POP3])
+ AH_TEMPLATE([LIBCURL_PROTOCOL_IMAP],[Defined if libcurl supports IMAP])
+ AH_TEMPLATE([LIBCURL_PROTOCOL_SMTP],[Defined if libcurl supports SMTP])
AC_ARG_WITH(libcurl,
- AC_HELP_STRING([--with-libcurl=DIR],[look for the curl library in DIR]),
+ AC_HELP_STRING([--with-libcurl=PREFIX],[look for the curl library in
PREFIX/lib and headers in PREFIX/include]),
[_libcurl_with=$withval],[_libcurl_with=ifelse([$1],,[yes],[$1])])
if test "$_libcurl_with" != "no" ; then
@@ -71,32 +75,33 @@
if test -d "$_libcurl_with" ; then
LIBCURL_CPPFLAGS="-I$withval/include"
_libcurl_ldflags="-L$withval/lib"
- AC_PATH_PROG([_libcurl_config],["$withval/bin/curl-config"])
+ AC_PATH_PROG([_libcurl_config],[curl-config],[],
+ ["$withval/bin"])
else
- AC_PATH_PROG([_libcurl_config],[curl-config])
+ AC_PATH_PROG([_libcurl_config],[curl-config],[],[$PATH])
fi
if test x$_libcurl_config != "x" ; then
AC_CACHE_CHECK([for the version of libcurl],
- [libcurl_cv_lib_curl_version],
+ [libcurl_cv_lib_curl_version],
[libcurl_cv_lib_curl_version=`$_libcurl_config --version | $AWK
'{print $[]2}'`])
- _libcurl_version=`echo $libcurl_cv_lib_curl_version |
$_libcurl_version_parse`
- _libcurl_wanted=`echo ifelse([$2],,[0],[$2]) | $_libcurl_version_parse`
+ _libcurl_version=`echo $libcurl_cv_lib_curl_version |
$_libcurl_version_parse`
+ _libcurl_wanted=`echo ifelse([$2],,[0],[$2]) | $_libcurl_version_parse`
if test $_libcurl_wanted -gt 0 ; then
- AC_CACHE_CHECK([for libcurl >= version $2],
- [libcurl_cv_lib_version_ok],
+ AC_CACHE_CHECK([for libcurl >= version $2],
+ [libcurl_cv_lib_version_ok],
[
- if test $_libcurl_version -ge $_libcurl_wanted ; then
- libcurl_cv_lib_version_ok=yes
- else
- libcurl_cv_lib_version_ok=no
- fi
+ if test $_libcurl_version -ge $_libcurl_wanted ; then
+ libcurl_cv_lib_version_ok=yes
+ else
+ libcurl_cv_lib_version_ok=no
+ fi
])
fi
- if test $_libcurl_wanted -eq 0 || test x$libcurl_cv_lib_version_ok =
xyes ; then
+ if test $_libcurl_wanted -eq 0 || test x$libcurl_cv_lib_version_ok =
xyes ; then
if test x"$LIBCURL_CPPFLAGS" = "x" ; then
LIBCURL_CPPFLAGS=`$_libcurl_config --cflags`
fi
@@ -104,8 +109,8 @@
LIBCURL=`$_libcurl_config --libs`
# This is so silly, but Apple actually has a bug in their
- # curl-config script. Fixed in Tiger, but there are still
- # lots of Panther installs around.
+ # curl-config script. Fixed in Tiger, but there are still
+ # lots of Panther installs around.
case "${host}" in
powerpc-apple-darwin7*)
LIBCURL=`echo $LIBCURL | sed -e 's|-arch i386||g'`
@@ -113,18 +118,18 @@
esac
fi
- # All curl-config scripts support --feature
- _libcurl_features=`$_libcurl_config --feature`
+ # All curl-config scripts support --feature
+ _libcurl_features=`$_libcurl_config --feature`
# Is it modern enough to have --protocols? (7.12.4)
- if test $_libcurl_version -ge 461828 ; then
+ if test $_libcurl_version -ge 461828 ; then
_libcurl_protocols=`$_libcurl_config --protocols`
fi
- else
+ else
_libcurl_try_link=no
- fi
+ fi
- unset _libcurl_wanted
+ unset _libcurl_wanted
fi
if test $_libcurl_try_link = yes ; then
@@ -141,7 +146,7 @@
_libcurl_save_libs=$LIBS
LIBS="$LIBCURL $LIBS"
- AC_LINK_IFELSE(AC_LANG_PROGRAM([#include <curl/curl.h>],[
+ AC_LINK_IFELSE([AC_LANG_PROGRAM([#include <curl/curl.h>],[
/* Try and use a few common options to force a failure if we are
missing symbols or can't link. */
int x;
@@ -152,7 +157,7 @@
x=CURLOPT_ERRORBUFFER;
x=CURLOPT_STDERR;
x=CURLOPT_VERBOSE;
-]),libcurl_cv_lib_curl_usable=yes,libcurl_cv_lib_curl_usable=no)
+])],libcurl_cv_lib_curl_usable=yes,libcurl_cv_lib_curl_usable=no)
CPPFLAGS=$_libcurl_save_cppflags
LIBS=$_libcurl_save_libs
@@ -162,8 +167,8 @@
if test $libcurl_cv_lib_curl_usable = yes ; then
- # Does curl_free() exist in this version of libcurl?
- # If not, fake it with free()
+ # Does curl_free() exist in this version of libcurl?
+ # If not, fake it with free()
_libcurl_save_cppflags=$CPPFLAGS
CPPFLAGS="$CPPFLAGS $LIBCURL_CPPFLAGS"
@@ -171,8 +176,8 @@
LIBS="$LIBS $LIBCURL"
AC_CHECK_FUNC(curl_free,,
- AC_DEFINE(curl_free,free,
- [Define curl_free() as free() if our version of curl lacks
curl_free.]))
+ AC_DEFINE(curl_free,free,
+ [Define curl_free() as free() if our version of curl lacks
curl_free.]))
CPPFLAGS=$_libcurl_save_cppflags
LIBS=$_libcurl_save_libs
@@ -185,34 +190,40 @@
AC_SUBST(LIBCURL)
for _libcurl_feature in $_libcurl_features ; do
-
AC_DEFINE_UNQUOTED(AS_TR_CPP(libcurl_feature_$_libcurl_feature),[1])
- eval AS_TR_SH(libcurl_feature_$_libcurl_feature)=yes
+
AC_DEFINE_UNQUOTED(AS_TR_CPP(libcurl_feature_$_libcurl_feature),[1])
+ eval AS_TR_SH(libcurl_feature_$_libcurl_feature)=yes
done
- if test "x$_libcurl_protocols" = "x" ; then
+ if test "x$_libcurl_protocols" = "x" ; then
- # We don't have --protocols, so just assume that all
- # protocols are available
- _libcurl_protocols="HTTP FTP FILE TELNET LDAP DICT"
+ # We don't have --protocols, so just assume that all
+ # protocols are available
+ _libcurl_protocols="HTTP FTP FILE TELNET LDAP DICT TFTP"
- if test x$libcurl_feature_SSL = xyes ; then
- _libcurl_protocols="$_libcurl_protocols HTTPS"
+ if test x$libcurl_feature_SSL = xyes ; then
+ _libcurl_protocols="$_libcurl_protocols HTTPS"
- # FTPS wasn't standards-compliant until version
- # 7.11.0
- if test $_libcurl_version -ge 461568; then
- _libcurl_protocols="$_libcurl_protocols FTPS"
- fi
- fi
- fi
+ # FTPS wasn't standards-compliant until version
+ # 7.11.0 (0x070b00 == 461568)
+ if test $_libcurl_version -ge 461568; then
+ _libcurl_protocols="$_libcurl_protocols FTPS"
+ fi
+ fi
- for _libcurl_protocol in $_libcurl_protocols ; do
-
AC_DEFINE_UNQUOTED(AS_TR_CPP(libcurl_protocol_$_libcurl_protocol),[1])
- eval AS_TR_SH(libcurl_protocol_$_libcurl_protocol)=yes
+ # RTSP, IMAP, POP3 and SMTP were added in
+ # 7.20.0 (0x071400 == 463872)
+ if test $_libcurl_version -ge 463872; then
+ _libcurl_protocols="$_libcurl_protocols RTSP IMAP POP3 SMTP"
+ fi
+ fi
+
+ for _libcurl_protocol in $_libcurl_protocols ; do
+
AC_DEFINE_UNQUOTED(AS_TR_CPP(libcurl_protocol_$_libcurl_protocol),[1])
+ eval AS_TR_SH(libcurl_protocol_$_libcurl_protocol)=yes
done
- else
- unset LIBCURL
- unset LIBCURL_CPPFLAGS
+ else
+ unset LIBCURL
+ unset LIBCURL_CPPFLAGS
fi
fi
Modified: gnunet/src/arm/Makefile.am
===================================================================
--- gnunet/src/arm/Makefile.am 2011-06-10 10:27:34 UTC (rev 15520)
+++ gnunet/src/arm/Makefile.am 2011-06-10 10:45:33 UTC (rev 15521)
@@ -59,7 +59,7 @@
check_SCRIPTS = \
test_gnunet_arm.sh
-if !DISABLE_TEST_RUN
+if ENABLE_TEST_RUN
TESTS = $(check_PROGRAMS) $(check_SCRIPTS)
endif
Modified: gnunet/src/chat/Makefile.am
===================================================================
--- gnunet/src/chat/Makefile.am 2011-06-10 10:27:34 UTC (rev 15520)
+++ gnunet/src/chat/Makefile.am 2011-06-10 10:45:33 UTC (rev 15521)
@@ -50,7 +50,7 @@
test_chat_private \
test_chat_private_p2p
-if !DISABLE_TEST_RUN
+if ENABLE_TEST_RUN
TESTS = $(check_PROGRAMS)
endif
Modified: gnunet/src/core/Makefile.am
===================================================================
--- gnunet/src/core/Makefile.am 2011-06-10 10:27:34 UTC (rev 15520)
+++ gnunet/src/core/Makefile.am 2011-06-10 10:45:33 UTC (rev 15521)
@@ -47,7 +47,7 @@
test_core_quota_compliance_asymmetric_recv_limited \
test_core_api_send_to_self
-if !DISABLE_TEST_RUN
+if ENABLE_TEST_RUN
TESTS = $(check_PROGRAMS)
endif
Modified: gnunet/src/datacache/Makefile.am
===================================================================
--- gnunet/src/datacache/Makefile.am 2011-06-10 10:27:34 UTC (rev 15520)
+++ gnunet/src/datacache/Makefile.am 2011-06-10 10:45:33 UTC (rev 15521)
@@ -81,24 +81,36 @@
if HAVE_SQLITE
+if HAVE_BENCHMARKS
+ SQLITE_BENCHMARKS = \
+ perf_datacache_postgres
+endif
SQLITE_TESTS = \
test_datacache_sqlite \
test_datacache_quota_sqlite \
- perf_datacache_sqlite
+ $(SQLITE_BENCHMARKS)
endif
if HAVE_MYSQL
+if HAVE_BENCHMARKS
+ MYSQL_BENCHMARKS = \
+ perf_datacache_postgres
+endif
MYSQL_TESTS = \
test_datacache_mysql \
test_datacache_quota_mysql \
- perf_datacache_mysql
+ $(MYSQL_BENCHMARKS)
endif
if HAVE_POSTGRES
+if HAVE_BENCHMARKS
+ POSTGRES_BENCHMARKS = \
+ perf_datacache_postgres
+endif
POSTGRES_TESTS = \
test_datacache_postgres \
test_datacache_quota_postgres \
- perf_datacache_postgres
+ $(POSTGRES_BENCHMARKS)
endif
check_PROGRAMS = \
@@ -106,7 +118,7 @@
$(MYSQL_TESTS) \
$(POSTGRES_TESTS)
-if !DISABLE_TEST_RUN
+if ENABLE_TEST_RUN
TESTS = $(check_PROGRAMS)
endif
Modified: gnunet/src/datastore/Makefile.am
===================================================================
--- gnunet/src/datastore/Makefile.am 2011-06-10 10:27:34 UTC (rev 15520)
+++ gnunet/src/datastore/Makefile.am 2011-06-10 10:45:33 UTC (rev 15521)
@@ -38,30 +38,42 @@
if HAVE_MYSQL
MYSQL_PLUGIN = libgnunet_plugin_datastore_mysql.la
+if HAVE_BENCHMARKS
+ MYSQL_BENCHMARKS = \
+ perf_datastore_api_mysql \
+ perf_plugin_datastore_mysql
+endif
MYSQL_TESTS = \
test_datastore_api_mysql \
test_datastore_api_management_mysql \
test_plugin_datastore_mysql \
- perf_datastore_api_mysql \
- perf_plugin_datastore_mysql
+ $(MYSQL_BENCHMARKS)
endif
if HAVE_SQLITE
SQLITE_PLUGIN = libgnunet_plugin_datastore_sqlite.la
+if HAVE_BENCHMARKS
+ SQLITE_BENCHMARKS = \
+ perf_datastore_api_sqlite \
+ perf_plugin_datastore_sqlite
+endif
SQLITE_TESTS = \
test_datastore_api_sqlite \
test_datastore_api_management_sqlite \
test_plugin_datastore_sqlite \
- perf_datastore_api_sqlite \
- perf_plugin_datastore_sqlite
+ $(SQLITE_BENCHMARKS)
endif
if HAVE_POSTGRES
POSTGRES_PLUGIN = libgnunet_plugin_datastore_postgres.la
+if HAVE_BENCHMARKS
+ POSTGRES_BENCHMARKS = \
+ perf_datastore_api_postgres \
+ perf_plugin_datastore_postgres
+endif
POSTGRES_TESTS = \
test_datastore_api_postgres \
test_datastore_api_management_postgres \
test_plugin_datastore_postgres \
- perf_datastore_api_postgres \
- perf_plugin_datastore_postgres
+ $(POSTGRES_BENCHMARKS)
endif
plugin_LTLIBRARIES = \
@@ -113,7 +125,7 @@
$(MYSQL_TESTS) \
$(POSTGRES_TESTS)
-if !DISABLE_TEST_RUN
+if ENABLE_TEST_RUN
TESTS = $(check_PROGRAMS)
endif
Modified: gnunet/src/dht/Makefile.am
===================================================================
--- gnunet/src/dht/Makefile.am 2011-06-10 10:27:34 UTC (rev 15520)
+++ gnunet/src/dht/Makefile.am 2011-06-10 10:45:33 UTC (rev 15521)
@@ -156,7 +156,7 @@
test_dhtlog
# test_hash_operations
-if !DISABLE_TEST_RUN
+if ENABLE_TEST_RUN
TESTS = test_dht_api $(check_SCRIPTS) \
test_dht_twopeer \
test_dht_twopeer_put_get \
Modified: gnunet/src/dv/Makefile.am
===================================================================
--- gnunet/src/dv/Makefile.am 2011-06-10 10:27:34 UTC (rev 15520)
+++ gnunet/src/dv/Makefile.am 2011-06-10 10:45:33 UTC (rev 15521)
@@ -58,7 +58,7 @@
test_transport_api_dv
# test_dv_topology
-if !DISABLE_TEST_RUN
+if ENABLE_TEST_RUN
TESTS = $(check_PROGRAMS) $(check_SCRIPTS)
endif
Modified: gnunet/src/fragmentation/Makefile.am
===================================================================
--- gnunet/src/fragmentation/Makefile.am 2011-06-10 10:27:34 UTC (rev
15520)
+++ gnunet/src/fragmentation/Makefile.am 2011-06-10 10:45:33 UTC (rev
15521)
@@ -18,7 +18,7 @@
check_PROGRAMS = \
test_fragmentation
-if !DISABLE_TEST_RUN
+if ENABLE_TEST_RUN
TESTS = $(check_PROGRAMS)
endif
Modified: gnunet/src/fs/Makefile.am
===================================================================
--- gnunet/src/fs/Makefile.am 2011-06-10 10:27:34 UTC (rev 15520)
+++ gnunet/src/fs/Makefile.am 2011-06-10 10:45:33 UTC (rev 15521)
@@ -134,9 +134,14 @@
gnunet_unindex_DEPENDENCIES = \
libgnunetfs.la
+if HAVE_BENCHMARKS
+ FS_BENCHMARKS = \
+ perf_gnunet_service_fs_p2p \
+ perf_gnunet_service_fs_p2p_dht \
+ perf_gnunet_service_fs_p2p_index \
+ perf_gnunet_service_fs_p2p_trust
+endif
-
-
check_PROGRAMS = \
test_fs_directory \
test_fs_download \
@@ -158,10 +163,7 @@
test_fs_uri \
test_gnunet_service_fs_migration \
test_gnunet_service_fs_p2p \
- perf_gnunet_service_fs_p2p \
- perf_gnunet_service_fs_p2p_dht \
- perf_gnunet_service_fs_p2p_index \
- perf_gnunet_service_fs_p2p_trust
+ $(FS_BENCHMARKS)
if HAVE_PYTHON_PEXPECT
@@ -173,7 +175,7 @@
endif
-if !DISABLE_TEST_RUN
+if ENABLE_TEST_RUN
TESTS = \
test_fs_directory \
test_fs_download \
Modified: gnunet/src/hello/Makefile.am
===================================================================
--- gnunet/src/hello/Makefile.am 2011-06-10 10:27:34 UTC (rev 15520)
+++ gnunet/src/hello/Makefile.am 2011-06-10 10:45:33 UTC (rev 15521)
@@ -19,7 +19,7 @@
check_PROGRAMS = \
test_hello
-if !DISABLE_TEST_RUN
+if ENABLE_TEST_RUN
TESTS = $(check_PROGRAMS)
endif
Modified: gnunet/src/hostlist/Makefile.am
===================================================================
--- gnunet/src/hostlist/Makefile.am 2011-06-10 10:27:34 UTC (rev 15520)
+++ gnunet/src/hostlist/Makefile.am 2011-06-10 10:45:33 UTC (rev 15521)
@@ -37,7 +37,7 @@
test_gnunet_daemon_hostlist_learning
if HAVE_MHD
-if !DISABLE_TEST_RUN
+if ENABLE_TEST_RUN
TESTS = \
test_gnunet_daemon_hostlist \
test_gnunet_daemon_hostlist_reconnect \
Modified: gnunet/src/monkey/Makefile.am
===================================================================
--- gnunet/src/monkey/Makefile.am 2011-06-10 10:27:34 UTC (rev 15520)
+++ gnunet/src/monkey/Makefile.am 2011-06-10 10:45:33 UTC (rev 15521)
@@ -92,7 +92,7 @@
test_monkey_edb
#test_gnunet_monkey
-if !DISABLE_TEST_RUN
+if ENABLE_TEST_RUN
# TESTS = $(check_SCRIPTS)
TESTS = $(check_PROGRAMS)
endif
Modified: gnunet/src/peerinfo/Makefile.am
===================================================================
--- gnunet/src/peerinfo/Makefile.am 2011-06-10 10:27:34 UTC (rev 15520)
+++ gnunet/src/peerinfo/Makefile.am 2011-06-10 10:45:33 UTC (rev 15521)
@@ -33,12 +33,16 @@
$(top_builddir)/src/statistics/libgnunetstatistics.la \
$(top_builddir)/src/util/libgnunetutil.la
+if HAVE_BENCHMARKS
+ PEERINFO_BENCHMARKS = \
+ perf_peerinfo_api
+endif
check_PROGRAMS = \
test_peerinfo_api \
- perf_peerinfo_api
+ $(PEERINFO_BENCHMARKS)
-if !DISABLE_TEST_RUN
+if ENABLE_TEST_RUN
TESTS = $(check_PROGRAMS)
endif
Modified: gnunet/src/peerinfo-tool/Makefile.am
===================================================================
--- gnunet/src/peerinfo-tool/Makefile.am 2011-06-10 10:27:34 UTC (rev
15520)
+++ gnunet/src/peerinfo-tool/Makefile.am 2011-06-10 10:45:33 UTC (rev
15521)
@@ -25,7 +25,7 @@
test_gnunet_peerinfo.py
endif
-if !DISABLE_TEST_RUN
+if ENABLE_TEST_RUN
TESTS = $(check_SCRIPTS)
endif
Modified: gnunet/src/statistics/Makefile.am
===================================================================
--- gnunet/src/statistics/Makefile.am 2011-06-10 10:27:34 UTC (rev 15520)
+++ gnunet/src/statistics/Makefile.am 2011-06-10 10:45:33 UTC (rev 15521)
@@ -49,7 +49,7 @@
test_statistics_api_loop \
test_statistics_api_watch
-if !DISABLE_TEST_RUN
+if ENABLE_TEST_RUN
TESTS = $(check_PROGRAMS) $(check_SCRIPTS)
endif
Modified: gnunet/src/template/Makefile.am
===================================================================
--- gnunet/src/template/Makefile.am 2011-06-10 10:27:34 UTC (rev 15520)
+++ gnunet/src/template/Makefile.am 2011-06-10 10:45:33 UTC (rev 15521)
@@ -28,7 +28,7 @@
check_PROGRAMS = \
test_template_api
-if !DISABLE_TEST_RUN
+if ENABLE_TEST_RUN
TESTS = $(check_PROGRAMS)
endif
Modified: gnunet/src/testing/Makefile.am
===================================================================
--- gnunet/src/testing/Makefile.am 2011-06-10 10:27:34 UTC (rev 15520)
+++ gnunet/src/testing/Makefile.am 2011-06-10 10:45:33 UTC (rev 15521)
@@ -47,7 +47,7 @@
test_testing_topology_none \
test_testing_topology_scale_free
-if !DISABLE_TEST_RUN
+if ENABLE_TEST_RUN
TESTS = \
test_testing \
test_testing_connect \
Modified: gnunet/src/topology/Makefile.am
===================================================================
--- gnunet/src/topology/Makefile.am 2011-06-10 10:27:34 UTC (rev 15520)
+++ gnunet/src/topology/Makefile.am 2011-06-10 10:45:33 UTC (rev 15521)
@@ -24,7 +24,7 @@
check_PROGRAMS = \
test_gnunet_daemon_topology
-if !DISABLE_TEST_RUN
+if ENABLE_TEST_RUN
TESTS = $(check_PROGRAMS)
endif
Modified: gnunet/src/transport/Makefile.am
===================================================================
--- gnunet/src/transport/Makefile.am 2011-06-10 10:27:34 UTC (rev 15520)
+++ gnunet/src/transport/Makefile.am 2011-06-10 10:45:33 UTC (rev 15521)
@@ -234,10 +234,14 @@
libgnunet_plugin_transport_https_la_CPPFLAGS = \
@LIBCURL_CPPFLAGS@
+if HAVE_BENCHMARKS
+ TRANSPORT_BENCHMARKS = \
+ perf_transport_ats
+endif
check_PROGRAMS = \
test_transport_ats \
- perf_transport_ats \
+ $(TRANSPORT_BENCHMARKS) \
test_transport_api_tcp \
test_transport_api_tcp_nat \
test_transport_api_udp \
@@ -266,7 +270,7 @@
$(WLAN_UREL_TEST)
# TODO: add tests for nat, etc.
-if !DISABLE_TEST_RUN
+if ENABLE_TEST_RUN
TESTS = \
test_transport_ats \
perf_transport_ats \
Modified: gnunet/src/util/Makefile.am
===================================================================
--- gnunet/src/util/Makefile.am 2011-06-10 10:27:34 UTC (rev 15520)
+++ gnunet/src/util/Makefile.am 2011-06-10 10:45:33 UTC (rev 15521)
@@ -114,6 +114,11 @@
libgnunet_plugin_test_la_LDFLAGS = \
$(GN_PLUGIN_LDFLAGS)
+if HAVE_BENCHMARKS
+ BENCHMARKS = \
+ perf_crypto_hash
+endif
+
check_PROGRAMS = \
test_bio \
test_client \
@@ -158,10 +163,10 @@
test_service \
test_strings \
test_time \
- perf_crypto_hash \
+ $(BENCHMARKS) \
test_os_start_process
-if !DISABLE_TEST_RUN
+if ENABLE_TEST_RUN
TESTS = $(check_PROGRAMS)
endif
Modified: gnunet/src/vpn/Makefile.am
===================================================================
--- gnunet/src/vpn/Makefile.am 2011-06-10 10:27:34 UTC (rev 15520)
+++ gnunet/src/vpn/Makefile.am 2011-06-10 10:45:33 UTC (rev 15521)
@@ -70,7 +70,7 @@
#check_PROGRAMS = \
# test_XXX
-if !DISABLE_TEST_RUN
+if ENABLE_TEST_RUN
#TESTS = \
# test_transport_api_tcp
endif
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r15521 - in gnunet: . m4 src/arm src/chat src/core src/datacache src/datastore src/dht src/dv src/fragmentation src/fs src/hello src/hostlist src/monkey src/peerinfo src/peerinfo-tool src/statistics src/template src/testing src/topology src/transport src/util src/vpn,
gnunet <=