blob: 21e0487565d2cedead9ee483852445c6a2c22186 [file] [log] [blame]
Ben Murdoch097c5b22016-05-18 11:27:45 +01001#!/usr/bin/env python
2
3# Copyright 2014 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"""
8Test variable expansion of '<!()' syntax commands where they are evaluated
9more than once from different directories.
10"""
11
12import TestGyp
13
14test = TestGyp.TestGyp()
15
16# This tests GYP's cache of commands, ensuring that the directory a command is
17# run from is part of its cache key. Parallelism may lead to multiple cache
18# lookups failing, resulting in the command being run multiple times by
19# chance, not by GYP's logic. Turn off parallelism to ensure that the logic is
20# being tested.
21test.run_gyp('repeated_multidir/main.gyp', '--no-parallel')
22
23test.pass_test()