]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Add test case for freeze.
authorMartin v. Löwis <martin@v.loewis.de>
Sun, 30 Mar 2014 18:18:58 +0000 (20:18 +0200)
committerMartin v. Löwis <martin@v.loewis.de>
Sun, 30 Mar 2014 18:18:58 +0000 (20:18 +0200)
Misc/NEWS
Tools/freeze/test/Makefile [new file with mode: 0644]
Tools/freeze/test/ok.py [new file with mode: 0644]

index f0187c48143aa3653d6257f70bca82103bd6966f..f8ee35ec662fa30d6d18767c8175440cbc38886a 100644 (file)
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -150,6 +150,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..bc0aada
--- /dev/null
@@ -0,0 +1,10 @@
+# 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)
+       
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)