Sha256: ae446aed18865bd0441db9527b33eaa042925eb826c3c12a2b9f1ea20b6d1564

Contents?: true

Size: 1.55 KB

Versions: 25

Compression:

Stored size: 1.55 KB

Contents

#!/usr/bin/env python

# Copyright (c) 2012 Google Inc. All rights reserved.
# 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 the default build target.
"""

import TestGyp

# Android does not support setting the build directory.
test = TestGyp.TestGyp(formats=['!android'])

test.run_gyp('product.gyp')
test.build('product.gyp')

# executables
test.built_file_must_exist('alt1' + test._exe, test.EXECUTABLE, bare=True)
test.built_file_must_exist('hello2.stuff', test.EXECUTABLE, bare=True)
test.built_file_must_exist('yoalt3.stuff', test.EXECUTABLE, bare=True)

# shared libraries
test.built_file_must_exist(test.dll_ + 'alt4' + test._dll,
                           test.SHARED_LIB, bare=True)
test.built_file_must_exist(test.dll_ + 'hello5.stuff',
                           test.SHARED_LIB, bare=True)
test.built_file_must_exist('yoalt6.stuff', test.SHARED_LIB, bare=True)

# static libraries
test.built_file_must_exist(test.lib_ + 'alt7' + test._lib,
                           test.STATIC_LIB, bare=True)
test.built_file_must_exist(test.lib_ + 'hello8.stuff',
                           test.STATIC_LIB, bare=True)
test.built_file_must_exist('yoalt9.stuff', test.STATIC_LIB, bare=True)

# alternate product_dir
test.built_file_must_exist('bob/yoalt10.stuff', test.EXECUTABLE, bare=True)
test.built_file_must_exist('bob/yoalt11.stuff', test.EXECUTABLE, bare=True)
test.built_file_must_exist('bob/yoalt12.stuff', test.EXECUTABLE, bare=True)

test.pass_test()

Version data entries

25 entries across 25 versions & 4 rubygems

Version Path
libv8-3.16.14.19.1 vendor/gyp/test/product/gyptest-product.py
tree-sitter-0.1.0 ext/tree-sitter/tree-sitter/externals/gyp/test/product/gyptest-product.py
libv8-3.16.14.19 vendor/gyp/test/product/gyptest-product.py
libv8-3.16.14.18 vendor/gyp/test/product/gyptest-product.py
tree-sitter-0.0.1 ext/tree-sitter/tree-sitter/externals/gyp/test/product/gyptest-product.py
arcabouco-0.2.13 vendor/bundle/gems/libv8-3.16.14.17/vendor/gyp/test/product/gyptest-product.py
libv8-3.16.14.17 vendor/gyp/test/product/gyptest-product.py
libv8-3.16.14.16 vendor/gyp/test/product/gyptest-product.py
libv8-3.16.14.15 vendor/gyp/test/product/gyptest-product.py
libv8-3.16.14.14 vendor/gyp/test/product/gyptest-product.py
libv8-tmpfork-3.16.14.13 vendor/gyp/test/product/gyptest-product.py
libv8-3.16.14.13 vendor/gyp/test/product/gyptest-product.py
libv8-3.16.14.12 vendor/gyp/test/product/gyptest-product.py
libv8-3.16.14.11 vendor/gyp/test/product/gyptest-product.py
libv8-3.16.14.10 vendor/gyp/test/product/gyptest-product.py
libv8-3.16.14.8 vendor/gyp/test/product/gyptest-product.py
libv8-3.16.14.8.rc1 vendor/gyp/test/product/gyptest-product.py
libv8-3.16.14.7 vendor/gyp/test/product/gyptest-product.py
libv8-3.16.14.6 vendor/gyp/test/product/gyptest-product.py
libv8-3.16.14.5 vendor/gyp/test/product/gyptest-product.py