⚠ Archived content — this site is no longer maintained.   Current WebKit documentation is at docs.webkit.org.

Changeset 184033 in webkit


Ignore:
Timestamp:
May 8, 2015, 5:33:37 PM (11 years ago)
Author:
weinig@apple.com
Message:

[Content Extensions] Add simple tester that takes an extension and compiles it
https://bugs.webkit.org/show_bug.cgi?id=144781

Reviewed by Dan Bates.

  • ContentExtensionTester: Added.
  • ContentExtensionTester/Configurations: Added.
  • ContentExtensionTester/Configurations/Base.xcconfig: Copied from Source/bmalloc/Configurations/Base.xcconfig.
  • ContentExtensionTester/Configurations/ContentExtensionTester.xcconfig: Copied from Source/bmalloc/Configurations/bmalloc.xcconfig.
  • ContentExtensionTester/Configurations/DebugRelease.xcconfig: Copied from Source/bmalloc/Configurations/DebugRelease.xcconfig.
  • ContentExtensionTester/ContentExtensionTester.xcodeproj: Added.
  • ContentExtensionTester/ContentExtensionTester.xcodeproj/project.pbxproj: Added.
  • ContentExtensionTester/Makefile: Copied from Tools/TestWebKitAPI/Makefile.
  • ContentExtensionTester/main.m: Added.
  • Scripts/run-content-extension-tester: Copied from Tools/Scripts/run-webkit-tests.
Location:
trunk/Tools
Files:
5 added
1 edited
5 copied

Legend:

Unmodified
Added
Removed
  • trunk/Tools/ChangeLog

    r184018 r184033  
     12015-05-07  Sam Weinig  <sam@webkit.org>
     2
     3        [Content Extensions] Add simple tester that takes an extension and compiles it
     4        https://bugs.webkit.org/show_bug.cgi?id=144781
     5
     6        Reviewed by Dan Bates.
     7
     8        * ContentExtensionTester: Added.
     9        * ContentExtensionTester/Configurations: Added.
     10        * ContentExtensionTester/Configurations/Base.xcconfig: Copied from Source/bmalloc/Configurations/Base.xcconfig.
     11        * ContentExtensionTester/Configurations/ContentExtensionTester.xcconfig: Copied from Source/bmalloc/Configurations/bmalloc.xcconfig.
     12        * ContentExtensionTester/Configurations/DebugRelease.xcconfig: Copied from Source/bmalloc/Configurations/DebugRelease.xcconfig.
     13        * ContentExtensionTester/ContentExtensionTester.xcodeproj: Added.
     14        * ContentExtensionTester/ContentExtensionTester.xcodeproj/project.pbxproj: Added.
     15        * ContentExtensionTester/Makefile: Copied from Tools/TestWebKitAPI/Makefile.
     16        * ContentExtensionTester/main.m: Added.
     17        * Scripts/run-content-extension-tester: Copied from Tools/Scripts/run-webkit-tests.
     18
    1192015-05-08  Alexey Proskuryakov  <ap@apple.com>
    220
  • trunk/Tools/ContentExtensionTester/Configurations/Base.xcconfig

    r183966 r184033  
    1 // Copyright (C) 2009, 2010, 2011, 2013 Apple Inc. All rights reserved.
     1// Copyright (C) 2015 Apple Inc. All rights reserved.
    22//
    33// Redistribution and use in source and binary forms, with or without
     
    4141GCC_C_LANGUAGE_STANDARD = gnu99;
    4242GCC_DEBUGGING_SYMBOLS = default;
    43 GCC_DYNAMIC_NO_PIC = NO;
    4443GCC_ENABLE_CPP_EXCEPTIONS = NO;
    4544GCC_ENABLE_CPP_RTTI = NO;
    4645GCC_ENABLE_OBJC_EXCEPTIONS = YES;
    47 GCC_ENABLE_OBJC_GC = $(GCC_ENABLE_OBJC_GC_$(PLATFORM_NAME)_$(USE_INTERNAL_SDK));
    48 GCC_ENABLE_OBJC_GC_macosx_ = NO;
    49 GCC_ENABLE_OBJC_GC_macosx_YES = supported;
    5046GCC_ENABLE_SYMBOL_SEPARATION = NO;
    5147GCC_FAST_OBJC_DISPATCH = YES;
    5248GCC_GENERATE_DEBUGGING_SYMBOLS = YES;
    53 GCC_INLINES_ARE_PRIVATE_EXTERN = YES;
    54 GCC_MODEL_TUNING[sdk=macosx*] = G5;
    5549GCC_OBJC_CALL_CXX_CDTORS = YES;
    5650GCC_PRECOMPILE_PREFIX_HEADER = YES;
    57 GCC_PREPROCESSOR_DEFINITIONS = $(DEBUG_DEFINES) WEBKIT_VERSION_MIN_REQUIRED=WEBKIT_VERSION_LATEST HAVE_HEADER_DETECTION_H $(GCC_PREPROCESSOR_DEFINITIONS);
     51GCC_PREPROCESSOR_DEFINITIONS = $(DEBUG_DEFINES) $(inherited);
    5852GCC_STRICT_ALIASING = YES;
    5953GCC_THREADSAFE_STATICS = NO;
    6054GCC_TREAT_WARNINGS_AS_ERRORS = YES;
    61 GCC_VERSION = com.apple.compilers.llvm.clang.1_0;
    62 // FIXME: <http://webkit.org/b/107093> WTF should build with -Wshorten-64-to-32
    63 GCC_WARN_64_TO_32_BIT_CONVERSION = $(GCC_WARN_64_TO_32_BIT_CONVERSION_$(CURRENT_ARCH));
    6455GCC_WARN_64_TO_32_BIT_CONVERSION_ = YES;
    65 GCC_WARN_64_TO_32_BIT_CONVERSION_armv7 = YES;
    66 GCC_WARN_64_TO_32_BIT_CONVERSION_armv7k = YES;
    67 GCC_WARN_64_TO_32_BIT_CONVERSION_armv7s = YES;
    68 GCC_WARN_64_TO_32_BIT_CONVERSION_arm64 = NO;
    69 GCC_WARN_64_TO_32_BIT_CONVERSION_i386 = YES;
    70 GCC_WARN_64_TO_32_BIT_CONVERSION_x86_64 = NO;
    7156GCC_WARN_ABOUT_DEPRECATED_FUNCTIONS = NO;
    7257GCC_WARN_ABOUT_MISSING_NEWLINE = YES;
     
    8065GCC_WARN_UNUSED_VARIABLE = YES;
    8166LINKER_DISPLAYS_MANGLED_NAMES = YES;
    82 PREBINDING = NO;
    8367WARNING_CFLAGS = -Wall -Wextra -Wcast-qual -Wchar-subscripts -Wextra-tokens -Wformat=2 -Winit-self -Wmissing-format-attribute -Wmissing-noreturn -Wpacked -Wpointer-arith -Wredundant-decls -Wundef -Wwrite-strings -Wexit-time-destructors -Wglobal-constructors -Wtautological-compare -Wimplicit-fallthrough;
    8468
    8569TARGET_MAC_OS_X_VERSION_MAJOR = $(MAC_OS_X_VERSION_MAJOR);
    86 
    87 SUPPORTED_PLATFORMS = iphoneos iphonesimulator macosx;
    8870
    8971// DEBUG_DEFINES, GCC_OPTIMIZATION_LEVEL, STRIP_INSTALLED_PRODUCT and DEAD_CODE_STRIPPING vary between the debug and normal variants.
     
    9779GCC_OPTIMIZATION_LEVEL_debug = 0;
    9880
    99 STRIP_INSTALLED_PRODUCT = $(STRIP_INSTALLED_PRODUCT_$(CURRENT_VARIANT));
    100 STRIP_INSTALLED_PRODUCT_normal = YES;
    101 STRIP_INSTALLED_PRODUCT_debug = NO;
    102 
    103 DEAD_CODE_STRIPPING_debug = NO;
    104 DEAD_CODE_STRIPPING_normal = YES;
    105 DEAD_CODE_STRIPPING = $(DEAD_CODE_STRIPPING_$(CURRENT_VARIANT));
    106 
    107 INSTALL_PATH_PREFIX[sdk=iphonesimulator8.*] = $(DEVELOPER_INSTALL_DIR)/Platforms/iPhoneSimulator.platform/Developer/SDKs/$(SDK_DIR:file);
    108 INSTALL_PATH = $(INSTALL_PATH_PREFIX)$(INSTALL_PATH_ACTUAL);
    109 
    11081SDKROOT = macosx.internal;
    11182
  • trunk/Tools/ContentExtensionTester/Configurations/ContentExtensionTester.xcconfig

    r183966 r184033  
    1 // Copyright (C) 2014 Apple Inc. All rights reserved.
     1// Copyright (C) 2015 Apple Inc. All rights reserved.
    22//
    33// Redistribution and use in source and binary forms, with or without
     
    2222// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
    2323
    24 EXECUTABLE_PREFIX = lib;
    25 INSTALL_PATH_ACTUAL = /usr/local/lib;
    26 PRIVATE_HEADERS_FOLDER_PATH = $(PRIVATE_HEADERS_FOLDER_PATH_$(DEPLOYMENT_LOCATION));
    27 PRIVATE_HEADERS_FOLDER_PATH_NO = /usr/local/include/bmalloc;
    28 PRIVATE_HEADERS_FOLDER_PATH_YES = $(INSTALL_PATH_PREFIX)/usr/local/include/bmalloc;
    29 PRODUCT_NAME = bmalloc;
    30 
    31 GCC_SYMBOLS_PRIVATE_EXTERN = YES;
    32 STRIP_INSTALLED_PRODUCT = NO;
     24PRODUCT_NAME = $(TARGET_NAME);
  • trunk/Tools/ContentExtensionTester/Configurations/DebugRelease.xcconfig

    r183966 r184033  
    1 // Copyright (C) 2009, 2010, 2013 Apple Inc. All rights reserved.
     1// Copyright (C) 2015 Apple Inc. All rights reserved.
    22//
    33// Redistribution and use in source and binary forms, with or without
     
    2424#include "Base.xcconfig"
    2525
    26 ARCHS = $(ARCHS_STANDARD_32_64_BIT);
    2726ONLY_ACTIVE_ARCH = YES;
    2827
  • trunk/Tools/ContentExtensionTester/Makefile

    r183966 r184033  
    1 # Build TestWebKitAPI only on Snow Leopard and later.
    2 
    3 OSX_VERSION ?= $(shell sw_vers -productVersion | cut -d. -f 2)
    4 BUILD_TESTWEBKITAPI = $(shell (( $(OSX_VERSION) >= 6 )) && echo "YES" )
    5 
    6 ifeq "$(BUILD_TESTWEBKITAPI)" "YES"
    7 
    81SCRIPTS_PATH = ../Scripts
    92include ../../Makefile.shared
    10 
    11 else
    12 
    13 all: ;
    14 
    15 debug d development dev develop: ;
    16 
    17 release r deployment dep deploy: ;
    18 
    19 clean: ;
    20 
    21 endif
  • trunk/Tools/Scripts/run-content-extension-tester

    r183966 r184033  
    1 #!/usr/bin/env python
    2 # Copyright (C) 2011 Google Inc. All rights reserved.
     1#!/usr/bin/perl -w
     2
     3# Copyright (C) 2015 Apple Inc. All rights reserved.
    34#
    45# Redistribution and use in source and binary forms, with or without
    5 # modification, are permitted provided that the following conditions are
    6 # met:
     6# modification, are permitted provided that the following conditions
     7# are met:
     8# 1. Redistributions of source code must retain the above copyright
     9#    notice, this list of conditions and the following disclaimer.
     10# 2. Redistributions in binary form must reproduce the above copyright
     11#    notice, this list of conditions and the following disclaimer in the
     12#    documentation and/or other materials provided with the distribution.
    713#
    8 #     * Redistributions of source code must retain the above copyright
    9 # notice, this list of conditions and the following disclaimer.
    10 #     * Redistributions in binary form must reproduce the above
    11 # copyright notice, this list of conditions and the following disclaimer
    12 # in the documentation and/or other materials provided with the
    13 # distribution.
    14 #     * Neither the name of Google Inc. nor the names of its
    15 # contributors may be used to endorse or promote products derived from
    16 # this software without specific prior written permission.
    17 #
    18 # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
    19 # "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
    20 # LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
    21 # A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
    22 # OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
    23 # SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
    24 # LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
    25 # DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
    26 # THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
    27 # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
    28 # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
     14# THIS SOFTWARE IS PROVIDED BY APPLE INC. AND ITS CONTRIBUTORS ``AS IS''
     15# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
     16# THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
     17# PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL APPLE INC. OR ITS CONTRIBUTORS
     18# BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
     19# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
     20# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
     21# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
     22# CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
     23# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
     24# THE POSSIBILITY OF SUCH DAMAGE.
    2925
    30 """Wrapper around webkitpy/layout_tests/run_webkit_tests.py"""
    31 from webkitpy.common import multiprocessing_bootstrap
     26use strict;
     27use FindBin;
     28use lib $FindBin::Bin;
     29use webkitdirs;
    3230
    33 multiprocessing_bootstrap.run('webkitpy', 'layout_tests', 'run_webkit_tests.py')
     31printHelpAndExitForRunAndDebugWebKitAppIfNeeded();
     32
     33setConfiguration();
     34
     35if (!isAppleMacWebKit()) {
     36    exit 1;
     37}
     38
     39exit exitStatus(runMacWebKitApp(File::Spec->catfile(productDir(), "ContentExtensionTester")));
Note: See TracChangeset for help on using the changeset viewer.