+if ENABLE_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
+
+CLEANFILES = $(check_SCRIPTS)