1342c50ce1624b485728b9a4fc41d8bbf37eb46cfBen Murdoch#!/usr/bin/env python 2342c50ce1624b485728b9a4fc41d8bbf37eb46cfBen Murdoch 3342c50ce1624b485728b9a4fc41d8bbf37eb46cfBen Murdoch# Copyright (c) 2010 Google Inc. All rights reserved. 4342c50ce1624b485728b9a4fc41d8bbf37eb46cfBen Murdoch# Use of this source code is governed by a BSD-style license that can be 5342c50ce1624b485728b9a4fc41d8bbf37eb46cfBen Murdoch# found in the LICENSE file. 6342c50ce1624b485728b9a4fc41d8bbf37eb46cfBen Murdoch 7342c50ce1624b485728b9a4fc41d8bbf37eb46cfBen Murdoch""" 8342c50ce1624b485728b9a4fc41d8bbf37eb46cfBen MurdochVerifies that exclusions (e.g. sources!) are respected. Excluded sources 9342c50ce1624b485728b9a4fc41d8bbf37eb46cfBen Murdochthat do not exist should not prevent the build from succeeding. 10342c50ce1624b485728b9a4fc41d8bbf37eb46cfBen Murdoch""" 11342c50ce1624b485728b9a4fc41d8bbf37eb46cfBen Murdoch 12342c50ce1624b485728b9a4fc41d8bbf37eb46cfBen Murdochimport TestGyp 13342c50ce1624b485728b9a4fc41d8bbf37eb46cfBen Murdoch 14342c50ce1624b485728b9a4fc41d8bbf37eb46cfBen Murdochtest = TestGyp.TestGyp() 15342c50ce1624b485728b9a4fc41d8bbf37eb46cfBen Murdoch 16342c50ce1624b485728b9a4fc41d8bbf37eb46cfBen Murdochtest.run_gyp('exclusion.gyp') 17342c50ce1624b485728b9a4fc41d8bbf37eb46cfBen Murdochtest.build('exclusion.gyp') 18342c50ce1624b485728b9a4fc41d8bbf37eb46cfBen Murdoch 19342c50ce1624b485728b9a4fc41d8bbf37eb46cfBen Murdoch# executables 20342c50ce1624b485728b9a4fc41d8bbf37eb46cfBen Murdochtest.built_file_must_exist('hello' + test._exe, test.EXECUTABLE, bare=True) 21342c50ce1624b485728b9a4fc41d8bbf37eb46cfBen Murdoch 22342c50ce1624b485728b9a4fc41d8bbf37eb46cfBen Murdochtest.pass_test() 23