1#!/bin/bash
2# Copyright (c) 2012 Google Inc. All rights reserved.
3# Use of this source code is governed by a BSD-style license that can be
4# found in the LICENSE file.
5
6set -e
7
8test $MACH_O_TYPE = mh_bundle
9test $PRODUCT_TYPE = com.apple.product-type.bundle
10test $PRODUCT_NAME = bundle_loadable_module
11test $FULL_PRODUCT_NAME = bundle_loadable_module.bundle
12
13test $EXECUTABLE_NAME = bundle_loadable_module
14test $EXECUTABLE_PATH = \
15    "bundle_loadable_module.bundle/Contents/MacOS/bundle_loadable_module"
16test $WRAPPER_NAME = bundle_loadable_module.bundle
17
18test $CONTENTS_FOLDER_PATH = bundle_loadable_module.bundle/Contents
19test $EXECUTABLE_FOLDER_PATH = bundle_loadable_module.bundle/Contents/MacOS
20test $UNLOCALIZED_RESOURCES_FOLDER_PATH = \
21    bundle_loadable_module.bundle/Contents/Resources
22test $JAVA_FOLDER_PATH = bundle_loadable_module.bundle/Contents/Resources/Java
23test $FRAMEWORKS_FOLDER_PATH = bundle_loadable_module.bundle/Contents/Frameworks
24test $SHARED_FRAMEWORKS_FOLDER_PATH = \
25    bundle_loadable_module.bundle/Contents/SharedFrameworks
26test $SHARED_SUPPORT_FOLDER_PATH = \
27    bundle_loadable_module.bundle/Contents/SharedSupport
28test $PLUGINS_FOLDER_PATH = bundle_loadable_module.bundle/Contents/PlugIns
29test $XPCSERVICES_FOLDER_PATH = \
30    bundle_loadable_module.bundle/Contents/XPCServices
31
32[[ ! $DYLIB_INSTALL_NAME_BASE && ${DYLIB_INSTALL_NAME_BASE-_} ]]
33[[ ! $LD_DYLIB_INSTALL_NAME && ${LD_DYLIB_INSTALL_NAME-_} ]]
34
35"$(dirname "$0")/test_check_sdkroot.sh"
36