michael@0: #!/usr/bin/env python michael@0: # Copyright (c) 2012 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: """Test that custom generators can be passed to --format michael@0: """ michael@0: michael@0: import TestGyp michael@0: michael@0: test = TestGyp.TestGypCustom(format='mygenerator.py') michael@0: test.run_gyp('test.gyp') michael@0: michael@0: # mygenerator.py should generate a file called MyBuildFile containing michael@0: # "Testing..." alongside the gyp file. michael@0: test.must_match('MyBuildFile', 'Testing...\n') michael@0: michael@0: test.pass_test()