1#!/usr/bin/env python
2
3# Copyright (c) 2011 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"""
8Verifies rules related variables are expanded.
9"""
10
11import sys
12
13if sys.platform == 'win32':
14  print "This test is currently disabled: https://crbug.com/483696."
15  sys.exit(0)
16
17
18import TestGyp
19
20test = TestGyp.TestGyp(formats=['ninja'])
21
22test.relocate('src', 'relocate/src')
23
24test.run_gyp('variables.gyp', chdir='relocate/src')
25
26test.build('variables.gyp', chdir='relocate/src')
27
28test.run_built_executable('all_rule_variables',
29                          chdir='relocate/src',
30                          stdout="input_root\ninput_dirname\ninput_path\n" +
31                          "input_ext\ninput_name\n")
32
33test.pass_test()
34