dhtlog updates
[oweals/gnunet.git] / src / peerinfo-tool / Makefile.am
index c10440f92f93c9484c8e9dc07bb0857820f340cf..f4f41ffad4417139b7f8c881478b706fca2dd2bf 100644 (file)
@@ -19,6 +19,23 @@ gnunet_peerinfo_LDADD = \
   $(top_builddir)/src/transport/libgnunettransport.la \
   $(top_builddir)/src/util/libgnunetutil.la 
 
+if HAVE_PYTHON_PEXPECT
+check_SCRIPTS = \
+ test_gnunet_peerinfo.py 
+endif
+
+if !DISABLE_TEST_RUN
+TESTS = $(check_SCRIPTS)
+endif
+
+do_subst = $(SED) -e 's,[@]PYTHON[@],$(PYTHON),g'
+
+test_gnunet_peerinfo.py: test_gnunet_peerinfo.py.in Makefile
+       $(do_subst) < $(srcdir)/test_gnunet_peerinfo.py.in > test_gnunet_peerinfo.py
+       chmod +x test_gnunet_peerinfo.py
+
+EXTRA_DIST = \
+  test_gnunet_peerinfo.py.in \
+  test_gnunet_peerinfo_data.conf
 
-#check_SCRIPTS = \
-#  test_gnunet_peerinfo.sh
+CLEANFILES = $(check_SCRIPTS)