From: Martin v. Löwis Date: Sun, 30 Mar 2014 19:32:03 +0000 (+0200) Subject: Add test case for freeze. X-Git-Tag: v3.4.1rc1~155 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=3da9fbbe83c6c77c3a6db8d93b200dd81ef86a5f;p=python Add test case for freeze. --- diff --git a/Misc/NEWS b/Misc/NEWS index 8d0a89b8b4..eb514820c1 100644 --- 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 index 0000000000..1679f723e7 --- /dev/null +++ b/Tools/freeze/test/Makefile @@ -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 index 0000000000..e15e0b4503 --- /dev/null +++ b/Tools/freeze/test/ok.py @@ -0,0 +1,2 @@ +import sys +sys.exit(0)