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"""
8Test variable expansion of '<|(list.txt ...)' syntax commands.
9"""
10
11import os
12import sys
13
14import TestGyp
15
16test = TestGyp.TestGyp()
17
18CHDIR = 'src'
19test.run_gyp('filelist2.gyp', chdir=CHDIR)
20
21test.build('filelist2.gyp', 'foo', chdir=CHDIR)
22contents = test.read('src/dummy_foo').replace('\r', '')
23expect = 'John\nJacob\nJingleheimer\nSchmidt\n'
24if not test.match(contents, expect):
25  print "Unexpected contents of `src/dummy_foo'"
26  test.diff(expect, contents, 'src/dummy_foo')
27  test.fail_test()
28
29test.pass_test()
30