From 3da9fbbe83c6c77c3a6db8d93b200dd81ef86a5f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20v=2E=20L=C3=B6wis?= Date: Sun, 30 Mar 2014 21:32:03 +0200 Subject: [PATCH] Add test case for freeze. --- Misc/NEWS | 2 ++ Tools/freeze/test/Makefile | 11 +++++++++++ Tools/freeze/test/ok.py | 2 ++ 3 files changed, 15 insertions(+) create mode 100644 Tools/freeze/test/Makefile create mode 100644 Tools/freeze/test/ok.py diff --git a/Misc/NEWS b/Misc/NEWS index 8d0a89b8b4d..eb514820c1a 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 00000000000..1679f723e7a --- /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 00000000000..e15e0b45032 --- /dev/null +++ b/Tools/freeze/test/ok.py @@ -0,0 +1,2 @@ +import sys +sys.exit(0)