diff options
author | David Barksdale <amatus.amongus@gmail.com> | 2010-04-30 05:35:52 +0000 |
---|---|---|
committer | David Barksdale <amatus.amongus@gmail.com> | 2010-04-30 05:35:52 +0000 |
commit | b24b1e26e24f18c77035f4255dee90757b08365b (patch) | |
tree | e651fe85c06357ee0db3e5b5aceaf320c1b23184 /src/peerinfo-tool | |
parent | efbd30b934fa773634dd2b2e18e2824795973bc7 (diff) | |
download | gnunet-b24b1e26e24f18c77035f4255dee90757b08365b.tar.gz gnunet-b24b1e26e24f18c77035f4255dee90757b08365b.zip |
Move python test scripts to .py.in and sed in the correct python path.
Diffstat (limited to 'src/peerinfo-tool')
-rw-r--r-- | src/peerinfo-tool/Makefile.am | 15 | ||||
-rwxr-xr-x | src/peerinfo-tool/test_gnunet_peerinfo.py.in (renamed from src/peerinfo-tool/test_gnunet_peerinfo.py) | 2 |
2 files changed, 14 insertions, 3 deletions
diff --git a/src/peerinfo-tool/Makefile.am b/src/peerinfo-tool/Makefile.am index 1fc088ad9..8b74efefb 100644 --- a/src/peerinfo-tool/Makefile.am +++ b/src/peerinfo-tool/Makefile.am | |||
@@ -20,8 +20,19 @@ gnunet_peerinfo_LDADD = \ | |||
20 | $(top_builddir)/src/util/libgnunetutil.la | 20 | $(top_builddir)/src/util/libgnunetutil.la |
21 | 21 | ||
22 | if HAVE_PYTHON_PEXPECT | 22 | if HAVE_PYTHON_PEXPECT |
23 | TESTS_ENVIRONMENT = $(PYTHON) | 23 | check_SCRIPTS = \ |
24 | TESTS = \ | ||
25 | test_gnunet_peerinfo.py | 24 | test_gnunet_peerinfo.py |
26 | endif | 25 | endif |
27 | 26 | ||
27 | TESTS = $(check_SCRIPTS) | ||
28 | |||
29 | do_subst = $(SED) -e 's,[@]PYTHON[@],$(PYTHON),g' | ||
30 | |||
31 | test_gnunet_peerinfo.py: test_gnunet_peerinfo.py.in Makefile | ||
32 | $(do_subst) < $(srcdir)/test_gnunet_peerinfo.py.in > test_gnunet_peerinfo.py | ||
33 | chmod +x test_gnunet_peerinfo.py | ||
34 | |||
35 | EXTRADIST = \ | ||
36 | test_gnunet_peerinfo.py.in | ||
37 | |||
38 | CLEANFILES = $(check_SCRIPTS) | ||
diff --git a/src/peerinfo-tool/test_gnunet_peerinfo.py b/src/peerinfo-tool/test_gnunet_peerinfo.py.in index bab59ee47..ba542f28a 100755 --- a/src/peerinfo-tool/test_gnunet_peerinfo.py +++ b/src/peerinfo-tool/test_gnunet_peerinfo.py.in | |||
@@ -1,4 +1,4 @@ | |||
1 | #!/usr/bin/env python | 1 | #!@PYTHON@ |
2 | # This file is part of GNUnet. | 2 | # This file is part of GNUnet. |
3 | # (C) 2010 Christian Grothoff (and other contributing authors) | 3 | # (C) 2010 Christian Grothoff (and other contributing authors) |
4 | # | 4 | # |