コード例 #1
0
ファイル: flags_test.py プロジェクト: snubbykins/vim
def _ReplaceCompilerTester(compiler, language):
    to_removes = [[], ['/usr/bin/ccache'], ['some_command', 'another_command']]
    expected = ['-foo', '-bar']

    for to_remove in to_removes:
        eq_([compiler, '-x', language] + expected,
            flags._CompilerToLanguageFlag(to_remove + [compiler] + expected))
コード例 #2
0
def _ReplaceCompilerTester( compiler, language ):
  to_removes = [
    [],
    [ '/usr/bin/ccache' ],
    [ 'some_command', 'another_command' ]
  ]
  expected = [ '-foo', '-bar' ]

  for to_remove in to_removes:
    eq_( [ compiler, '-x', language ] + expected,
         flags._CompilerToLanguageFlag( to_remove + [ compiler ] + expected ) )
コード例 #3
0
def CompilerToLanguageFlag_Passthrough_test():
  eq_( [ '-foo', '-bar' ],
       flags._CompilerToLanguageFlag( [ '-foo', '-bar' ] ) )
コード例 #4
0
ファイル: flags_test.py プロジェクト: snubbykins/vim
def CompilerToLanguageFlag_Passthrough_test():
    eq_(['-foo', '-bar'], flags._CompilerToLanguageFlag(['-foo', '-bar']))