pythonize test_dht_tools
[oweals/gnunet.git] / src / dht / Makefile.am
index c75525ee328e9b7b9031339ca4136e6e84b1dfdb..a7d22c0edfbf90ade5015b556bdc8e06f14e9f6c 100644 (file)
@@ -212,7 +212,18 @@ EXTRA_DIST = \
   test_dht_multipeer_data.conf \
   test_dht_2dtorus.conf \
   test_dht_line.conf \
+  test_dht_tools.py.in \
   multipeer_topo.dat
 
 check_SCRIPTS = \
-  test_dht_tools.sh
+  test_dht_tools.py
+
+do_subst = $(SED) -e 's,[@]PYTHON[@],$(PYTHON),g'
+
+%.py: %.py.in Makefile
+       $(do_subst) < $(srcdir)/$< > $@
+       chmod +x $@
+
+test_dht_tools.py: test_dht_tools.py.in Makefile
+       $(do_subst) < $(srcdir)/test_dht_tools.py.in > test_dht_tools.py
+       chmod +x test_dht_tools.py