Sha256: b79dda9a424dbe96faa78bdf4ec9f8b0d2054436a1322debd1f1710bc60cf88b

Contents?: true

Size: 1.62 KB

Versions: 44

Compression:

Stored size: 1.62 KB

Contents

#!/usr/bin/env python

# Copyright (c) 2009 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 that a rule that generates multiple outputs rebuilds
correctly when the inputs change.
"""

import TestGyp

test = TestGyp.TestGyp(workdir='workarea_all')

test.run_gyp('same_target.gyp', chdir='src')

test.relocate('src', 'relocate/src')


test.build('same_target.gyp', test.ALL, chdir='relocate/src')

expect = """\
Hello from main.c
Hello from prog1.in!
Hello from prog2.in!
"""

test.run_built_executable('program', chdir='relocate/src', stdout=expect)

test.up_to_date('same_target.gyp', 'program', chdir='relocate/src')


test.sleep()
contents = test.read(['relocate', 'src', 'prog1.in'])
contents = contents.replace('!', ' AGAIN!')
test.write(['relocate', 'src', 'prog1.in'], contents)

test.build('same_target.gyp', test.ALL, chdir='relocate/src')

expect = """\
Hello from main.c
Hello from prog1.in AGAIN!
Hello from prog2.in!
"""

test.run_built_executable('program', chdir='relocate/src', stdout=expect)

test.up_to_date('same_target.gyp', 'program', chdir='relocate/src')


test.sleep()
contents = test.read(['relocate', 'src', 'prog2.in'])
contents = contents.replace('!', ' AGAIN!')
test.write(['relocate', 'src', 'prog2.in'], contents)

test.build('same_target.gyp', test.ALL, chdir='relocate/src')

expect = """\
Hello from main.c
Hello from prog1.in AGAIN!
Hello from prog2.in AGAIN!
"""

test.run_built_executable('program', chdir='relocate/src', stdout=expect)

test.up_to_date('same_target.gyp', 'program', chdir='relocate/src')


test.pass_test()

Version data entries

44 entries across 44 versions & 7 rubygems

Version Path
libv8-3.16.14.19.1 vendor/gyp/test/rules-rebuild/gyptest-all.py
mt-libuv-4.1.04 ext/gyp/test/rules-rebuild/gyptest-all.py
mt-libuv-4.1.03 ext/gyp/test/rules-rebuild/gyptest-all.py
mt-libuv-4.1.02 ext/gyp/test/rules-rebuild/gyptest-all.py
tree-sitter-0.1.0 ext/tree-sitter/tree-sitter/externals/gyp/test/rules-rebuild/gyptest-all.py
libv8-3.16.14.19 vendor/gyp/test/rules-rebuild/gyptest-all.py
libv8-3.16.14.18 vendor/gyp/test/rules-rebuild/gyptest-all.py
tree-sitter-0.0.1 ext/tree-sitter/tree-sitter/externals/gyp/test/rules-rebuild/gyptest-all.py
arcabouco-0.2.13 vendor/bundle/gems/libv8-3.16.14.17/vendor/gyp/test/rules-rebuild/gyptest-all.py
libv8-3.16.14.17 vendor/gyp/test/rules-rebuild/gyptest-all.py
libv8-3.16.14.16 vendor/gyp/test/rules-rebuild/gyptest-all.py
libv8-3.16.14.15 vendor/gyp/test/rules-rebuild/gyptest-all.py
libv8-3.16.14.14 vendor/gyp/test/rules-rebuild/gyptest-all.py
libv8-tmpfork-3.16.14.13 vendor/gyp/test/rules-rebuild/gyptest-all.py
libv8-3.16.14.13 vendor/gyp/test/rules-rebuild/gyptest-all.py
libv8-3.16.14.12 vendor/gyp/test/rules-rebuild/gyptest-all.py
libv8-3.16.14.11 vendor/gyp/test/rules-rebuild/gyptest-all.py
libv8-3.16.14.10 vendor/gyp/test/rules-rebuild/gyptest-all.py
libv8-3.16.14.8 vendor/gyp/test/rules-rebuild/gyptest-all.py
libv8-3.16.14.8.rc1 vendor/gyp/test/rules-rebuild/gyptest-all.py