+2007-07-04 Adam Roben <aroben@apple.com>
+
+ Enable a Leopard-specific Skipped list.
+
+ Reviewed by Mark.
+
+ * Scripts/run-webkit-tests: Check for Leopard.
+ * Scripts/webkitdirs.pm: Added isTiger/isLeopard.
+
2007-07-03 Adam Roben <aroben@apple.com>
Fixed update-webkit-localizable-strings to work with new extract-localizable-strings
my $testDirectory = File::Spec->rel2abs($layoutTestsName);
my $platformTestDirectory = $testDirectory;
my $expectedDirectory = $testDirectory;
-if (isQt()) {
+if (isLeopard()) {
+ $platformTestDirectory = "$testDirectory/mac/leopard";
+} elsif (isQt()) {
$expectedDirectory = "LayoutTests/qt/";
$platformTestDirectory = $expectedDirectory;
} elsif (isCygwin()) {
my $configurationProductDir;
my $sourceDir;
my $currentSVNRevision;
+my $osXVersion;
# Variables for Win32 support
my $vcBuildPath;
return ($^O eq "darwin");
}
+sub determineOSXVersion()
+{
+ return if $osXVersion;
+
+ if (!isOSX()) {
+ $osXVersion = -1;
+ return;
+ }
+
+ my $version = `sw_vers -productVersion`;
+ my @splitVersion = split(/\./, $version);
+ @splitVersion >= 2 or die "Invalid version $version";
+ $osXVersion = {
+ "major" => $splitVersion[0],
+ "minor" => $splitVersion[1],
+ "subminor" => (defined($splitVersion[2]) ? $splitVersion[2] : 0),
+ };
+}
+
+sub osXVersion()
+{
+ determineOSXVersion();
+ return $osXVersion;
+}
+
+sub isTiger()
+{
+ return isOSX() && osXVersion()->{"minor"} == 4;
+}
+
+sub isLeopard()
+{
+ return isOSX() && osXVersion()->{"minor"} == 5;
+}
+
sub checkRequiredSystemConfig
{
if (isOSX()) {