summaryrefslogtreecommitdiff
path: root/deps/gyp/test/home_dot_gyp
diff options
context:
space:
mode:
Diffstat (limited to 'deps/gyp/test/home_dot_gyp')
-rwxr-xr-xdeps/gyp/test/home_dot_gyp/gyptest-home-includes-config-arg.py31
-rwxr-xr-xdeps/gyp/test/home_dot_gyp/gyptest-home-includes-config-env.py33
-rwxr-xr-xdeps/gyp/test/home_dot_gyp/gyptest-home-includes-regyp.py44
-rwxr-xr-xdeps/gyp/test/home_dot_gyp/gyptest-home-includes.py30
-rw-r--r--deps/gyp/test/home_dot_gyp/home/.gyp/include.gypi5
-rw-r--r--deps/gyp/test/home_dot_gyp/home2/.gyp/include.gypi5
-rw-r--r--deps/gyp/test/home_dot_gyp/home2/.gyp_new/include.gypi5
-rw-r--r--deps/gyp/test/home_dot_gyp/src/all.gyp22
-rw-r--r--deps/gyp/test/home_dot_gyp/src/printfoo.c7
9 files changed, 0 insertions, 182 deletions
diff --git a/deps/gyp/test/home_dot_gyp/gyptest-home-includes-config-arg.py b/deps/gyp/test/home_dot_gyp/gyptest-home-includes-config-arg.py
deleted file mode 100755
index 82e39f9d07..0000000000
--- a/deps/gyp/test/home_dot_gyp/gyptest-home-includes-config-arg.py
+++ /dev/null
@@ -1,31 +0,0 @@
-#!/usr/bin/env python
-
-# Copyright (c) 2013 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 inclusion of $HOME/.gyp/include.gypi works when --config-dir is
-specified.
-"""
-
-import os
-import TestGyp
-
-test = TestGyp.TestGyp()
-
-os.environ['HOME'] = os.path.abspath('home2')
-
-test.run_gyp('all.gyp', '--config-dir=~/.gyp_new', chdir='src')
-
-# After relocating, we should still be able to build (build file shouldn't
-# contain relative reference to ~/.gyp/include.gypi)
-test.relocate('src', 'relocate/src')
-
-test.build('all.gyp', test.ALL, chdir='relocate/src')
-
-test.run_built_executable('printfoo',
- chdir='relocate/src',
- stdout='FOO is fromhome3\n')
-
-test.pass_test()
diff --git a/deps/gyp/test/home_dot_gyp/gyptest-home-includes-config-env.py b/deps/gyp/test/home_dot_gyp/gyptest-home-includes-config-env.py
deleted file mode 100755
index 6f4b299ede..0000000000
--- a/deps/gyp/test/home_dot_gyp/gyptest-home-includes-config-env.py
+++ /dev/null
@@ -1,33 +0,0 @@
-#!/usr/bin/env python
-
-# Copyright (c) 2013 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 inclusion of $HOME/.gyp_new/include.gypi works when GYP_CONFIG_DIR
-is set.
-"""
-
-import os
-import TestGyp
-
-test = TestGyp.TestGyp()
-
-os.environ['HOME'] = os.path.abspath('home')
-os.environ['GYP_CONFIG_DIR'] = os.path.join(os.path.abspath('home2'),
- '.gyp_new')
-
-test.run_gyp('all.gyp', chdir='src')
-
-# After relocating, we should still be able to build (build file shouldn't
-# contain relative reference to ~/.gyp_new/include.gypi)
-test.relocate('src', 'relocate/src')
-
-test.build('all.gyp', test.ALL, chdir='relocate/src')
-
-test.run_built_executable('printfoo',
- chdir='relocate/src',
- stdout='FOO is fromhome3\n')
-
-test.pass_test()
diff --git a/deps/gyp/test/home_dot_gyp/gyptest-home-includes-regyp.py b/deps/gyp/test/home_dot_gyp/gyptest-home-includes-regyp.py
deleted file mode 100755
index fdf8b14464..0000000000
--- a/deps/gyp/test/home_dot_gyp/gyptest-home-includes-regyp.py
+++ /dev/null
@@ -1,44 +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 inclusion of $HOME/.gyp/include.gypi works properly with relocation
-and with regeneration.
-"""
-
-import os
-import TestGyp
-
-# Regenerating build files when a gyp file changes is currently only supported
-# by the make generator.
-test = TestGyp.TestGyp(formats=['make'])
-
-os.environ['HOME'] = os.path.abspath('home')
-
-test.run_gyp('all.gyp', chdir='src')
-
-# After relocating, we should still be able to build (build file shouldn't
-# contain relative reference to ~/.gyp/include.gypi)
-test.relocate('src', 'relocate/src')
-
-test.build('all.gyp', test.ALL, chdir='relocate/src')
-
-test.run_built_executable('printfoo',
- chdir='relocate/src',
- stdout='FOO is fromhome\n')
-
-# Building should notice any changes to ~/.gyp/include.gypi and regyp.
-test.sleep()
-
-test.write('home/.gyp/include.gypi', test.read('home2/.gyp/include.gypi'))
-
-test.build('all.gyp', test.ALL, chdir='relocate/src')
-
-test.run_built_executable('printfoo',
- chdir='relocate/src',
- stdout='FOO is fromhome2\n')
-
-test.pass_test()
diff --git a/deps/gyp/test/home_dot_gyp/gyptest-home-includes.py b/deps/gyp/test/home_dot_gyp/gyptest-home-includes.py
deleted file mode 100755
index 8ad52556be..0000000000
--- a/deps/gyp/test/home_dot_gyp/gyptest-home-includes.py
+++ /dev/null
@@ -1,30 +0,0 @@
-#!/usr/bin/env python
-
-# Copyright (c) 2011 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 inclusion of $HOME/.gyp/include.gypi works.
-"""
-
-import os
-import TestGyp
-
-test = TestGyp.TestGyp()
-
-os.environ['HOME'] = os.path.abspath('home')
-
-test.run_gyp('all.gyp', chdir='src')
-
-# After relocating, we should still be able to build (build file shouldn't
-# contain relative reference to ~/.gyp/include.gypi)
-test.relocate('src', 'relocate/src')
-
-test.build('all.gyp', test.ALL, chdir='relocate/src')
-
-test.run_built_executable('printfoo',
- chdir='relocate/src',
- stdout='FOO is fromhome\n')
-
-test.pass_test()
diff --git a/deps/gyp/test/home_dot_gyp/home/.gyp/include.gypi b/deps/gyp/test/home_dot_gyp/home/.gyp/include.gypi
deleted file mode 100644
index fcfb39befd..0000000000
--- a/deps/gyp/test/home_dot_gyp/home/.gyp/include.gypi
+++ /dev/null
@@ -1,5 +0,0 @@
-{
- 'variables': {
- 'foo': '"fromhome"',
- },
-}
diff --git a/deps/gyp/test/home_dot_gyp/home2/.gyp/include.gypi b/deps/gyp/test/home_dot_gyp/home2/.gyp/include.gypi
deleted file mode 100644
index f0d84b31ad..0000000000
--- a/deps/gyp/test/home_dot_gyp/home2/.gyp/include.gypi
+++ /dev/null
@@ -1,5 +0,0 @@
-{
- 'variables': {
- 'foo': '"fromhome2"',
- },
-}
diff --git a/deps/gyp/test/home_dot_gyp/home2/.gyp_new/include.gypi b/deps/gyp/test/home_dot_gyp/home2/.gyp_new/include.gypi
deleted file mode 100644
index 4094dfd2f8..0000000000
--- a/deps/gyp/test/home_dot_gyp/home2/.gyp_new/include.gypi
+++ /dev/null
@@ -1,5 +0,0 @@
-{
- 'variables': {
- 'foo': '"fromhome3"',
- },
-}
diff --git a/deps/gyp/test/home_dot_gyp/src/all.gyp b/deps/gyp/test/home_dot_gyp/src/all.gyp
deleted file mode 100644
index 14b6aea285..0000000000
--- a/deps/gyp/test/home_dot_gyp/src/all.gyp
+++ /dev/null
@@ -1,22 +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.
-
-{
- 'variables': {
- 'foo%': '"fromdefault"',
- },
- 'targets': [
- {
- 'target_name': 'printfoo',
- 'type': 'executable',
- 'sources': [
- 'printfoo.c',
- ],
- 'defines': [
- 'FOO=<(foo)',
- ],
- },
- ],
-}
-
diff --git a/deps/gyp/test/home_dot_gyp/src/printfoo.c b/deps/gyp/test/home_dot_gyp/src/printfoo.c
deleted file mode 100644
index 9bb67181b9..0000000000
--- a/deps/gyp/test/home_dot_gyp/src/printfoo.c
+++ /dev/null
@@ -1,7 +0,0 @@
-#include <stdio.h>
-
-int main(void)
-{
- printf("FOO is %s\n", FOO);
- return 0;
-}