OLD | NEW |
(Empty) | |
| 1 #!/usr/bin/env python |
| 2 |
| 3 # Copyright (C) 2013 Opera Software ASA. All rights reserved. |
| 4 # This file is an original work developed by Opera Software ASA |
| 5 # Use of this source code is governed by a BSD-style license that can be |
| 6 # found in the LICENSE file. |
| 7 |
| 8 """ |
| 9 Verifies simplest-possible build of a "Hello, world!" program |
| 10 using non-default extension. In particular, verifies that |
| 11 target_extension avoids MSB8012 for msvs. |
| 12 """ |
| 13 |
| 14 import TestGyp |
| 15 |
| 16 # Android does not support setting the build directory. |
| 17 test = TestGyp.TestGyp(formats=['!android']) |
| 18 |
| 19 test.run_gyp('target.gyp') |
| 20 test.build('target.gyp') |
| 21 |
| 22 # executables |
| 23 test.built_file_must_exist('hello.stuff', test.EXECUTABLE, bare=True) |
| 24 |
| 25 # check msvs log for errors |
| 26 if test.format == "msvs": |
| 27 log_file = "obj\\hello\\hello.log" |
| 28 test.built_file_must_exist(log_file) |
| 29 test.built_file_must_not_contain(log_file, "MSB8012") |
| 30 |
| 31 test.pass_test() |
OLD | NEW |