| Index: test/target/gyptest-target.py
|
| diff --git a/test/target/gyptest-target.py b/test/target/gyptest-target.py
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..eb7bde6d2eb1b598bb075cdd33d505a6db810788
|
| --- /dev/null
|
| +++ b/test/target/gyptest-target.py
|
| @@ -0,0 +1,31 @@
|
| +#!/usr/bin/env python
|
| +
|
| +# Copyright (C) 2013 Opera Software ASA. All rights reserved.
|
| +# This file is an original work developed by Opera Software ASA
|
| +# Use of this source code is governed by a BSD-style license that can be
|
| +# found in the LICENSE file.
|
| +
|
| +"""
|
| +Verifies simplest-possible build of a "Hello, world!" program
|
| +using non-default extension. In particular, verifies that
|
| +target_extension avoids MSB8012 for msvs.
|
| +"""
|
| +
|
| +import TestGyp
|
| +
|
| +# Android does not support setting the build directory.
|
| +test = TestGyp.TestGyp(formats=['!android'])
|
| +
|
| +test.run_gyp('target.gyp')
|
| +test.build('target.gyp')
|
| +
|
| +# executables
|
| +test.built_file_must_exist('hello.stuff', test.EXECUTABLE, bare=True)
|
| +
|
| +# check msvs log for errors
|
| +if test.format == "msvs":
|
| + log_file = "obj\\hello\\hello.log"
|
| + test.built_file_must_exist(log_file)
|
| + test.built_file_must_not_contain(log_file, "MSB8012")
|
| +
|
| +test.pass_test()
|
|
|