From 80c09cfa491777e46bdb2792ee457b22ccb09a81 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20v=2E=20L=C3=B6wis?= Date: Sun, 30 Mar 2014 20:18:58 +0200 Subject: Add test case for freeze. --- Misc/NEWS | 2 ++ Tools/freeze/test/Makefile | 10 ++++++++++ Tools/freeze/test/ok.py | 2 ++ 3 files changed, 14 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 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) -- cgit v0.12