$61 GRAYBYTE WORDPRESS FILE MANAGER $32

SERVER : premium201.web-hosting.com #1 SMP Wed Mar 26 12:08:09 UTC 2025
SERVER IP : 172.67.217.254 | ADMIN IP 216.73.216.157
OPTIONS : CRL = ON | WGT = ON | SDO = OFF | PKEX = OFF
DEACTIVATED : NONE

/usr/lib/node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/generator/

HOME
Current File : /usr/lib/node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/generator//ninja_test.py
#! /usr/bin/python2

# 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 ninja.py file. """

import gyp.generator.ninja as ninja
import unittest
import sys


class TestPrefixesAndSuffixes(unittest.TestCase):
  def test_BinaryNamesWindows(self):
    # These cannot run on non-Windows as they require a VS installation to
    # correctly handle variable expansion.
    if sys.platform.startswith('win'):
      writer = ninja.NinjaWriter('foo', 'wee', '.', '.', 'build.ninja', '.',
          'build.ninja', 'win')
      spec = { 'target_name': 'wee' }
      self.assertTrue(writer.ComputeOutputFileName(spec, 'executable').
          endswith('.exe'))
      self.assertTrue(writer.ComputeOutputFileName(spec, 'shared_library').
          endswith('.dll'))
      self.assertTrue(writer.ComputeOutputFileName(spec, 'static_library').
          endswith('.lib'))

  def test_BinaryNamesLinux(self):
    writer = ninja.NinjaWriter('foo', 'wee', '.', '.', 'build.ninja', '.',
        'build.ninja', 'linux')
    spec = { 'target_name': 'wee' }
    self.assertTrue('.' not in writer.ComputeOutputFileName(spec,
                                                            'executable'))
    self.assertTrue(writer.ComputeOutputFileName(spec, 'shared_library').
        startswith('lib'))
    self.assertTrue(writer.ComputeOutputFileName(spec, 'static_library').
        startswith('lib'))
    self.assertTrue(writer.ComputeOutputFileName(spec, 'shared_library').
        endswith('.so'))
    self.assertTrue(writer.ComputeOutputFileName(spec, 'static_library').
        endswith('.a'))

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


Current_dir [ NOT WRITEABLE ] Document_root [ NOT WRITEABLE ]


[ Back ]
NAME
SIZE
LAST TOUCH
USER
CAN-I?
FUNCTIONS
..
--
3 Mar 2024 10.36 PM
root / root
0755
__init__.py
0 KB
10 Mar 2021 2.36 PM
root / root
0644
analyzer.py
29.909 KB
10 Mar 2021 2.36 PM
root / root
0644
android.py
44.305 KB
10 Mar 2021 2.36 PM
root / root
0644
cmake.py
43.693 KB
10 Mar 2021 2.36 PM
root / root
0644
compile_commands_json.py
4.173 KB
10 Mar 2021 2.36 PM
root / root
0644
dump_dependency_json.py
3.384 KB
10 Mar 2021 2.36 PM
root / root
0644
eclipse.py
16.725 KB
10 Mar 2021 2.36 PM
root / root
0644
gypd.py
3.389 KB
10 Mar 2021 2.36 PM
root / root
0644
gypsh.py
1.626 KB
10 Mar 2021 2.36 PM
root / root
0644
make.py
90.864 KB
10 Mar 2021 2.36 PM
root / root
0644
msvs.py
130.435 KB
10 Mar 2021 2.36 PM
root / root
0644
msvs_test.py
1.05 KB
10 Mar 2021 2.36 PM
root / root
0644
ninja.py
98.424 KB
10 Mar 2021 2.36 PM
root / root
0644
ninja_test.py
1.709 KB
10 Mar 2021 2.36 PM
root / root
0644
xcode.py
56.99 KB
10 Mar 2021 2.36 PM
root / root
0644
xcode_test.py
0.628 KB
10 Mar 2021 2.36 PM
root / root
0644

GRAYBYTE WORDPRESS FILE MANAGER @ 2025 CONTACT ME
Static GIF