summaryrefslogtreecommitdiffstats
path: root/test/Docbook/basedir
diff options
context:
space:
mode:
authorDirk Baechle <dl9obn@darc.de>2013-11-03 18:17:58 (GMT)
committerDirk Baechle <dl9obn@darc.de>2013-11-03 18:17:58 (GMT)
commit703ba43b17517810162d91b109b54fc76868eee6 (patch)
tree6c4aaaf1971124a8862d4dcf4d0346b5c70ee5df /test/Docbook/basedir
parent396cc5ff8cce251f405e3eba6163362239ce7d08 (diff)
downloadSCons-703ba43b17517810162d91b109b54fc76868eee6.zip
SCons-703ba43b17517810162d91b109b54fc76868eee6.tar.gz
SCons-703ba43b17517810162d91b109b54fc76868eee6.tar.bz2
- corrected LC_ALL setting for RPM packaging
- now skipping several Docbook tests, when required stylesheets aren't installed
Diffstat (limited to 'test/Docbook/basedir')
-rw-r--r--test/Docbook/basedir/htmlchunked/htmlchunked.py6
-rw-r--r--test/Docbook/basedir/htmlhelp/htmlhelp.py6
-rw-r--r--test/Docbook/basedir/slideshtml/slideshtml.py7
3 files changed, 19 insertions, 0 deletions
diff --git a/test/Docbook/basedir/htmlchunked/htmlchunked.py b/test/Docbook/basedir/htmlchunked/htmlchunked.py
index c581701..cf5f3d1 100644
--- a/test/Docbook/basedir/htmlchunked/htmlchunked.py
+++ b/test/Docbook/basedir/htmlchunked/htmlchunked.py
@@ -26,10 +26,16 @@
Test the base_dir argument for the chunked HTML builder.
"""
+import os
+import sys
import TestSCons
test = TestSCons.TestSCons()
+if not (sys.platform.startswith('linux') and
+ os.path.isdir('/usr/share/xml/docbook/stylesheet/docbook-xsl')):
+ test.skip_test('Wrong OS or no stylesheets installed, skipping test.\n')
+
try:
import libxml2
except:
diff --git a/test/Docbook/basedir/htmlhelp/htmlhelp.py b/test/Docbook/basedir/htmlhelp/htmlhelp.py
index 736f732..22bbd72 100644
--- a/test/Docbook/basedir/htmlhelp/htmlhelp.py
+++ b/test/Docbook/basedir/htmlhelp/htmlhelp.py
@@ -26,10 +26,16 @@
Test the base_dir argument for the HTMLHELP builder.
"""
+import os
+import sys
import TestSCons
test = TestSCons.TestSCons()
+if not (sys.platform.startswith('linux') and
+ os.path.isdir('/usr/share/xml/docbook/stylesheet/docbook-xsl')):
+ test.skip_test('Wrong OS or no stylesheets installed, skipping test.\n')
+
try:
import libxml2
except:
diff --git a/test/Docbook/basedir/slideshtml/slideshtml.py b/test/Docbook/basedir/slideshtml/slideshtml.py
index 505d36d..a2375e4 100644
--- a/test/Docbook/basedir/slideshtml/slideshtml.py
+++ b/test/Docbook/basedir/slideshtml/slideshtml.py
@@ -26,10 +26,17 @@
Test the base_dir argument for the Slides HTML builder.
"""
+import os
+import sys
import TestSCons
test = TestSCons.TestSCons()
+if not (sys.platform.startswith('linux') and
+ os.path.isdir('/usr/share/xml/docbook/stylesheet/docbook-xsl/slides') and
+ os.path.isdir('/usr/share/xml/docbook/custom/slides/3.3.1')):
+ test.skip_test('Wrong OS or no "slides" stylesheets installed, skipping test.\n')
+
try:
import libxml2
except: