michael@0: #!/usr/bin/env python michael@0: michael@0: # Copyright (c) 2009 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 that a scons build picks up tools modules specified michael@0: via 'scons_tools' in the 'scons_settings' dictionary. michael@0: """ michael@0: michael@0: import TestGyp michael@0: michael@0: test = TestGyp.TestGyp() michael@0: michael@0: test.run_gyp('tools.gyp') michael@0: michael@0: test.build('tools.gyp', test.ALL) michael@0: michael@0: if test.format == 'scons': michael@0: expect = "Hello, world!\n" michael@0: else: michael@0: expect = "" michael@0: test.run_built_executable('tools', stdout=expect) michael@0: michael@0: test.pass_test()