michael@0: #!/usr/bin/env python michael@0: michael@0: # Copyright (c) 2011 Google Inc. All rights reserved. michael@0: # Use of this source code is governed by a BSD-style license that can be michael@0: # found in the LICENSE file. michael@0: michael@0: """ michael@0: Verifies rules related variables are expanded. michael@0: """ michael@0: michael@0: import TestGyp michael@0: michael@0: test = TestGyp.TestGyp(formats=['ninja']) michael@0: michael@0: test.relocate('src', 'relocate/src') michael@0: michael@0: test.run_gyp('variables.gyp', chdir='relocate/src') michael@0: michael@0: test.build('variables.gyp', chdir='relocate/src') michael@0: michael@0: test.run_built_executable('all_rule_variables', michael@0: chdir='relocate/src', michael@0: stdout="input_root\ninput_dirname\ninput_path\n" + michael@0: "input_ext\ninput_name\n") michael@0: michael@0: test.pass_test()