diff options
Diffstat (limited to 'deps/gyp/test/make')
-rw-r--r-- | deps/gyp/test/make/dependencies.gyp | 15 | ||||
-rwxr-xr-x | deps/gyp/test/make/gyptest-dependencies.py | 26 | ||||
-rwxr-xr-x | deps/gyp/test/make/gyptest-noload.py | 57 | ||||
-rw-r--r-- | deps/gyp/test/make/main.cc | 12 | ||||
-rw-r--r-- | deps/gyp/test/make/main.h | 0 | ||||
-rw-r--r-- | deps/gyp/test/make/noload/all.gyp | 18 | ||||
-rw-r--r-- | deps/gyp/test/make/noload/lib/shared.c | 3 | ||||
-rw-r--r-- | deps/gyp/test/make/noload/lib/shared.gyp | 16 | ||||
-rw-r--r-- | deps/gyp/test/make/noload/lib/shared.h | 1 | ||||
-rw-r--r-- | deps/gyp/test/make/noload/main.c | 9 |
10 files changed, 0 insertions, 157 deletions
diff --git a/deps/gyp/test/make/dependencies.gyp b/deps/gyp/test/make/dependencies.gyp deleted file mode 100644 index e2bee24fce..0000000000 --- a/deps/gyp/test/make/dependencies.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': 'main', - 'type': 'executable', - 'sources': [ - 'main.cc', - ], - }, - ], -} diff --git a/deps/gyp/test/make/gyptest-dependencies.py b/deps/gyp/test/make/gyptest-dependencies.py deleted file mode 100755 index d215f76782..0000000000 --- a/deps/gyp/test/make/gyptest-dependencies.py +++ /dev/null @@ -1,26 +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 .d files and all.deps are properly generated. -""" - -import TestGyp - -# .d files are only used by the make build. -test = TestGyp.TestGyp(formats=['make']) - -test.run_gyp('dependencies.gyp') - -test.build('dependencies.gyp', test.ALL) - -deps_file = test.built_file_path(".deps/out/Default/obj.target/main/main.o.d") -test.must_contain(deps_file, "main.h") - -# Build a second time to make sure we generate all.deps. -test.build('dependencies.gyp', test.ALL) - -test.pass_test() diff --git a/deps/gyp/test/make/gyptest-noload.py b/deps/gyp/test/make/gyptest-noload.py deleted file mode 100755 index 1f5103315c..0000000000 --- a/deps/gyp/test/make/gyptest-noload.py +++ /dev/null @@ -1,57 +0,0 @@ -#!/usr/bin/env python - -# Copyright (c) 2010 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. - -""" -Tests the use of the NO_LOAD flag which makes loading sub .mk files -optional. -""" - -# Python 2.5 needs this for the with statement. -from __future__ import with_statement - -import os -import TestGyp - -test = TestGyp.TestGyp(formats=['make']) - -test.run_gyp('all.gyp', chdir='noload') - -test.relocate('noload', 'relocate/noload') - -test.build('build/all.gyp', test.ALL, chdir='relocate/noload') -test.run_built_executable('exe', chdir='relocate/noload', - stdout='Hello from shared.c.\n') - -# Just sanity test that NO_LOAD=lib doesn't break anything. -test.build('build/all.gyp', test.ALL, chdir='relocate/noload', - arguments=['NO_LOAD=lib']) -test.run_built_executable('exe', chdir='relocate/noload', - stdout='Hello from shared.c.\n') -test.build('build/all.gyp', test.ALL, chdir='relocate/noload', - arguments=['NO_LOAD=z']) -test.run_built_executable('exe', chdir='relocate/noload', - stdout='Hello from shared.c.\n') - -# Make sure we can rebuild without reloading the sub .mk file. -with open('relocate/noload/main.c', 'a') as src_file: - src_file.write("\n") -test.build('build/all.gyp', test.ALL, chdir='relocate/noload', - arguments=['NO_LOAD=lib']) -test.run_built_executable('exe', chdir='relocate/noload', - stdout='Hello from shared.c.\n') - -# Change shared.c, but verify that it doesn't get rebuild if we don't load it. -with open('relocate/noload/lib/shared.c', 'w') as shared_file: - shared_file.write( - '#include "shared.h"\n' - 'const char kSharedStr[] = "modified";\n' - ) -test.build('build/all.gyp', test.ALL, chdir='relocate/noload', - arguments=['NO_LOAD=lib']) -test.run_built_executable('exe', chdir='relocate/noload', - stdout='Hello from shared.c.\n') - -test.pass_test() diff --git a/deps/gyp/test/make/main.cc b/deps/gyp/test/make/main.cc deleted file mode 100644 index 3b9a705c24..0000000000 --- a/deps/gyp/test/make/main.cc +++ /dev/null @@ -1,12 +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. */ - -#include <stdio.h> - -#include "main.h" - -int main(void) { - printf("hello world\n"); - return 0; -} diff --git a/deps/gyp/test/make/main.h b/deps/gyp/test/make/main.h deleted file mode 100644 index e69de29bb2..0000000000 --- a/deps/gyp/test/make/main.h +++ /dev/null diff --git a/deps/gyp/test/make/noload/all.gyp b/deps/gyp/test/make/noload/all.gyp deleted file mode 100644 index 1617a9e97c..0000000000 --- a/deps/gyp/test/make/noload/all.gyp +++ /dev/null @@ -1,18 +0,0 @@ -# Copyright (c) 2010 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': 'exe', - 'type': 'executable', - 'sources': [ - 'main.c', - ], - 'dependencies': [ - 'lib/shared.gyp:shared', - ], - }, - ], -} diff --git a/deps/gyp/test/make/noload/lib/shared.c b/deps/gyp/test/make/noload/lib/shared.c deleted file mode 100644 index 51776c5acf..0000000000 --- a/deps/gyp/test/make/noload/lib/shared.c +++ /dev/null @@ -1,3 +0,0 @@ -#include "shared.h" - -const char kSharedStr[] = "shared.c"; diff --git a/deps/gyp/test/make/noload/lib/shared.gyp b/deps/gyp/test/make/noload/lib/shared.gyp deleted file mode 100644 index 8a8841b3a0..0000000000 --- a/deps/gyp/test/make/noload/lib/shared.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': 'shared', - 'type': 'shared_library', - 'sources': [ - 'shared.c', - 'shared.h', - ], - }, - ], -} diff --git a/deps/gyp/test/make/noload/lib/shared.h b/deps/gyp/test/make/noload/lib/shared.h deleted file mode 100644 index a21da7538b..0000000000 --- a/deps/gyp/test/make/noload/lib/shared.h +++ /dev/null @@ -1 +0,0 @@ -extern const char kSharedStr[]; diff --git a/deps/gyp/test/make/noload/main.c b/deps/gyp/test/make/noload/main.c deleted file mode 100644 index 26ec1889ad..0000000000 --- a/deps/gyp/test/make/noload/main.c +++ /dev/null @@ -1,9 +0,0 @@ -#include <stdio.h> - -#include "lib/shared.h" - -int main(void) -{ - printf("Hello from %s.\n", kSharedStr); - return 0; -} |