diff options
author | William Deegan <bill@baddogconsulting.com> | 2016-01-17 22:02:32 (GMT) |
---|---|---|
committer | William Deegan <bill@baddogconsulting.com> | 2016-01-17 22:02:32 (GMT) |
commit | 87d2714f989ab8082dc5bd4111c9d5212e81b1a9 (patch) | |
tree | bfc61a737c90e8aad39f42348b9c8bb3ef227138 /test/TEX | |
parent | 49bb971fdcb7c54c5044f5854de3c177a6f41d1f (diff) | |
download | SCons-87d2714f989ab8082dc5bd4111c9d5212e81b1a9.zip SCons-87d2714f989ab8082dc5bd4111c9d5212e81b1a9.tar.gz SCons-87d2714f989ab8082dc5bd4111c9d5212e81b1a9.tar.bz2 |
changes to skip tests on ubuntu-next when gcj and not real java, and also when no latex is available
Diffstat (limited to 'test/TEX')
-rw-r--r-- | test/TEX/TEX.py | 3 | ||||
-rw-r--r-- | test/TEX/bibliography.py | 12 | ||||
-rw-r--r-- | test/TEX/multi-run.py | 2 |
3 files changed, 15 insertions, 2 deletions
diff --git a/test/TEX/TEX.py b/test/TEX/TEX.py index 24d4bdd..42c1903 100644 --- a/test/TEX/TEX.py +++ b/test/TEX/TEX.py @@ -35,6 +35,9 @@ _python_ = TestSCons._python_ test = TestSCons.TestSCons() +have_latex = test.where_is('latex') +if not have_latex: + test.skip_test('Could not find latex; skipping test(s).\n') test.write('mytex.py', r""" diff --git a/test/TEX/bibliography.py b/test/TEX/bibliography.py index c26b010..9e79320 100644 --- a/test/TEX/bibliography.py +++ b/test/TEX/bibliography.py @@ -36,11 +36,19 @@ import TestSCons test = TestSCons.TestSCons() dvips = test.where_is('dvips') + +if not dvips: + test.skip_test("Could not find dvips; skipping test(s).\n") + bibtex = test.where_is('bibtex') +if not bibtex: + test.skip_test("Could not find bibtex; skipping test(s).\n") -if not dvips or not bibtex: - test.skip_test("Could not find dvips or bibtex; skipping test(s).\n") +have_latex = test.where_is('latex') +if not have_latex: + test.skip_test('Could not find latex; skipping test(s).\n') + test.write('SConstruct', """\ import os env = Environment(tools = ['tex', 'latex', 'dvips']) diff --git a/test/TEX/multi-run.py b/test/TEX/multi-run.py index 7e94be3..37a839b 100644 --- a/test/TEX/multi-run.py +++ b/test/TEX/multi-run.py @@ -39,6 +39,8 @@ test = TestSCons.TestSCons() tex = test.where_is('tex') latex = test.where_is('latex') +if not latex: + test.skip_test("Could not find latex; skipping test(s).\n") if not tex and not latex: test.skip_test("Could not find tex or latex; skipping test(s).\n") |