Author: Remi Meier <meier...@student.ethz.ch> Branch: Changeset: r337:d197afc97b0e Date: 2013-07-02 07:53 +0200 http://bitbucket.org/pypy/stmgc/changeset/d197afc97b0e/
Log: add build and release versions of demo_random to tests diff --git a/c4/test/test_zdemo_random.py b/c4/test/test_zdemo_random.py --- a/c4/test/test_zdemo_random.py +++ b/c4/test/test_zdemo_random.py @@ -2,7 +2,7 @@ import os import subprocess -def test_and_run(): +def test_and_run_debug(): path = os.path.dirname(__file__) path = os.path.dirname(path) res = subprocess.call(["make", "debug-demo_random"], cwd=path) @@ -10,4 +10,19 @@ res = subprocess.call(["./debug-demo_random"], cwd=path) assert not res - +def test_and_run_build(): + path = os.path.dirname(__file__) + path = os.path.dirname(path) + res = subprocess.call(["make", "build-demo_random"], cwd=path) + assert not res + res = subprocess.call(["./build-demo_random"], cwd=path) + assert not res + +def test_and_run_release(): + path = os.path.dirname(__file__) + path = os.path.dirname(path) + res = subprocess.call(["make", "release-demo_random"], cwd=path) + assert not res + res = subprocess.call(["./release-demo_random"], cwd=path) + assert not res + _______________________________________________ pypy-commit mailing list pypy-commit@python.org http://mail.python.org/mailman/listinfo/pypy-commit