Commit ede36bb4 authored by eric@webkit.org's avatar eric@webkit.org

2009-09-18 Alex Milowski <alex@milowski.com>

        Reviewed by Maciej Stachowiak.

        Added checkWebCoreMathMLSupport and hasMathMLSupport to support
        checking for whether MathML tests should be run

        * Scripts/run-webkit-tests:
        * Scripts/webkitdirs.pm:

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@48522 268f45cc-cd09-0410-ab3c-d52691b4dbfc
parent ca290e54
2009-09-18 Alex Milowski <alex@milowski.com>
Reviewed by Maciej Stachowiak.
Added checkWebCoreMathMLSupport and hasMathMLSupport to support
checking for whether MathML tests should be run
* Scripts/run-webkit-tests:
* Scripts/webkitdirs.pm:
2009-08-28 Darin Adler <darin@apple.com>
Reviewed by Mark Rowe.
......
......@@ -394,6 +394,10 @@ my %ignoredDirectories = map { $_ => 1 } qw(platform);
my %ignoredLocalDirectories = map { $_ => 1 } qw(.svn _svn resources script-tests);
my %supportedFileExtensions = map { $_ => 1 } qw(html shtml xml xhtml pl php);
if (!checkWebCoreMathMLSupport(0)) {
$ignoredDirectories{'mathml'} = 1;
}
# FIXME: We should fix webkitdirs.pm:hasSVG/WMLSupport() to do the correct feature detection for Cygwin.
if (checkWebCoreSVGSupport(0)) {
$supportedFileExtensions{'svg'} = 1;
......
......@@ -547,6 +547,25 @@ sub libraryContainsSymbol
return $foundSymbol;
}
sub hasMathMLSupport
{
my $path = shift;
return libraryContainsSymbol($path, "MathMLElement");
}
sub checkWebCoreMathMLSupport
{
my $required = shift;
my $framework = "WebCore";
my $path = builtDylibPathForName($framework);
my $hasMathML = hasMathMLSupport($path);
if ($required && !$hasMathML) {
die "$framework at \"$path\" does not include MathML Support, please run build-webkit --mathml\n";
}
return $hasMathML;
}
sub hasSVGSupport
{
my $path = shift;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment