1 #!/usr/bin/env python 2 3 # Copyright (c) 2012 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 Make sure environment files can be suppressed. 9 """ 10 11 import TestGyp 12 13 import os 14 import sys 15 16 if sys.platform == 'win32': 17 test = TestGyp.TestGyp(formats=['ninja']) 18 19 test.run_gyp('use-custom-environment-files.gyp', 20 '-G', 'ninja_use_custom_environment_files') 21 22 # Make sure environment files do not exist. 23 if os.path.exists(test.built_file_path('environment.x86')): 24 test.fail_test() 25 if os.path.exists(test.built_file_path('environment.x64')): 26 test.fail_test() 27 28 test.pass_test() 29