From 9a0b039e1326be746bfa0b30dae95145806c68d8 Mon Sep 17 00:00:00 2001 From: managan Date: Mon, 31 Aug 2009 16:19:39 +0000 Subject: [PATCH] Add a test that the packages used are installed. Otherwise skip the test. git-svn-id: http://scons.tigris.org/svn/scons/trunk@4344 fdb21ef1-2011-0410-befe-b5e4ea1792b1 --- 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 6b4b225f..423ffc74 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 2e7191de..63359f56 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']}) -- 2.26.2