* 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!)
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
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:
- 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
int i,j;
-
Build-system:
If you have code that is likely not to compile or build rules you might want to not
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
0.9.0pre3:
* clean buildbots
-* clean build
0.9.0:
* new webpage:
# 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
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
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
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'`
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
_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;
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
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"
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
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 TFTP"
- # We don't have --protocols, so just assume that all
- # protocols are available
- _libcurl_protocols="HTTP FTP FILE TELNET LDAP DICT"
+ 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 (0x070b00 == 461568)
+ if test $_libcurl_version -ge 461568; then
+ _libcurl_protocols="$_libcurl_protocols FTPS"
+ fi
+ fi
- # 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
+ # 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
+ 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
check_SCRIPTS = \
test_gnunet_arm.sh
-if !DISABLE_TEST_RUN
+if ENABLE_TEST_RUN
TESTS = $(check_PROGRAMS) $(check_SCRIPTS)
endif
test_chat_private \
test_chat_private_p2p
-if !DISABLE_TEST_RUN
+if ENABLE_TEST_RUN
TESTS = $(check_PROGRAMS)
endif
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
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 = \
$(MYSQL_TESTS) \
$(POSTGRES_TESTS)
-if !DISABLE_TEST_RUN
+if ENABLE_TEST_RUN
TESTS = $(check_PROGRAMS)
endif
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 = \
$(MYSQL_TESTS) \
$(POSTGRES_TESTS)
-if !DISABLE_TEST_RUN
+if ENABLE_TEST_RUN
TESTS = $(check_PROGRAMS)
endif
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 \
test_transport_api_dv
# test_dv_topology
-if !DISABLE_TEST_RUN
+if ENABLE_TEST_RUN
TESTS = $(check_PROGRAMS) $(check_SCRIPTS)
endif
check_PROGRAMS = \
test_fragmentation
-if !DISABLE_TEST_RUN
+if ENABLE_TEST_RUN
TESTS = $(check_PROGRAMS)
endif
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_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
endif
-if !DISABLE_TEST_RUN
+if ENABLE_TEST_RUN
TESTS = \
test_fs_directory \
test_fs_download \
check_PROGRAMS = \
test_hello
-if !DISABLE_TEST_RUN
+if ENABLE_TEST_RUN
TESTS = $(check_PROGRAMS)
endif
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 \
test_monkey_edb
#test_gnunet_monkey
-if !DISABLE_TEST_RUN
+if ENABLE_TEST_RUN
# TESTS = $(check_SCRIPTS)
TESTS = $(check_PROGRAMS)
endif
test_gnunet_peerinfo.py
endif
-if !DISABLE_TEST_RUN
+if ENABLE_TEST_RUN
TESTS = $(check_SCRIPTS)
endif
$(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
test_statistics_api_loop \
test_statistics_api_watch
-if !DISABLE_TEST_RUN
+if ENABLE_TEST_RUN
TESTS = $(check_PROGRAMS) $(check_SCRIPTS)
endif
check_PROGRAMS = \
test_template_api
-if !DISABLE_TEST_RUN
+if ENABLE_TEST_RUN
TESTS = $(check_PROGRAMS)
endif
test_testing_topology_none \
test_testing_topology_scale_free
-if !DISABLE_TEST_RUN
+if ENABLE_TEST_RUN
TESTS = \
test_testing \
test_testing_connect \
check_PROGRAMS = \
test_gnunet_daemon_topology
-if !DISABLE_TEST_RUN
+if ENABLE_TEST_RUN
TESTS = $(check_PROGRAMS)
endif
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 \
$(WLAN_UREL_TEST)
# TODO: add tests for nat, etc.
-if !DISABLE_TEST_RUN
+if ENABLE_TEST_RUN
TESTS = \
test_transport_ats \
perf_transport_ats \
libgnunet_plugin_test_la_LDFLAGS = \
$(GN_PLUGIN_LDFLAGS)
+if HAVE_BENCHMARKS
+ BENCHMARKS = \
+ perf_crypto_hash
+endif
+
check_PROGRAMS = \
test_bio \
test_client \
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
#check_PROGRAMS = \
# test_XXX
-if !DISABLE_TEST_RUN
+if ENABLE_TEST_RUN
#TESTS = \
# test_transport_api_tcp
endif