media/webrtc/trunk/tools/gyp/test/custom-generator/gyptest-custom-generator.py

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/media/webrtc/trunk/tools/gyp/test/custom-generator/gyptest-custom-generator.py	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,18 @@
     1.4 +#!/usr/bin/env python
     1.5 +# Copyright (c) 2012 Google Inc. All rights reserved.
     1.6 +# Use of this source code is governed by a BSD-style license that can be
     1.7 +# found in the LICENSE file.
     1.8 +
     1.9 +"""Test that custom generators can be passed to --format
    1.10 +"""
    1.11 +
    1.12 +import TestGyp
    1.13 +
    1.14 +test = TestGyp.TestGypCustom(format='mygenerator.py')
    1.15 +test.run_gyp('test.gyp')
    1.16 +
    1.17 +# mygenerator.py should generate a file called MyBuildFile containing
    1.18 +# "Testing..." alongside the gyp file.
    1.19 +test.must_match('MyBuildFile', 'Testing...\n')
    1.20 +
    1.21 +test.pass_test()

mercurial