blob: d001b57e7d4f4c6bb62adf093904d5dfdac91e50 [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 we cause downstream modules to get built when we depend on the
9parent targets.
10"""
11
12import TestGyp
13
14test = TestGyp.TestGyp()
15
16CHDIR = 'module-dep'
17test.run_gyp('indirect-module-dependency.gyp', chdir=CHDIR)
18test.build('indirect-module-dependency.gyp', 'an_exe', chdir=CHDIR)
19test.built_file_must_exist(
20 test.built_file_basename('a_module', test.LOADABLE_MODULE), chdir=CHDIR)
21
22test.pass_test()