From c9e6c447babe02d35b92c167eadb9246e5968110 Mon Sep 17 00:00:00 2001 From: bdbaddog Date: Sun, 13 Sep 2009 22:51:45 +0000 Subject: [PATCH] Remove last checkin. git-svn-id: http://scons.tigris.org/svn/scons/trunk@4358 fdb21ef1-2011-0410-befe-b5e4ea1792b1 --- test/TEX/nomencl.py | 20 +++++++++----------- test/option/debug-memoizer.py | 24 +++++++++++------------- 2 files changed, 20 insertions(+), 24 deletions(-) diff --git a/test/TEX/nomencl.py b/test/TEX/nomencl.py index 643b2e43..63359f56 100644 --- a/test/TEX/nomencl.py +++ b/test/TEX/nomencl.py @@ -54,10 +54,9 @@ env.PDF('nomencl', 'nomencl.tex') test.write('nomencl.tex', r""" \documentclass{article} -\usepackage[refpage,compatible]{nomencl} +\usepackage[refpage]{nomencl} -%\makenomenclature -\makeglossary +\makenomenclature \begin{document} @@ -65,8 +64,7 @@ test.write('nomencl.tex', r""" A nomenclature entry \nomenclature{gnu}{an animal or software group} and another\nomenclature{nix}{not sure}. -%\printnomenclature -\printglossary +\printnomenclature \end{document} """) @@ -75,9 +73,9 @@ test.run(arguments = '.', stderr=None) test.must_exist(test.workpath('nomencl.aux')) test.must_exist(test.workpath('nomencl.fls')) -#test.must_exist(test.workpath('nomencl.nlg')) -#test.must_exist(test.workpath('nomencl.nlo')) -#test.must_exist(test.workpath('nomencl.nls')) +test.must_exist(test.workpath('nomencl.nlg')) +test.must_exist(test.workpath('nomencl.nlo')) +test.must_exist(test.workpath('nomencl.nls')) test.must_exist(test.workpath('nomencl.log')) test.must_exist(test.workpath('nomencl.pdf')) @@ -88,9 +86,9 @@ test.must_not_contain_any_line(test.stdout(), [x]) test.must_not_exist(test.workpath('nomencl.aux')) test.must_not_exist(test.workpath('nomencl.fls')) -#test.must_not_exist(test.workpath('nomencl.nlg')) -#test.must_not_exist(test.workpath('nomencl.nlo')) -#test.must_not_exist(test.workpath('nomencl.nls')) +test.must_not_exist(test.workpath('nomencl.nlg')) +test.must_not_exist(test.workpath('nomencl.nlo')) +test.must_not_exist(test.workpath('nomencl.nls')) test.must_not_exist(test.workpath('nomencl.log')) test.must_not_exist(test.workpath('nomencl.pdf')) diff --git a/test/option/debug-memoizer.py b/test/option/debug-memoizer.py index 0bfc8296..5ad4bcf5 100644 --- a/test/option/debug-memoizer.py +++ b/test/option/debug-memoizer.py @@ -82,10 +82,7 @@ expect = [ if use_metaclass: def run_and_check(test, args, desc,stderr=None): - if stderr: - test.run(arguments = args,stderr=stderr) - else: - test.run(arguments = args) + test.run(arguments = args,stderr=".*"+TestSCons.deprecated_python_expr) test.must_contain_any_line(test.stdout(), expect) else: @@ -96,29 +93,30 @@ scons: warning: memoization is not supported in this version of Python \\(%s\\) expect_no_metaclasses = expect_no_metaclasses + TestSCons.file_expr - def run_and_check(test, args, desc,stderr=None): - if stderr: - test.run(arguments = args,stderr=expect_no_metaclasses+stderr) - else: - test.run(arguments = args,stderr=expect_no_metaclasses) - #test.run(arguments = args, stderr = expect_no_metaclasses+TestSCons.deprecated_python_expr) + def run_and_check(test, args, desc): + test.run(arguments = args, stderr = expect_no_metaclasses+".*"+TestSCons.deprecated_python_expr) test.must_not_contain_any_line(test.stdout(), expect) -for (args,stderr) in [('-h --debug=memoizer',''), ('--debug=memoizer','')]: - run_and_check(test, args, "command line '%s'" % args,stderr) +for args in ['-h --debug=memoizer', '--debug=memoizer']: + run_and_check(test, args, "command line '%s'" % args) test.must_match('file.out', "file.in\n") + + test.unlink("file.out") + + os.environ['SCONSFLAGS'] = '--debug=memoizer' -run_and_check(test, '', 'SCONSFLAGS=--debug=memoizer',stderr=TestSCons.deprecated_python_expr) +run_and_check(test, '', 'SCONSFLAGS=--debug=memoizer') test.must_match('file.out', "file.in\n") + test.pass_test() # Local Variables: -- 2.26.2