diff options
Diffstat (limited to 'deps/gyp/test/same-gyp-name')
-rwxr-xr-x | deps/gyp/test/same-gyp-name/gyptest-all.py | 38 | ||||
-rwxr-xr-x | deps/gyp/test/same-gyp-name/gyptest-default.py | 38 | ||||
-rw-r--r-- | deps/gyp/test/same-gyp-name/gyptest-library.py | 20 | ||||
-rw-r--r-- | deps/gyp/test/same-gyp-name/library/one/sub.gyp | 11 | ||||
-rw-r--r-- | deps/gyp/test/same-gyp-name/library/test.gyp | 15 | ||||
-rw-r--r-- | deps/gyp/test/same-gyp-name/library/two/sub.gyp | 11 | ||||
-rw-r--r-- | deps/gyp/test/same-gyp-name/src/all.gyp | 16 | ||||
-rw-r--r-- | deps/gyp/test/same-gyp-name/src/subdir1/executable.gyp | 15 | ||||
-rw-r--r-- | deps/gyp/test/same-gyp-name/src/subdir1/main1.cc | 6 | ||||
-rw-r--r-- | deps/gyp/test/same-gyp-name/src/subdir2/executable.gyp | 15 | ||||
-rw-r--r-- | deps/gyp/test/same-gyp-name/src/subdir2/main2.cc | 6 |
11 files changed, 0 insertions, 191 deletions
diff --git a/deps/gyp/test/same-gyp-name/gyptest-all.py b/deps/gyp/test/same-gyp-name/gyptest-all.py deleted file mode 100755 index cda1a72d4d..0000000000 --- a/deps/gyp/test/same-gyp-name/gyptest-all.py +++ /dev/null @@ -1,38 +0,0 @@ -#!/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. - -""" -Build a .gyp that depends on 2 gyp files with the same name. -""" - -import TestGyp - -test = TestGyp.TestGyp() - -test.run_gyp('all.gyp', chdir='src') - -test.relocate('src', 'relocate/src') - -test.build('all.gyp', test.ALL, chdir='relocate/src') - -expect1 = """\ -Hello from main1.cc -""" - -expect2 = """\ -Hello from main2.cc -""" - -if test.format == 'xcode': - chdir1 = 'relocate/src/subdir1' - chdir2 = 'relocate/src/subdir2' -else: - chdir1 = chdir2 = 'relocate/src' - -test.run_built_executable('program1', chdir=chdir1, stdout=expect1) -test.run_built_executable('program2', chdir=chdir2, stdout=expect2) - -test.pass_test() diff --git a/deps/gyp/test/same-gyp-name/gyptest-default.py b/deps/gyp/test/same-gyp-name/gyptest-default.py deleted file mode 100755 index 5e4bba0012..0000000000 --- a/deps/gyp/test/same-gyp-name/gyptest-default.py +++ /dev/null @@ -1,38 +0,0 @@ -#!/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. - -""" -Build a .gyp that depends on 2 gyp files with the same name. -""" - -import TestGyp - -test = TestGyp.TestGyp() - -test.run_gyp('all.gyp', chdir='src') - -test.relocate('src', 'relocate/src') - -test.build('all.gyp', chdir='relocate/src') - -expect1 = """\ -Hello from main1.cc -""" - -expect2 = """\ -Hello from main2.cc -""" - -if test.format == 'xcode': - chdir1 = 'relocate/src/subdir1' - chdir2 = 'relocate/src/subdir2' -else: - chdir1 = chdir2 = 'relocate/src' - -test.run_built_executable('program1', chdir=chdir1, stdout=expect1) -test.run_built_executable('program2', chdir=chdir2, stdout=expect2) - -test.pass_test() diff --git a/deps/gyp/test/same-gyp-name/gyptest-library.py b/deps/gyp/test/same-gyp-name/gyptest-library.py deleted file mode 100644 index 957a4a52d6..0000000000 --- a/deps/gyp/test/same-gyp-name/gyptest-library.py +++ /dev/null @@ -1,20 +0,0 @@ -#!/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 that a dependency on two gyp files with the same name do not create a -uid collision in the resulting generated xcode file. -""" - -import TestGyp - -import sys - -test = TestGyp.TestGyp() - -test.run_gyp('test.gyp', chdir='library') - -test.pass_test() diff --git a/deps/gyp/test/same-gyp-name/library/one/sub.gyp b/deps/gyp/test/same-gyp-name/library/one/sub.gyp deleted file mode 100644 index 1bed941e54..0000000000 --- a/deps/gyp/test/same-gyp-name/library/one/sub.gyp +++ /dev/null @@ -1,11 +0,0 @@ -# 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. -{ - 'targets': [ - { - 'target_name': 'one', - 'type': 'static_library', - }, - ], -} diff --git a/deps/gyp/test/same-gyp-name/library/test.gyp b/deps/gyp/test/same-gyp-name/library/test.gyp deleted file mode 100644 index 552a77ed7e..0000000000 --- a/deps/gyp/test/same-gyp-name/library/test.gyp +++ /dev/null @@ -1,15 +0,0 @@ -# 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. -{ - 'targets': [ - { - 'target_name': 'duplicate_names', - 'type': 'shared_library', - 'dependencies': [ - 'one/sub.gyp:one', - 'two/sub.gyp:two', - ], - }, - ], -} diff --git a/deps/gyp/test/same-gyp-name/library/two/sub.gyp b/deps/gyp/test/same-gyp-name/library/two/sub.gyp deleted file mode 100644 index 934c98a496..0000000000 --- a/deps/gyp/test/same-gyp-name/library/two/sub.gyp +++ /dev/null @@ -1,11 +0,0 @@ -# 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. -{ - 'targets': [ - { - 'target_name': 'two', - 'type': 'static_library', - }, - ], -} diff --git a/deps/gyp/test/same-gyp-name/src/all.gyp b/deps/gyp/test/same-gyp-name/src/all.gyp deleted file mode 100644 index 229f02ea84..0000000000 --- a/deps/gyp/test/same-gyp-name/src/all.gyp +++ /dev/null @@ -1,16 +0,0 @@ -# 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. - -{ - 'targets': [ - { - 'target_name': 'all_exes', - 'type': 'none', - 'dependencies': [ - 'subdir1/executable.gyp:*', - 'subdir2/executable.gyp:*', - ], - }, - ], -} diff --git a/deps/gyp/test/same-gyp-name/src/subdir1/executable.gyp b/deps/gyp/test/same-gyp-name/src/subdir1/executable.gyp deleted file mode 100644 index 82483b4c69..0000000000 --- a/deps/gyp/test/same-gyp-name/src/subdir1/executable.gyp +++ /dev/null @@ -1,15 +0,0 @@ -# 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. - -{ - 'targets': [ - { - 'target_name': 'program1', - 'type': 'executable', - 'sources': [ - 'main1.cc', - ], - }, - ], -} diff --git a/deps/gyp/test/same-gyp-name/src/subdir1/main1.cc b/deps/gyp/test/same-gyp-name/src/subdir1/main1.cc deleted file mode 100644 index 3645558324..0000000000 --- a/deps/gyp/test/same-gyp-name/src/subdir1/main1.cc +++ /dev/null @@ -1,6 +0,0 @@ -#include <stdio.h> - -int main() { - printf("Hello from main1.cc\n"); - return 0; -} diff --git a/deps/gyp/test/same-gyp-name/src/subdir2/executable.gyp b/deps/gyp/test/same-gyp-name/src/subdir2/executable.gyp deleted file mode 100644 index e3537013eb..0000000000 --- a/deps/gyp/test/same-gyp-name/src/subdir2/executable.gyp +++ /dev/null @@ -1,15 +0,0 @@ -# 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. - -{ - 'targets': [ - { - 'target_name': 'program2', - 'type': 'executable', - 'sources': [ - 'main2.cc', - ], - }, - ], -} diff --git a/deps/gyp/test/same-gyp-name/src/subdir2/main2.cc b/deps/gyp/test/same-gyp-name/src/subdir2/main2.cc deleted file mode 100644 index 0c724dee35..0000000000 --- a/deps/gyp/test/same-gyp-name/src/subdir2/main2.cc +++ /dev/null @@ -1,6 +0,0 @@ -#include <stdio.h> - -int main() { - printf("Hello from main2.cc\n"); - return 0; -} |