Home | History | Annotate | Download | only in commands
      1 #!/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 """
      8 Test variable expansion of '<!()' syntax commands where they are evaluated
      9 more than once from different directories.
     10 """
     11 
     12 import TestGyp
     13 
     14 test = 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.
     21 test.run_gyp('repeated_multidir/main.gyp', '--no-parallel')
     22 
     23 test.pass_test()
     24