instead of
int i,j;
+
+
+
+Build-system:
+
+If you have code that is likely not to compile or build rules you might want to not
+trigger for most developers, use "if HAVE_EXPERIMENTAL" in your Makefile.am. Then
+it is OK to (temporarily) add non-compiling (or known-to-not-port) code.
+
+If you want to compile all testcases but NOT run them, run configure with the
+--enable-test-suppression option.
+
+If you want to obtain code coverage results, run configure with the
+--enable-coverage option and run the coverage.sh script in contrib/.
+
AC_SUBST(EXT_LIB_PATH)
+# should 'make check' run tests?
+AC_MSG_CHECKING(whether to disable running tests)
+AC_ARG_ENABLE(testruns,
+ [AS_HELP_STRING([--enable-test-suppression],
+ [disable running tests on make check])],
+ [disable_tests_run=$enableval],
+ [disable_tests_run="no"])
+AC_MSG_RESULT($disable_test_run)
+AM_CONDITIONAL([DISABLE_TEST_RUN], [test "x$disable_tests_run" = "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_MSG_RESULT($enable_experimental)
+AM_CONDITIONAL([HAVE_EXPERIMENTAL], [test "x$enable_experimental" = "xyes"])
+
# gcov compilation
use_gcov=no
AC_ARG_ENABLE([coverage], AS_HELP_STRING([--enable-coverage],
AC_MSG_NOTICE([NOTICE: libesmtp not found, monkey will not be installed.])
fi
+if test "x$pcap" != "x1"
+then
+ AC_MSG_NOTICE([NOTICE: libpcap not found, WiFi support will not be installed.])
+fi
+
if test "x$openssl" != "x1"
then
AC_MSG_NOTICE([NOTICE: OpenSSL not found, monkey will not be installed.])
check_SCRIPTS = \
test_gnunet_arm.sh
+if !DISABLE_TEST_RUN
TESTS = $(check_PROGRAMS) $(check_SCRIPTS)
+endif
test_arm_api_SOURCES = \
test_arm_api.c
test_core_api \
test_core_api_reliability
+if !DISABLE_TEST_RUN
TESTS = $(check_PROGRAMS)
+endif
test_core_api_SOURCES = \
test_core_api.c
test_datacache_quota \
perf_datacache
+if !DISABLE_TEST_RUN
TESTS = $(check_PROGRAMS)
+endif
test_datacache_SOURCES = \
test_datacache.c
perf_datastore_api \
perf_plugin_datastore
+if !DISABLE_TEST_RUN
TESTS = $(check_PROGRAMS)
+endif
test_datastore_api_SOURCES = \
test_datastore_api.c
endif
plugindir = $(libdir)/gnunet
-HAVE_MYSQL = 0
+HAVE_MYSQL=0
if HAVE_MYSQL
MYSQL_PLUGIN = libgnunet_plugin_dhtlog_mysql.la
endif
$(GN_LIB_LDFLAGS) $(WINFLAGS) \
-version-info 0:0:0
-if HAVE_MYSQL
+if HAVE_EXPERIMENTAL
STUD_PROGS = gnunet-service-dht-can \
gnunet-service-dht-freenet \
gnunet-service-dht-kademlia \
test_dht_multipeer \
test_dhtlog
+if !DISABLE_TEST_RUN
TESTS = test_dht_api $(check_SCRIPTS) \
test_dht_twopeer \
test_dht_twopeer_put_get
+endif
test_dht_api_SOURCES = \
test_dht_api.c
$(top_builddir)/src/util/libgnunetutil.la
libgnunet_plugin_transport_dv_la_LDFLAGS = \
$(GN_PLUGIN_LDFLAGS)
-
-
+
+
check_PROGRAMS = \
test_transport_api_dv
# test_dv_topology
-
+
+if !DISABLE_TEST_RUN
TESTS = $(check_PROGRAMS) $(check_SCRIPTS)
+endif
test_transport_api_dv_SOURCES = \
test_transport_api_dv.c
check_PROGRAMS = \
test_fragmentation
+if !DISABLE_TEST_RUN
TESTS = $(check_PROGRAMS)
+endif
test_fragmentation_SOURCES = \
test_frag_ji.c
test_gnunet_fs_idx.py
endif
+if !DISABLE_TEST_RUN
TESTS = \
test_fs_directory \
test_fs_download \
test_gnunet_service_fs_migration \
test_gnunet_service_fs_p2p \
$(check_SCRIPTS)
+endif
test_fs_directory_SOURCES = \
check_PROGRAMS = \
test_hello
+if !DISABLE_TEST_RUN
TESTS = $(check_PROGRAMS)
+endif
test_hello_SOURCES = \
test_hello.c
test_gnunet_daemon_hostlist_learning
if HAVE_MHD
+if !DISABLE_TEST_RUN
TESTS = \
test_gnunet_daemon_hostlist \
test_gnunet_daemon_hostlist_learning
endif
+endif
test_gnunet_daemon_hostlist_SOURCES = \
test_gnunet_daemon_hostlist.c
$(top_builddir)/src/util/libgnunetutil.la \
$(GN_LIBINTL)
-
+if !DISABLE_TEST_RUN
#TESTS = $(check_PROGRAMS) $(check_SCRIPTS)
+endif
check_SCRIPTS = \
test_gnunet_monkey.sh
check_PROGRAMS = \
test-nat
+if !DISABLE_TEST_RUN
TESTS = $(check_PROGRAMS)
+endif
test_nat_SOURCES = \
test_nat.c
test_gnunet_peerinfo.py
endif
+if !DISABLE_TEST_RUN
TESTS = $(check_SCRIPTS)
+endif
do_subst = $(SED) -e 's,[@]PYTHON[@],$(PYTHON),g'
check_PROGRAMS = \
test_peerinfo_api
-TESTS = $(check_PROGRAMS) # $(check_SCRIPTS)
+if !DISABLE_TEST_RUN
+TESTS = $(check_PROGRAMS)
+endif
test_peerinfo_api_SOURCES = \
test_peerinfo_api.c
test_statistics_api \
test_statistics_api_loop
+if !DISABLE_TEST_RUN
TESTS = $(check_PROGRAMS) $(check_SCRIPTS)
+endif
test_statistics_api_SOURCES = \
test_statistics_api.c
check_PROGRAMS = \
test_template_api
+if !DISABLE_TEST_RUN
TESTS = $(check_PROGRAMS)
+endif
test_template_api_SOURCES = \
test_template_api.c
test_testing_topology_internat \
test_testing_topology_none \
test_testing_topology_scale_free
-
+
+if !DISABLE_TEST_RUN
TESTS = \
test_testing \
test_testing_connect \
# test_testing_topology_erdos_renyi \
# test_testing_topology_internat \
# test_testing_topology_scale_free
+endif
test_testing_SOURCES = \
test_testing.c
check_PROGRAMS = \
test_gnunet_daemon_topology
+if !DISABLE_TEST_RUN
TESTS = $(check_PROGRAMS)
+endif
test_gnunet_daemon_topology_SOURCES = \
test_gnunet_daemon_topology.c
$(HTTPS_REL_TEST)
# TODO: add tests for nat, etc.
+if !DISABLE_TEST_RUN
TESTS = \
test_transport_api_tcp \
test_transport_api_tcp_nat \
test_transport_api_reliability_tcp_nat \
$(HTTP_REL_TEST) \
$(HTTPS_REL_TEST)
+endif
test_transport_api_tcp_SOURCES = \
test_transport_api.c
$(GN_LIBINTL)
-check_PROGRAMS = \
+check_PROGRAMS = \
test_upnp
+if !DISABLE_TEST_RUN
TESTS = $(check_PROGRAMS)
+endif
test_upnp_SOURCES = \
test_upnp.c
perf_crypto_hash \
test_os_start_process
-
+if !DISABLE_TEST_RUN
TESTS = $(check_PROGRAMS)
-
+endif
test_bio_SOURCES = \
test_bio.c
#check_PROGRAMS = \
# test_XXX
+if !DISABLE_TEST_RUN
#TESTS = \
# test_transport_api_tcp
-
+endif
#test_transport_api_tcp_SOURCES = \
# test_transport_api.c