From 5f8de423f190bbb79a62f804151bc24824fa32d8 Mon Sep 17 00:00:00 2001 From: "Matt A. Tobin" Date: Fri, 2 Feb 2018 04:16:08 -0500 Subject: Add m-esr52 at 52.6.0 --- .../tools/gyp/test/include_dirs/gyptest-all.py | 43 ++++++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100755 media/webrtc/trunk/tools/gyp/test/include_dirs/gyptest-all.py (limited to 'media/webrtc/trunk/tools/gyp/test/include_dirs/gyptest-all.py') diff --git a/media/webrtc/trunk/tools/gyp/test/include_dirs/gyptest-all.py b/media/webrtc/trunk/tools/gyp/test/include_dirs/gyptest-all.py new file mode 100755 index 000000000..d64bc6a9c --- /dev/null +++ b/media/webrtc/trunk/tools/gyp/test/include_dirs/gyptest-all.py @@ -0,0 +1,43 @@ +#!/usr/bin/env python + +# Copyright (c) 2009 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. + +""" +Verifies use of include_dirs when using an explicit build target of 'all'. +""" + +import TestGyp + +test = TestGyp.TestGyp() + +test.run_gyp('includes.gyp', chdir='src') + +test.relocate('src', 'relocate/src') + +test.build('includes.gyp', test.ALL, chdir='relocate/src') + +expect = """\ +Hello from includes.c +Hello from inc.h +Hello from include1.h +Hello from subdir/inc2/include2.h +Hello from shadow2/shadow.h +""" +test.run_built_executable('includes', stdout=expect, chdir='relocate/src') + +if test.format == 'xcode': + chdir='relocate/src/subdir' +else: + chdir='relocate/src' + +expect = """\ +Hello from subdir/subdir_includes.c +Hello from subdir/inc.h +Hello from include1.h +Hello from subdir/inc2/include2.h +""" +test.run_built_executable('subdir_includes', stdout=expect, chdir=chdir) + +test.pass_test() -- cgit v1.2.3