From e0b6e92521f826c84041b6de909e093fd92e1a64 Mon Sep 17 00:00:00 2001 From: Robert Managan Date: Mon, 31 Aug 2009 16:19:39 +0000 Subject: Add a test that the packages used are installed. Otherwise skip the test. --- test/TEX/glossary.py | 4 ++++ test/TEX/nomencl.py | 4 ++++ 2 files changed, 8 insertions(+) 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']}) -- cgit v0.12