Wed, 31 Dec 2014 13:27:57 +0100
Ignore runtime configuration files generated during quality assurance.
michael@0 | 1 | #!/usr/bin/env python |
michael@0 | 2 | |
michael@0 | 3 | # Copyright (c) 2009 Google Inc. All rights reserved. |
michael@0 | 4 | # Use of this source code is governed by a BSD-style license that can be |
michael@0 | 5 | # found in the LICENSE file. |
michael@0 | 6 | |
michael@0 | 7 | """ |
michael@0 | 8 | """ |
michael@0 | 9 | |
michael@0 | 10 | import TestGyp |
michael@0 | 11 | |
michael@0 | 12 | test = TestGyp.TestGyp() |
michael@0 | 13 | |
michael@0 | 14 | test.run_gyp('multiple.gyp', chdir='src') |
michael@0 | 15 | |
michael@0 | 16 | test.relocate('src', 'relocate/src') |
michael@0 | 17 | |
michael@0 | 18 | # TODO(sgk): remove stderr=None when the --generator-output= support |
michael@0 | 19 | # gets rid of the scons warning |
michael@0 | 20 | test.build('multiple.gyp', test.ALL, chdir='relocate/src', stderr=None) |
michael@0 | 21 | |
michael@0 | 22 | expect1 = """\ |
michael@0 | 23 | hello from prog1.c |
michael@0 | 24 | hello from common.c |
michael@0 | 25 | """ |
michael@0 | 26 | |
michael@0 | 27 | expect2 = """\ |
michael@0 | 28 | hello from prog2.c |
michael@0 | 29 | hello from common.c |
michael@0 | 30 | """ |
michael@0 | 31 | |
michael@0 | 32 | test.run_built_executable('prog1', stdout=expect1, chdir='relocate/src') |
michael@0 | 33 | test.run_built_executable('prog2', stdout=expect2, chdir='relocate/src') |
michael@0 | 34 | |
michael@0 | 35 | test.pass_test() |