diff options
author | Robert Managan <managan1@llnl.gov> | 2009-08-31 16:19:39 (GMT) |
---|---|---|
committer | Robert Managan <managan1@llnl.gov> | 2009-08-31 16:19:39 (GMT) |
commit | e0b6e92521f826c84041b6de909e093fd92e1a64 (patch) | |
tree | bfcf24d888b7c4ec6a6bc4e21a38cfeeb396fe6e /test | |
parent | 77a3e293af763fe662782e36eea1f7e06bf87580 (diff) | |
download | SCons-e0b6e92521f826c84041b6de909e093fd92e1a64.zip SCons-e0b6e92521f826c84041b6de909e093fd92e1a64.tar.gz SCons-e0b6e92521f826c84041b6de909e093fd92e1a64.tar.bz2 |
Add a test that the packages used are installed.
Otherwise skip the test.
Diffstat (limited to 'test')
-rw-r--r-- | test/TEX/glossary.py | 4 | ||||
-rw-r--r-- | test/TEX/nomencl.py | 4 |
2 files changed, 8 insertions, 0 deletions
diff --git a/test/TEX/glossary.py b/test/TEX/glossary.py index 6b4b225..423ffc7 100644 --- a/test/TEX/glossary.py +++ b/test/TEX/glossary.py @@ -37,10 +37,14 @@ import TestSCons test = TestSCons.TestSCons() latex = test.where_is('latex') +gloss = os.system('kpsewhich glossary.sty') if not latex: test.skip_test("Could not find latex; skipping test(s).\n") +if not gloss==0: + test.skip_test("glossary.sty not installed; skipping test(s).\n") + test.write('SConstruct', """\ import os env = Environment(tools = ['latex'], ENV = {'PATH' : os.environ['PATH']}) diff --git a/test/TEX/nomencl.py b/test/TEX/nomencl.py index 2e7191d..63359f5 100644 --- a/test/TEX/nomencl.py +++ b/test/TEX/nomencl.py @@ -37,10 +37,14 @@ import TestSCons test = TestSCons.TestSCons() latex = test.where_is('latex') +nomencl = os.system('kpsewhich nomencl.sty') if not latex: test.skip_test("Could not find latex; skipping test(s).\n") +if not nomencl==0: + test.skip_test("nomencl.sty not installed; skipping test(s).\n") + test.write('SConstruct', """\ import os env = Environment(tools = ['pdftex'], ENV = {'PATH' : os.environ['PATH']}) |