]> granicus.if.org Git - python/commitdiff
Add test case for freeze.
authorMartin v. Löwis <martin@v.loewis.de>
Sun, 30 Mar 2014 19:32:03 +0000 (21:32 +0200)
committerMartin v. Löwis <martin@v.loewis.de>
Sun, 30 Mar 2014 19:32:03 +0000 (21:32 +0200)
Misc/NEWS
Tools/freeze/test/Makefile [new file with mode: 0644]
Tools/freeze/test/ok.py [new file with mode: 0644]

index 8d0a89b8b4dacd31ba0a9102fb5d1cdddff421b1..eb514820c1ae870dc66e7880859f70b5113e9465 100644 (file)
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -120,6 +120,8 @@ Documentation
 Tests
 -----
 
+- Add test case for freeze.
+
 - Issue #20743: Fix a reference leak in test_tcl.
 
 - Issue #21097: Move test_namespace_pkgs into test_importlib.
diff --git a/Tools/freeze/test/Makefile b/Tools/freeze/test/Makefile
new file mode 100644 (file)
index 0000000..1679f72
--- /dev/null
@@ -0,0 +1,11 @@
+# Makefile to test freeze
+# set PYTHON to path of Python interpreter to test
+PYTHON=python
+# set OUTDIR to the temp directory for freeze
+OUTDIR=outdir
+
+test:
+       $(PYTHON) ../freeze.py -o $(OUTDIR) ok.py
+       make -C $(OUTDIR)
+       $(OUTDIR)/ok
+       
diff --git a/Tools/freeze/test/ok.py b/Tools/freeze/test/ok.py
new file mode 100644 (file)
index 0000000..e15e0b4
--- /dev/null
@@ -0,0 +1,2 @@
+import sys
+sys.exit(0)