Sha256: f71f68a774ccff5a8ddb7fd971209825237958a45529e713060ea5ba6fd6091f

Contents?: true

Size: 906 Bytes

Versions: 4

Compression:

Stored size: 906 Bytes

Contents

#!/usr/bin/env python

# Copyright (c) 2014 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.

"""
Verify that "else-if" conditions work.
"""

import TestGyp

test = TestGyp.TestGyp()

test.run_gyp('elseif.gyp')
test.build('elseif.gyp', test.ALL)
test.run_built_executable(
    'program0', stdout='first_if\n')
test.run_built_executable(
    'program1', stdout='first_else_if\n')
test.run_built_executable(
    'program2', stdout='second_else_if\n')
test.run_built_executable(
    'program3', stdout='third_else_if\n')
test.run_built_executable(
    'program4', stdout='last_else\n')

# Verify that bad condition blocks fail at gyp time.
test.run_gyp('elseif_bad1.gyp', status=1, stderr=None)
test.run_gyp('elseif_bad2.gyp', status=1, stderr=None)
test.run_gyp('elseif_bad3.gyp', status=1, stderr=None)

test.pass_test()

Version data entries

4 entries across 4 versions & 2 rubygems

Version Path
mt-libuv-4.1.04 ext/gyp/test/conditions/elseif/gyptest_elseif.py
mt-libuv-4.1.03 ext/gyp/test/conditions/elseif/gyptest_elseif.py
mt-libuv-4.1.02 ext/gyp/test/conditions/elseif/gyptest_elseif.py
tree-sitter-0.1.0 ext/tree-sitter/tree-sitter/externals/gyp/test/conditions/elseif/gyptest_elseif.py