fix include
[oweals/gnunet.git] / src / integration-tests / Makefile.am
index 8fab9a837ff5b1c383ecc8bd9afd65bf70a257c2..6fff0b407b817807b88df6a27b8dce1312bf96f2 100644 (file)
@@ -1,3 +1,4 @@
+# This Makefile.am is in the public domain
 AM_CPPFLAGS = -I$(top_srcdir)/src/include
 
 if MINGW
@@ -17,18 +18,25 @@ if HAVE_PYTHON
 check_SCRIPTS = \
   test_integration_bootstrap_and_connect.py \
   test_integration_disconnect.py \
+  test_integration_disconnect_nat.py \
   test_integration_reconnect.py \
-  test_integration_reconnect_nat.py \    
+  test_integration_reconnect_nat.py \
   test_integration_clique.py
-# test_integration_clique_nat.py \
-# test_integration_connect_on_restart.py
 endif
 
 
 if HAVE_MHD
 if ENABLE_TEST_RUN
+AM_TESTS_ENVIRONMENT=export GNUNET_PREFIX=$${GNUNET_PREFIX:-@libdir@};export PATH=$${GNUNET_PREFIX:-@prefix@}/bin:$$PATH;unset XDG_DATA_HOME;unset XDG_CONFIG_HOME;
+if HAVE_LIBGNURL
 TESTS = \
  $(check_SCRIPTS)
+else
+if HAVE_LIBCURL
+TESTS = \
+ $(check_SCRIPTS)
+endif
+endif
 endif
 endif
 
@@ -54,6 +62,10 @@ test_integration_disconnect.py: test_integration_disconnect.py.in Makefile
        $(do_subst) < $(srcdir)/test_integration_disconnect.py.in > test_integration_disconnect.py
        chmod +x test_integration_disconnect.py
 
+test_integration_disconnect_nat.py: test_integration_disconnect_nat.py.in Makefile
+       $(do_subst) < $(srcdir)/test_integration_disconnect_nat.py.in > test_integration_disconnect_nat.py
+       chmod +x test_integration_disconnect_nat.py
+
 test_integration_reconnect.py: test_integration_reconnect.py.in Makefile
        $(do_subst) < $(srcdir)/test_integration_reconnect.py.in > test_integration_reconnect.py
        chmod +x test_integration_reconnect.py
@@ -66,20 +78,13 @@ test_integration_clique.py: test_integration_clique.py.in Makefile
        $(do_subst) < $(srcdir)/test_integration_clique.py.in > test_integration_clique.py
        chmod +x test_integration_clique.py
 
-#test_integration_clique_nat.py: test_integration_clique_nat.py.in Makefile
-#      $(do_subst) < $(srcdir)/test_integration_clique_nat.py.in > test_integration_clique_nat.py
-#      chmod +x test_integration_clique_nat.py
-
-#test_integration_connect_on_restart.py: test_integration_connect_on_restart.py.in Makefile
-#      $(do_subst) < $(srcdir)/test_integration_connect_on_restart.py.in > test_integration_connect_on_restart.py
-#      chmod +x test_integration_connect_on_restart.py
-
 
 EXTRA_DIST = \
    gnunet_testing.py.in \
    gnunet_pyexpect.py.in \
    test_integration_bootstrap_and_connect.py.in \
    test_integration_disconnect.py.in \
+   test_integration_disconnect_nat.py.in \
    test_integration_reconnect.py.in \
    test_integration_reconnect_nat.py.in \
    test_integration_clique.py.in \
@@ -92,7 +97,6 @@ EXTRA_DIST = \
    hostkeys/c_no_nat_client \
    hostkeys/c_no_nat_client_2 \
    hostkeys/c_nat_client
-#   test_integration_clique_nat.py.in
 
 CLEANFILES = \
        $(check_SCRIPTS) \