<s> """<STR_LIT>""" <EOL> import TestGyp <EOL> import os <EOL> import copy <EOL> import sys <EOL> here = os . path . dirname ( os . path . abspath ( __file__ ) ) <EOL> if sys . platform == '<STR_LIT:win32>' : <EOL> sys . exit ( <NUM_LIT:0> ) <EOL> for key in [ '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT>' , <EOL> '<STR_LIT>' , '<STR_LIT>' ] : <EOL> if key in os . environ : <EOL> del os . environ [ key ] <EOL> def CheckCompiler ( test , gypfile , check_for , run_gyp ) : <EOL> if run_gyp : <EOL> test . run_gyp ( gypfile ) <EOL> test . build ( gypfile ) <EOL> test . must_contain_all_lines ( test . stdout ( ) , check_for ) <EOL> test = TestGyp . TestGyp ( formats = [ '<STR_LIT>' ] ) <EOL> test . formats = [ '<STR_LIT>' if f == '<STR_LIT>' else f for f in test . formats ] <EOL> def TestTargetOverideSharedLib ( ) : <EOL> expected = [ '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT>' ] <EOL> env = { '<STR_LIT>' : '<STR_LIT>' % here , <EOL> '<STR_LIT>' : '<STR_LIT>' % here , <EOL> '<STR_LIT>' : '<STR_LIT>' % here , <EOL> '<STR_LIT>' : '<STR_LIT>' % here } <EOL> with TestGyp . LocalEnv ( env ) : <EOL> CheckCompiler ( test , '<STR_LIT>' , expected , True ) <EOL> test . must_contain ( test . built_file_path ( '<STR_LIT>' ) , '<STR_LIT>' ) <EOL> test . must_contain ( test . built_file_path ( '<STR_LIT>' ) , '<STR_LIT>' ) <EOL> test . unlink ( test . built_file_path ( '<STR_LIT>' ) ) <EOL> test . unlink ( test . built_file_path ( '<STR_LIT>' ) ) <EOL> CheckCompiler ( test , '<STR_LIT>' , expected , False ) <EOL> test . must_contain ( test . built_file_path ( '<STR_LIT>' ) , '<STR_LIT>' ) <EOL> test . must_contain ( test . built_file_path ( '<STR_LIT>' ) , '<STR_LIT>' ) <EOL> TestTargetOverideSharedLib ( ) <EOL> test . pass_test ( ) </s>
