diff options
Diffstat (limited to 'deps/gyp/test/conditions')
-rw-r--r-- | deps/gyp/test/conditions/elseif/elseif.gyp | 43 | ||||
-rw-r--r-- | deps/gyp/test/conditions/elseif/elseif_bad1.gyp | 20 | ||||
-rw-r--r-- | deps/gyp/test/conditions/elseif/elseif_bad2.gyp | 22 | ||||
-rw-r--r-- | deps/gyp/test/conditions/elseif/elseif_bad3.gyp | 23 | ||||
-rw-r--r-- | deps/gyp/test/conditions/elseif/elseif_conditions.gypi | 15 | ||||
-rw-r--r-- | deps/gyp/test/conditions/elseif/gyptest_elseif.py | 33 | ||||
-rw-r--r-- | deps/gyp/test/conditions/elseif/program.cc | 10 |
7 files changed, 0 insertions, 166 deletions
diff --git a/deps/gyp/test/conditions/elseif/elseif.gyp b/deps/gyp/test/conditions/elseif/elseif.gyp deleted file mode 100644 index 6367ff7d7a..0000000000 --- a/deps/gyp/test/conditions/elseif/elseif.gyp +++ /dev/null @@ -1,43 +0,0 @@ -# Copyright (c) 2014 The Chromium Authors. All rights reserved. -# Use of this source code is governed by a BSD-style license that can be -# found in the LICENSE file. - -{ - 'targets': [ - { - 'variables': { 'test_var': 0 }, - 'target_name': 'program0', - 'type': 'executable', - 'sources': [ 'program.cc' ], - 'includes': [ 'elseif_conditions.gypi' ], - }, - { - 'variables': { 'test_var': 1 }, - 'target_name': 'program1', - 'type': 'executable', - 'sources': [ 'program.cc' ], - 'includes': [ 'elseif_conditions.gypi' ], - }, - { - 'variables': { 'test_var': 2 }, - 'target_name': 'program2', - 'type': 'executable', - 'sources': [ 'program.cc' ], - 'includes': [ 'elseif_conditions.gypi' ], - }, - { - 'variables': { 'test_var': 3 }, - 'target_name': 'program3', - 'type': 'executable', - 'sources': [ 'program.cc' ], - 'includes': [ 'elseif_conditions.gypi' ], - }, - { - 'variables': { 'test_var': 4 }, - 'target_name': 'program4', - 'type': 'executable', - 'sources': [ 'program.cc' ], - 'includes': [ 'elseif_conditions.gypi' ], - }, - ], -} diff --git a/deps/gyp/test/conditions/elseif/elseif_bad1.gyp b/deps/gyp/test/conditions/elseif/elseif_bad1.gyp deleted file mode 100644 index 35c8455cca..0000000000 --- a/deps/gyp/test/conditions/elseif/elseif_bad1.gyp +++ /dev/null @@ -1,20 +0,0 @@ -# Copyright (c) 2014 The Chromium Authors. All rights reserved. -# Use of this source code is governed by a BSD-style license that can be -# found in the LICENSE file. - -# Trigger an error because of two consecutive string conditions. - -{ - 'targets': [ - { - 'variables': { 'test_var': 0 }, - 'target_name': 'program', - 'type': 'executable', - 'sources': [ 'program.cc' ], - 'conditions': [ - ['test_var==0', 'test_var==1', { - }], - ], - }, - ], -} diff --git a/deps/gyp/test/conditions/elseif/elseif_bad2.gyp b/deps/gyp/test/conditions/elseif/elseif_bad2.gyp deleted file mode 100644 index b529f292c0..0000000000 --- a/deps/gyp/test/conditions/elseif/elseif_bad2.gyp +++ /dev/null @@ -1,22 +0,0 @@ -# Copyright (c) 2014 The Chromium Authors. All rights reserved. -# Use of this source code is governed by a BSD-style license that can be -# found in the LICENSE file. - -# Trigger an error because of two consecutive string conditions, even if the -# conditions are not actually evaluated. - -{ - 'targets': [ - { - 'variables': { 'test_var': 0 }, - 'target_name': 'program', - 'type': 'executable', - 'sources': [ 'program.cc' ], - 'conditions': [ - ['test_var==0', { - }, 'test_var==1', 'test_var==2', { - }], - ], - }, - ], -} diff --git a/deps/gyp/test/conditions/elseif/elseif_bad3.gyp b/deps/gyp/test/conditions/elseif/elseif_bad3.gyp deleted file mode 100644 index 126e186053..0000000000 --- a/deps/gyp/test/conditions/elseif/elseif_bad3.gyp +++ /dev/null @@ -1,23 +0,0 @@ -# Copyright (c) 2014 The Chromium Authors. All rights reserved. -# Use of this source code is governed by a BSD-style license that can be -# found in the LICENSE file. - -# Trigger an error because there are unexpected trailing items in a condition. - -{ - 'targets': [ - { - 'variables': { 'test_var': 0 }, - 'target_name': 'program', - 'type': 'executable', - 'sources': [ 'program.cc' ], - 'conditions': [ - ['test_var==0' { - }, 'test_var==1', { - }, { - }, 'test_var==2', { - }], - ], - }, - ], -} diff --git a/deps/gyp/test/conditions/elseif/elseif_conditions.gypi b/deps/gyp/test/conditions/elseif/elseif_conditions.gypi deleted file mode 100644 index 4310ccc031..0000000000 --- a/deps/gyp/test/conditions/elseif/elseif_conditions.gypi +++ /dev/null @@ -1,15 +0,0 @@ -{ - 'conditions': [ - ['test_var==0', { - 'defines': ['FOO="first_if"'], - }, 'test_var==1', { - 'defines': ['FOO="first_else_if"'], - }, 'test_var==2', { - 'defines': ['FOO="second_else_if"'], - }, 'test_var==3', { - 'defines': ['FOO="third_else_if"'], - }, { - 'defines': ['FOO="last_else"'], - }], - ], -} diff --git a/deps/gyp/test/conditions/elseif/gyptest_elseif.py b/deps/gyp/test/conditions/elseif/gyptest_elseif.py deleted file mode 100644 index 9d030cf3fe..0000000000 --- a/deps/gyp/test/conditions/elseif/gyptest_elseif.py +++ /dev/null @@ -1,33 +0,0 @@ -#!/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() diff --git a/deps/gyp/test/conditions/elseif/program.cc b/deps/gyp/test/conditions/elseif/program.cc deleted file mode 100644 index 147fe2f75e..0000000000 --- a/deps/gyp/test/conditions/elseif/program.cc +++ /dev/null @@ -1,10 +0,0 @@ -// 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. - -#include <stdio.h> - -int main() { - printf("%s\n", FOO); - return 0; -} |