Otherwise skip the test.
git-svn-id: http://scons.tigris.org/svn/scons/trunk@4344
fdb21ef1-2011-0410-befe-
b5e4ea1792b1
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']})
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']})