blob: 75c9503dc41de656d3afa064c77f3ef71a389154 [file] [log] [blame]
Ben Murdoch097c5b22016-05-18 11:27:45 +01001#!/usr/bin/env python
2
3# Copyright (c) 2015 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"""
8Make sure that when ULDI is on, we link cause downstream modules to get built
9when we depend on the component objs.
10"""
11
12import TestGyp
13
14import sys
15
16if sys.platform == 'win32':
17 test = TestGyp.TestGyp(formats=['msvs', 'ninja'])
18
19 CHDIR = 'uldi'
20 test.run_gyp('uldi-depending-on-module.gyp', chdir=CHDIR)
21 test.build('uldi-depending-on-module.gyp', 'an_exe', chdir=CHDIR)
22 test.built_file_must_exist('a_module.dll', chdir=CHDIR)
23
24 test.pass_test()