michael@0: #!/usr/bin/env python michael@0: michael@0: # Copyright (c) 2011 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: Put an object file on the sources list. michael@0: Expect the result to link ok. michael@0: """ michael@0: michael@0: import TestGyp michael@0: michael@0: import sys michael@0: michael@0: if sys.platform != 'darwin': michael@0: # Currently only works under the linux make build. michael@0: test = TestGyp.TestGyp(formats=['make']) michael@0: michael@0: test.run_gyp('link-objects.gyp') michael@0: michael@0: test.build('link-objects.gyp', test.ALL) michael@0: michael@0: test.run_built_executable('link-objects', stdout="PASS\n") michael@0: michael@0: test.up_to_date('link-objects.gyp', test.ALL) michael@0: michael@0: test.pass_test()