[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r27641 - in gnunet: . src src/ats src/core src/datacache sr
From: |
gnunet |
Subject: |
[GNUnet-SVN] r27641 - in gnunet: . src src/ats src/core src/datacache src/datastore src/dht src/dv src/fs src/gns src/lockmanager src/mesh src/namestore src/nse src/peerinfo src/pt src/regex src/set src/stream src/topology src/transport src/util |
Date: |
Thu, 27 Jun 2013 08:11:55 +0200 |
Author: amatus
Date: 2013-06-27 08:11:55 +0200 (Thu, 27 Jun 2013)
New Revision: 27641
Modified:
gnunet/configure.ac
gnunet/src/Makefile.am
gnunet/src/ats/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/fs/Makefile.am
gnunet/src/gns/Makefile.am
gnunet/src/lockmanager/Makefile.am
gnunet/src/mesh/Makefile.am
gnunet/src/namestore/Makefile.am
gnunet/src/nse/Makefile.am
gnunet/src/peerinfo/Makefile.am
gnunet/src/pt/Makefile.am
gnunet/src/regex/Makefile.am
gnunet/src/set/Makefile.am
gnunet/src/stream/Makefile.am
gnunet/src/topology/Makefile.am
gnunet/src/transport/Makefile.am
gnunet/src/util/Makefile.am
gnunet/src/util/test_mq.c
Log:
Make building gnunet-testing lib optional.
This is all because emscripten doesn't have getaddrinfo.
Modified: gnunet/configure.ac
===================================================================
--- gnunet/configure.ac 2013-06-26 23:00:40 UTC (rev 27640)
+++ gnunet/configure.ac 2013-06-27 06:11:55 UTC (rev 27641)
@@ -1067,6 +1067,15 @@
AC_MSG_RESULT($enable_benchmarks)
AM_CONDITIONAL([HAVE_BENCHMARKS], [test "x$enable_benchmarks" = "xyes"])
+# should gnunet-testing be compiled
+AC_MSG_CHECKING(wether to compile gnunet-testing)
+AC_ARG_ENABLE([testing],
+ [AS_HELP_STRING([--disable-testing], [do not build gnunet-testing])],
+ [enable_testing=${enableval}],
+ [enable_testing=yes])
+AC_MSG_RESULT($enable_testing)
+AM_CONDITIONAL([HAVE_TESTING], [test "x$enable_testing" = "xyes"])
+
# should experimental code be compiled (code that may not yet compile)?
AC_MSG_CHECKING(whether to compile experimental code)
AC_ARG_ENABLE([experimental],
Modified: gnunet/src/Makefile.am
===================================================================
--- gnunet/src/Makefile.am 2013-06-26 23:00:40 UTC (rev 27640)
+++ gnunet/src/Makefile.am 2013-06-27 06:11:55 UTC (rev 27641)
@@ -2,8 +2,15 @@
# INTLEMU_SUBDIRS = intlemu
#endif
+if HAVE_TESTING
+ TESTING = testing
+ TESTBED = testbed
+ CONSENSUS = consensus
+ EXPERIMENTATION = experimentation
+endif
+
if HAVE_EXPERIMENTAL
- EXP_DIR = gns set dv consensus experimentation
+ EXP_DIR = gns set dv $(CONSENSUS) $(EXPERIMENTATION)
endif
if LINUX
@@ -31,7 +38,7 @@
block \
statistics \
arm \
- testing \
+ $(TESTING) \
peerinfo \
$(MYSQL_DIR) \
$(POSTGRES_DIR) \
@@ -46,7 +53,7 @@
ats-tool \
peerinfo-tool \
core \
- testbed \
+ $(TESTBED) \
nse \
dht \
hostlist \
Modified: gnunet/src/ats/Makefile.am
===================================================================
--- gnunet/src/ats/Makefile.am 2013-06-26 23:00:40 UTC (rev 27640)
+++ gnunet/src/ats/Makefile.am 2013-06-27 06:11:55 UTC (rev 27641)
@@ -60,7 +60,8 @@
gnunet_service_ats_DEPENDENCIES = \
libgnunetats.la
-check_PROGRAMS = \
+if HAVE_TESTING
+TESTING_TESTS = \
test_ats_api_scheduling_init \
test_ats_api_scheduling_add_address \
test_ats_api_scheduling_add_session \
@@ -71,18 +72,23 @@
test_ats_api_scheduling_destroy_session \
test_ats_api_scheduling_destroy_inbound_connection \
test_ats_api_scheduling_block_and_reset \
- test_ats_normalization_update_quality \
+ test_ats_normalization_update_quality \
test_ats_change_preference \
test_ats_simplistic \
test_ats_simplistic_switch_networks \
test_ats_simplistic_change_preference \
test_ats_api_performance_list_addresses \
- test_ats_api_performance_address_info \
- $(GN_MLP_TEST) $(GN_MLP_PERF) $(GN_MLP_TEST_UPDATE)
-# $(GN_MLP_TEST_AVG)
+ test_ats_api_performance_address_info
# test_ats_api_scheduling_get_type
# test_ats_api_bandwidth_consumption
+# test_ats_simplistic_pref_aging
+endif
+check_PROGRAMS = \
+ $(TESTING_TESTS)
+ $(GN_MLP_TEST) $(GN_MLP_PERF) $(GN_MLP_TEST_UPDATE)
+# $(GN_MLP_TEST_AVG)
+
if ENABLE_TEST_RUN
TESTS = $(check_PROGRAMS)
endif
Modified: gnunet/src/core/Makefile.am
===================================================================
--- gnunet/src/core/Makefile.am 2013-06-26 23:00:40 UTC (rev 27640)
+++ gnunet/src/core/Makefile.am 2013-06-27 06:11:55 UTC (rev 27641)
@@ -60,6 +60,10 @@
gnunet_core_DEPENDENCIES = \
libgnunetcore.la
+if HAVE_TESTING
+ TESTING_TESTS = test_core_api_send_to_self
+endif
+
check_PROGRAMS = \
test_core_api_start_only \
test_core_api \
@@ -67,7 +71,7 @@
test_core_quota_compliance_symmetric \
test_core_quota_compliance_asymmetric_send_limited \
test_core_quota_compliance_asymmetric_recv_limited \
- test_core_api_send_to_self
+ $(TESTING_TESTS)
if ENABLE_TEST_RUN
TESTS = $(check_PROGRAMS)
Modified: gnunet/src/datacache/Makefile.am
===================================================================
--- gnunet/src/datacache/Makefile.am 2013-06-26 23:00:40 UTC (rev 27640)
+++ gnunet/src/datacache/Makefile.am 2013-06-27 06:11:55 UTC (rev 27641)
@@ -83,6 +83,7 @@
$(GN_PLUGIN_LDFLAGS)
+if HAVE_TESTING
if HAVE_SQLITE
if HAVE_BENCHMARKS
SQLITE_BENCHMARKS = \
@@ -113,6 +114,7 @@
test_datacache_quota_postgres \
$(POSTGRES_BENCHMARKS)
endif
+endif
check_PROGRAMS = \
$(SQLITE_TESTS) \
Modified: gnunet/src/datastore/Makefile.am
===================================================================
--- gnunet/src/datastore/Makefile.am 2013-06-26 23:00:40 UTC (rev 27640)
+++ gnunet/src/datastore/Makefile.am 2013-06-27 06:11:55 UTC (rev 27641)
@@ -57,6 +57,7 @@
if HAVE_MYSQL
MYSQL_PLUGIN = libgnunet_plugin_datastore_mysql.la
+if HAVE_TESTING
if HAVE_BENCHMARKS
MYSQL_BENCHMARKS = \
perf_datastore_api_mysql \
@@ -68,8 +69,10 @@
test_plugin_datastore_mysql \
$(MYSQL_BENCHMARKS)
endif
+endif
if HAVE_SQLITE
SQLITE_PLUGIN = libgnunet_plugin_datastore_sqlite.la
+if HAVE_TESTING
if HAVE_BENCHMARKS
SQLITE_BENCHMARKS = \
perf_datastore_api_sqlite \
@@ -81,8 +84,10 @@
test_plugin_datastore_sqlite \
$(SQLITE_BENCHMARKS)
endif
+endif
if HAVE_POSTGRES
POSTGRES_PLUGIN = libgnunet_plugin_datastore_postgres.la
+if HAVE_TESTING
if HAVE_BENCHMARKS
POSTGRES_BENCHMARKS = \
perf_datastore_api_postgres \
@@ -94,6 +99,7 @@
test_plugin_datastore_postgres \
$(POSTGRES_BENCHMARKS)
endif
+endif
plugin_LTLIBRARIES = \
$(SQLITE_PLUGIN) \
Modified: gnunet/src/dht/Makefile.am
===================================================================
--- gnunet/src/dht/Makefile.am 2013-06-26 23:00:40 UTC (rev 27640)
+++ gnunet/src/dht/Makefile.am 2013-06-27 06:11:55 UTC (rev 27641)
@@ -104,8 +104,9 @@
gnunet_dht_monitor_DEPENDENCIES = \
libgnunetdht.la
-
+if HAVE_TESTING
noinst_LIBRARIES = libgnunetdhttest.a
+endif
libgnunetdhttest_a_SOURCES = \
dht_test_lib.c dht_test_lib.h
@@ -116,6 +117,7 @@
libgnunetdhttest_a_DEPENDENCIES = \
libgnunetdht.la
+if HAVE_TESTING
check_PROGRAMS = \
test_dht_api \
test_dht_twopeer \
@@ -123,6 +125,7 @@
test_dht_line \
test_dht_2dtorus \
test_dht_monitor
+endif
if HAVE_EXPERIMENTAL
# These tests still do not work as testbed does
Modified: gnunet/src/dv/Makefile.am
===================================================================
--- gnunet/src/dv/Makefile.am 2013-06-26 23:00:40 UTC (rev 27640)
+++ gnunet/src/dv/Makefile.am 2013-06-27 06:11:55 UTC (rev 27641)
@@ -65,11 +65,12 @@
libgnunet_plugin_transport_dv_la_DEPENDENCIES = \
libgnunetdv.la
+if HAVE_TESTING
check_PROGRAMS = \
test_transport_blacklist \
test_transport_dv
+endif
-
if ENABLE_TEST_RUN
TESTS = $(check_PROGRAMS)
endif
Modified: gnunet/src/fs/Makefile.am
===================================================================
--- gnunet/src/fs/Makefile.am 2013-06-26 23:00:40 UTC (rev 27640)
+++ gnunet/src/fs/Makefile.am 2013-06-27 06:11:55 UTC (rev 27641)
@@ -24,7 +24,9 @@
plugin_LTLIBRARIES = \
libgnunet_plugin_block_fs.la
+if HAVE_TESTING
noinst_LIBRARIES = libgnunetfstest.a
+endif
libgnunetfs_la_SOURCES = \
fs_api.c fs_api.h fs.h \
@@ -66,9 +68,11 @@
gnunet-helper-fs-publish \
gnunet-service-fs
+if HAVE_TESTING
noinst_PROGRAMS = \
gnunet-fs-profiler \
gnunet-daemon-fsprofiler
+endif
bin_PROGRAMS = \
gnunet-auto-share \
@@ -235,6 +239,7 @@
perf_gnunet_service_fs_p2p_respect
endif
+if HAVE_TESTING
check_PROGRAMS = \
test_plugin_block_fs \
test_fs_directory \
@@ -262,6 +267,7 @@
test_gnunet_service_fs_p2p \
test_gnunet_service_fs_p2p_mesh \
$(FS_BENCHMARKS)
+endif
test_plugin_block_fs_SOURCES = \
test_plugin_block_fs.c
Modified: gnunet/src/gns/Makefile.am
===================================================================
--- gnunet/src/gns/Makefile.am 2013-06-26 23:00:40 UTC (rev 27640)
+++ gnunet/src/gns/Makefile.am 2013-06-27 06:11:55 UTC (rev 27641)
@@ -208,7 +208,7 @@
$(top_builddir)/src/block/libgnunetblock.la \
$(top_builddir)/src/namestore/libgnunetnamestore.la
-
+if HAVE_TESTING
check_PROGRAMS = \
test_gns_simple_shorten \
test_gns_simple_get_authority \
@@ -225,6 +225,7 @@
test_gns_revocation \
test_gns_dht_three_peers
#test_gns_proxy
+endif
if ENABLE_TEST_RUN
if LINUX
Modified: gnunet/src/lockmanager/Makefile.am
===================================================================
--- gnunet/src/lockmanager/Makefile.am 2013-06-26 23:00:40 UTC (rev 27640)
+++ gnunet/src/lockmanager/Makefile.am 2013-06-27 06:11:55 UTC (rev 27641)
@@ -40,11 +40,13 @@
$(GN_LIB_LDFLAGS) $(WINFLAGS) \
-version-info 0:0:0
+if HAVE_TESTING
check_PROGRAMS = \
test_lockmanager_api \
test_lockmanager_api_lockrelease \
test_lockmanager_api_servercrash \
test_lockmanager_api_acquireretry
+endif
EXTRA_DIST = \
test_lockmanager_api.conf
@@ -79,4 +81,4 @@
test_lockmanager_api_acquireretry_LDADD = \
$(top_builddir)/src/util/libgnunetutil.la \
$(top_builddir)/src/testing/libgnunettesting.la \
- libgnunetlockmanager.la
\ No newline at end of file
+ libgnunetlockmanager.la
Modified: gnunet/src/mesh/Makefile.am
===================================================================
--- gnunet/src/mesh/Makefile.am 2013-06-26 23:00:40 UTC (rev 27640)
+++ gnunet/src/mesh/Makefile.am 2013-06-27 06:11:55 UTC (rev 27641)
@@ -125,8 +125,9 @@
gnunet_service_mesh_new_LDFLAGS = -lrt
endif
-
+if HAVE_TESTING
noinst_LIBRARIES = libgnunetmeshtest.a $(noinst_LIB_EXP)
+endif
libgnunetmeshtest_a_SOURCES = \
mesh_test_lib.c mesh_test_lib.h
@@ -146,7 +147,7 @@
libgnunetmesh2test_a_DEPENDENCIES = \
libgnunetmesh2.la
-
+if HAVE_TESTING
check_PROGRAMS = \
test_mesh_api \
test_mesh_tree_api \
@@ -164,6 +165,7 @@
test_mesh_small_speed_nobuf_backwards \
test_mesh_small_speed_ack \
$(EXP_TESTS)
+endif
test_mesh_api_SOURCES = \
test_mesh_api.c
Modified: gnunet/src/namestore/Makefile.am
===================================================================
--- gnunet/src/namestore/Makefile.am 2013-06-26 23:00:40 UTC (rev 27640)
+++ gnunet/src/namestore/Makefile.am 2013-06-27 06:11:55 UTC (rev 27641)
@@ -21,19 +21,18 @@
if HAVE_SQLITE
SQLITE_PLUGIN = libgnunet_plugin_namestore_sqlite.la
+if HAVE_TESTING
SQLITE_TESTS = test_plugin_namestore_sqlite
endif
+endif
if HAVE_POSTGRES
+POSTGRES_PLUGIN = libgnunet_plugin_namestore_postgres.la
+if HAVE_TESTING
POSTGRES_TESTS = test_plugin_namestore_postgres
-POSTGRES_PLUGIN = libgnunet_plugin_namestore_postgres.la
endif
-
-if HAVE_SQLITE
-check_PROGRAMS = \
- $(SQLITE_TESTS) \
- $(POSTGRES_TESTS) \
- test_namestore_record_serialization \
- test_namestore_api_sign_verify \
+endif
+if HAVE_TESTING
+TESTING_TESTS = \
test_namestore_api \
test_namestore_api_put \
test_namestore_api_lookup \
@@ -45,9 +44,18 @@
test_namestore_api_zone_to_name \
test_namestore_api_zone_iteration \
test_namestore_api_zone_iteration_specific_zone \
- test_namestore_api_zone_iteration_stop
+ test_namestore_api_zone_iteration_stop
endif
+if HAVE_SQLITE
+check_PROGRAMS = \
+ $(SQLITE_TESTS) \
+ $(POSTGRES_TESTS) \
+ $(TESTING_TESTS) \
+ test_namestore_record_serialization \
+ test_namestore_api_sign_verify
+endif
+
if ENABLE_TEST_RUN
TESTS = $(check_PROGRAMS)
endif
Modified: gnunet/src/nse/Makefile.am
===================================================================
--- gnunet/src/nse/Makefile.am 2013-06-26 23:00:40 UTC (rev 27640)
+++ gnunet/src/nse/Makefile.am 2013-06-27 06:11:55 UTC (rev 27641)
@@ -32,8 +32,10 @@
libexec_PROGRAMS = \
gnunet-service-nse
+if HAVE_TESTING
noinst_PROGRAMS = \
gnunet-nse-profiler
+endif
gnunet_nse_profiler_SOURCES = \
gnunet-nse-profiler.c
@@ -69,12 +71,13 @@
MULTIPEER_TEST = test_nse_multipeer
endif
+if HAVE_TESTING
check_PROGRAMS = \
test_nse_api \
perf_kdf \
$(MULTIPEER_TEST)
+endif
-
if ENABLE_TEST_RUN
TESTS = $(check_PROGRAMS)
endif
Modified: gnunet/src/peerinfo/Makefile.am
===================================================================
--- gnunet/src/peerinfo/Makefile.am 2013-06-26 23:00:40 UTC (rev 27640)
+++ gnunet/src/peerinfo/Makefile.am 2013-06-27 06:11:55 UTC (rev 27641)
@@ -46,12 +46,14 @@
perf_peerinfo_api
endif
+if HAVE_TESTING
check_PROGRAMS = \
test_peerinfo_shipped_hellos \
test_peerinfo_api \
test_peerinfo_api_friend_only \
test_peerinfo_api_notify_friend_only \
$(PEERINFO_BENCHMARKS)
+endif
if ENABLE_TEST_RUN
TESTS = $(check_PROGRAMS)
Modified: gnunet/src/pt/Makefile.am
===================================================================
--- gnunet/src/pt/Makefile.am 2013-06-26 23:00:40 UTC (rev 27640)
+++ gnunet/src/pt/Makefile.am 2013-06-27 06:11:55 UTC (rev 27641)
@@ -31,6 +31,7 @@
$(top_builddir)/src/util/libgnunetutil.la \
$(GN_LIBINTL)
+if HAVE_TESTING
if HAVE_MHD
if HAVE_LIBCURL
if LINUX
@@ -50,6 +51,7 @@
endif
endif
endif
+endif
check_PROGRAMS = $(VPN_TEST)
Modified: gnunet/src/regex/Makefile.am
===================================================================
--- gnunet/src/regex/Makefile.am 2013-06-26 23:00:40 UTC (rev 27640)
+++ gnunet/src/regex/Makefile.am 2013-06-27 06:11:55 UTC (rev 27641)
@@ -108,11 +108,12 @@
libgnunetregextest_a_DEPENDENCIES = \
libgnunetregex_internal.a
-
+if HAVE_TESTING
noinst_PROGRAMS = $(noinst_mysql_progs) \
perf-regex \
gnunet-regex-profiler \
gnunet-daemon-regexprofiler
+endif
perf_regex_SOURCES = \
perf-regex.c
Modified: gnunet/src/set/Makefile.am
===================================================================
--- gnunet/src/set/Makefile.am 2013-06-26 23:00:40 UTC (rev 27640)
+++ gnunet/src/set/Makefile.am 2013-06-27 06:11:55 UTC (rev 27641)
@@ -62,8 +62,10 @@
libgnunetset_la_LDFLAGS = \
$(GN_LIB_LDFLAGS)
+if HAVE_TESTING
check_PROGRAMS = \
test_set_api
+endif
if ENABLE_TEST_RUN
TESTS = $(check_PROGRAMS)
Modified: gnunet/src/stream/Makefile.am
===================================================================
--- gnunet/src/stream/Makefile.am 2013-06-26 23:00:40 UTC (rev 27640)
+++ gnunet/src/stream/Makefile.am 2013-06-27 06:11:55 UTC (rev 27641)
@@ -27,6 +27,7 @@
perf_stream_api
endif
+if HAVE_TESTING
check_PROGRAMS = \
test_stream_2peers \
test_stream_2peers_halfclose \
@@ -35,6 +36,7 @@
test_stream_sequence_wraparound \
mesh-test \
$(STREAM_BENCHMARKS)
+endif
EXTRA_DIST = test_stream_local.conf
@@ -95,4 +97,4 @@
mesh_test_SOURCES = mesh-test.c
mesh_test_LDADD = \
$(top_builddir)/src/mesh/libgnunetmesh.la \
- $(top_builddir)/src/util/libgnunetutil.la
\ No newline at end of file
+ $(top_builddir)/src/util/libgnunetutil.la
Modified: gnunet/src/topology/Makefile.am
===================================================================
--- gnunet/src/topology/Makefile.am 2013-06-26 23:00:40 UTC (rev 27640)
+++ gnunet/src/topology/Makefile.am 2013-06-27 06:11:55 UTC (rev 27641)
@@ -27,9 +27,10 @@
$(GN_LIBINTL)
-
+if HAVE_TESTING
check_PROGRAMS = \
test_gnunet_daemon_topology
+endif
if ENABLE_TEST_RUN
TESTS = $(check_PROGRAMS)
Modified: gnunet/src/transport/Makefile.am
===================================================================
--- gnunet/src/transport/Makefile.am 2013-06-26 23:00:40 UTC (rev 27640)
+++ gnunet/src/transport/Makefile.am 2013-06-27 06:11:55 UTC (rev 27641)
@@ -81,9 +81,13 @@
$(WLAN_BIN_SENDER) \
$(WLAN_BIN_RECEIVER)
+if HAVE_TESTING
+TESTING_LIBS = libgnunettransporttesting.la
+endif
+
lib_LTLIBRARIES = \
libgnunettransport.la \
- libgnunettransporttesting.la
+ $(TESTING_LIBS)
libgnunettransporttesting_la_SOURCES = \
transport-testing.c transport-testing.h
@@ -308,6 +312,7 @@
libgnunet_plugin_transport_https_server_la_CFLAGS = \
$(CFLAGS) -DBUILD_HTTPS
+if HAVE_TESTING
check_PROGRAMS = \
test_transport_testing_startstop \
test_transport_testing_restart \
@@ -368,6 +373,7 @@
$(HTTP_QUOTA_TEST) \
$(HTTPS_QUOTA_TEST) \
$(WLAN_QUOTA_TEST)
+endif
if ENABLE_TEST_RUN
TESTS = \
Modified: gnunet/src/util/Makefile.am
===================================================================
--- gnunet/src/util/Makefile.am 2013-06-26 23:00:40 UTC (rev 27640)
+++ gnunet/src/util/Makefile.am 2013-06-27 06:11:55 UTC (rev 27641)
@@ -124,14 +124,18 @@
$(GN_LIB_LDFLAGS) \
-version-info 11:0:2
+if HAVE_TESTING
+ GNUNET_ECC = gnunet-ecc
+endif
+
libexec_PROGRAMS = \
gnunet-service-resolver
bin_PROGRAMS = \
gnunet-resolver \
gnunet-config \
- gnunet-ecc \
+ $(GNUNET_ECC) \
gnunet-rsa \
gnunet-uri
Modified: gnunet/src/util/test_mq.c
===================================================================
--- gnunet/src/util/test_mq.c 2013-06-26 23:00:40 UTC (rev 27640)
+++ gnunet/src/util/test_mq.c 2013-06-27 06:11:55 UTC (rev 27641)
@@ -24,7 +24,6 @@
*/
#include "platform.h"
#include "gnunet_util_lib.h"
-#include "gnunet_testing_lib.h"
GNUNET_NETWORK_STRUCT_BEGIN
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r27641 - in gnunet: . src src/ats src/core src/datacache src/datastore src/dht src/dv src/fs src/gns src/lockmanager src/mesh src/namestore src/nse src/peerinfo src/pt src/regex src/set src/stream src/topology src/transport src/util,
gnunet <=