Sha256: 71c043a8b8fda7c763be0c26f7fe3d3ab8528efb6df4344e1f75da304567d9b7
Contents?: true
Size: 1.16 KB
Versions: 39
Compression:
Stored size: 1.16 KB
Contents
#!/usr/bin/env python # Copyright (c) 2012 Google Inc. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. """ Tests that a loadable_module target is built correctly. """ import TestGyp import os import sys if sys.platform == 'darwin': test = TestGyp.TestGyp(formats=['ninja', 'make', 'xcode']) test.run_gyp('test.gyp', chdir='loadable-module') test.build('test.gyp', test.ALL, chdir='loadable-module') # Binary. test.built_file_must_exist( 'test_loadable_module.plugin/Contents/MacOS/test_loadable_module', chdir='loadable-module') # Info.plist. info_plist = test.built_file_path( 'test_loadable_module.plugin/Contents/Info.plist', chdir='loadable-module') test.must_exist(info_plist) test.must_contain(info_plist, """ <key>CFBundleExecutable</key> <string>test_loadable_module</string> """) # PkgInfo. test.built_file_must_not_exist( 'test_loadable_module.plugin/Contents/PkgInfo', chdir='loadable-module') test.built_file_must_not_exist( 'test_loadable_module.plugin/Contents/Resources', chdir='loadable-module') test.pass_test()
Version data entries
39 entries across 39 versions & 5 rubygems