1#!/usr/bin/env python 2 3# Copyright (c) 2009 Google Inc. All rights reserved. 4# Use of this source code is governed by a BSD-style license that can be 5# found in the LICENSE file. 6 7""" 8Verifies copies in sourceless shared_library targets are executed. 9""" 10 11import TestGyp 12 13test = TestGyp.TestGyp() 14test.run_gyp('copies-sourceless-shared-lib.gyp', chdir='src') 15test.relocate('src', 'relocate/src') 16test.build('copies-sourceless-shared-lib.gyp', chdir='relocate/src') 17test.built_file_must_match('copies-out/file1', 18 'file1 contents\n', 19 chdir='relocate/src') 20test.pass_test() 21