Sha256: bf34f0ac9f3e82448d28e85974761f032f2347ba9522828bf60d3fa57ceb9f70

Contents?: true

Size: 1018 Bytes

Versions: 51

Compression:

Stored size: 1018 Bytes

Contents

#!/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.

""" Unit tests for the msvs.py file. """

import gyp.generator.msvs as msvs
import unittest
import StringIO


class TestSequenceFunctions(unittest.TestCase):

  def setUp(self):
    self.stderr = StringIO.StringIO()

  def test_GetLibraries(self):
    self.assertEqual(
      msvs._GetLibraries({}),
      [])
    self.assertEqual(
      msvs._GetLibraries({'libraries': []}),
      [])
    self.assertEqual(
      msvs._GetLibraries({'other':'foo', 'libraries': ['a.lib']}),
      ['a.lib'])
    self.assertEqual(
      msvs._GetLibraries({'libraries': ['-la']}),
      ['a.lib'])
    self.assertEqual(
      msvs._GetLibraries({'libraries': ['a.lib', 'b.lib', 'c.lib', '-lb.lib',
                                   '-lb.lib', 'd.lib', 'a.lib']}),
      ['c.lib', 'b.lib', 'd.lib', 'a.lib'])

if __name__ == '__main__':
  unittest.main()

Version data entries

51 entries across 44 versions & 19 rubygems

Version Path
optimacms-0.1.61 spec/dummy/node_modules/node-gyp/gyp/pylib/gyp/generator/msvs_test.py
disco_app-0.18.0 test/dummy/node_modules/node-gyp/gyp/pylib/gyp/generator/msvs_test.py
disco_app-0.18.2 test/dummy/node_modules/node-gyp/gyp/pylib/gyp/generator/msvs_test.py
tang-0.2.1 spec/tang_app/node_modules/node-gyp/gyp/pylib/gyp/generator/msvs_test.py
groonga-client-model-6.0.0 test/apps/rails6.1.3/node_modules/node-gyp/gyp/pylib/gyp/generator/msvs_test.py
groonga-client-model-6.0.0 test/apps/rails6.0.3.5/node_modules/node-gyp/gyp/pylib/gyp/generator/msvs_test.py
ruby2js-4.0.4 lib/tasks/testrails/node_modules/node-gyp/gyp/pylib/gyp/generator/msvs_test.py
ruby2js-4.0.3 lib/tasks/testrails/node_modules/node-gyp/gyp/pylib/gyp/generator/msvs_test.py
tang-0.2.0 spec/tang_app/node_modules/node-gyp/gyp/pylib/gyp/generator/msvs_test.py
tang-0.1.0 spec/tang_app/node_modules/node-gyp/gyp/pylib/gyp/generator/msvs_test.py
tang-0.0.9 spec/tang_app/node_modules/node-gyp/gyp/pylib/gyp/generator/msvs_test.py
enju_library-0.3.8 spec/dummy/node_modules/node-gyp/gyp/pylib/gyp/generator/msvs_test.py
ilog-0.4.1 node_modules/node-gyp/gyp/pylib/gyp/generator/msvs_test.py
ilog-0.4.0 node_modules/node-gyp/gyp/pylib/gyp/generator/msvs_test.py
ilog-0.3.3 node_modules/node-gyp/gyp/pylib/gyp/generator/msvs_test.py
jester-data-8.0.0 node_modules/node-gyp/gyp/pylib/gyp/generator/msvs_test.py
ezii-os-5.2.1 node_modules/node-gyp/gyp/pylib/gyp/generator/msvs_test.py
ezii-os-2.0.1 node_modules/node-gyp/gyp/pylib/gyp/generator/msvs_test.py
ezii-os-1.1.0 node_modules/node-gyp/gyp/pylib/gyp/generator/msvs_test.py
ezii-os-1.0.0 node_modules/node-gyp/gyp/pylib/gyp/generator/msvs_test.py