diff options
author | David Barksdale <amatus.amongus@gmail.com> | 2013-06-27 06:11:55 +0000 |
---|---|---|
committer | David Barksdale <amatus.amongus@gmail.com> | 2013-06-27 06:11:55 +0000 |
commit | ea7eed529e12dcbed6a6775b818d8b93b9505f18 (patch) | |
tree | 521ba312e1268d1afb249db03c1b97d5a79181a1 /src/namestore/Makefile.am | |
parent | 48e50f64d8c05b2a6dab327156ea86fc92f171cf (diff) | |
download | gnunet-ea7eed529e12dcbed6a6775b818d8b93b9505f18.tar.gz gnunet-ea7eed529e12dcbed6a6775b818d8b93b9505f18.zip |
Make building gnunet-testing lib optional.
This is all because emscripten doesn't have getaddrinfo.
Diffstat (limited to 'src/namestore/Makefile.am')
-rw-r--r-- | src/namestore/Makefile.am | 26 |
1 files changed, 17 insertions, 9 deletions
diff --git a/src/namestore/Makefile.am b/src/namestore/Makefile.am index 1d36fe792..df16e04bd 100644 --- a/src/namestore/Makefile.am +++ b/src/namestore/Makefile.am | |||
@@ -21,19 +21,18 @@ endif | |||
21 | 21 | ||
22 | if HAVE_SQLITE | 22 | if HAVE_SQLITE |
23 | SQLITE_PLUGIN = libgnunet_plugin_namestore_sqlite.la | 23 | SQLITE_PLUGIN = libgnunet_plugin_namestore_sqlite.la |
24 | if HAVE_TESTING | ||
24 | SQLITE_TESTS = test_plugin_namestore_sqlite | 25 | SQLITE_TESTS = test_plugin_namestore_sqlite |
25 | endif | 26 | endif |
27 | endif | ||
26 | if HAVE_POSTGRES | 28 | if HAVE_POSTGRES |
27 | POSTGRES_TESTS = test_plugin_namestore_postgres | ||
28 | POSTGRES_PLUGIN = libgnunet_plugin_namestore_postgres.la | 29 | POSTGRES_PLUGIN = libgnunet_plugin_namestore_postgres.la |
30 | if HAVE_TESTING | ||
31 | POSTGRES_TESTS = test_plugin_namestore_postgres | ||
29 | endif | 32 | endif |
30 | 33 | endif | |
31 | if HAVE_SQLITE | 34 | if HAVE_TESTING |
32 | check_PROGRAMS = \ | 35 | TESTING_TESTS = \ |
33 | $(SQLITE_TESTS) \ | ||
34 | $(POSTGRES_TESTS) \ | ||
35 | test_namestore_record_serialization \ | ||
36 | test_namestore_api_sign_verify \ | ||
37 | test_namestore_api \ | 36 | test_namestore_api \ |
38 | test_namestore_api_put \ | 37 | test_namestore_api_put \ |
39 | test_namestore_api_lookup \ | 38 | test_namestore_api_lookup \ |
@@ -45,7 +44,16 @@ check_PROGRAMS = \ | |||
45 | test_namestore_api_zone_to_name \ | 44 | test_namestore_api_zone_to_name \ |
46 | test_namestore_api_zone_iteration \ | 45 | test_namestore_api_zone_iteration \ |
47 | test_namestore_api_zone_iteration_specific_zone \ | 46 | test_namestore_api_zone_iteration_specific_zone \ |
48 | test_namestore_api_zone_iteration_stop | 47 | test_namestore_api_zone_iteration_stop |
48 | endif | ||
49 | |||
50 | if HAVE_SQLITE | ||
51 | check_PROGRAMS = \ | ||
52 | $(SQLITE_TESTS) \ | ||
53 | $(POSTGRES_TESTS) \ | ||
54 | $(TESTING_TESTS) \ | ||
55 | test_namestore_record_serialization \ | ||
56 | test_namestore_api_sign_verify | ||
49 | endif | 57 | endif |
50 | 58 | ||
51 | if ENABLE_TEST_RUN | 59 | if ENABLE_TEST_RUN |