summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMartin v. Löwis <martin@v.loewis.de>2014-03-30 18:18:58 (GMT)
committerMartin v. Löwis <martin@v.loewis.de>2014-03-30 18:18:58 (GMT)
commit80c09cfa491777e46bdb2792ee457b22ccb09a81 (patch)
tree4be4e10cbb4bf25838d505b4ff6b9c9ae3e0b5f4
parente5bb551cc5042a2523f06d0135d055e2274ae0d7 (diff)
downloadcpython-80c09cfa491777e46bdb2792ee457b22ccb09a81.zip
cpython-80c09cfa491777e46bdb2792ee457b22ccb09a81.tar.gz
cpython-80c09cfa491777e46bdb2792ee457b22ccb09a81.tar.bz2
Add test case for freeze.
-rw-r--r--Misc/NEWS2
-rw-r--r--Tools/freeze/test/Makefile10
-rw-r--r--Tools/freeze/test/ok.py2
3 files changed, 14 insertions, 0 deletions
diff --git a/Misc/NEWS b/Misc/NEWS
index f0187c4..f8ee35e 100644
--- 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
index 0000000..bc0aada
--- /dev/null
+++ b/Tools/freeze/test/Makefile
@@ -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
index 0000000..e15e0b4
--- /dev/null
+++ b/Tools/freeze/test/ok.py
@@ -0,0 +1,2 @@
+import sys
+sys.exit(0)