<s> """<STR_LIT>""" <EOL> import TestGyp <EOL> import sys <EOL> if sys . platform == '<STR_LIT:win32>' : <EOL> test = TestGyp . TestGyp ( formats = [ '<STR_LIT>' , '<STR_LIT>' ] ) <EOL> CHDIR = '<STR_LIT>' <EOL> test . run_gyp ( '<STR_LIT>' , chdir = CHDIR ) <EOL> test . build ( '<STR_LIT>' , test . ALL , chdir = CHDIR ) <EOL> def CheckForSectionString ( binary , search_for , should_exist ) : <EOL> output = test . run_dumpbin ( '<STR_LIT>' , binary ) <EOL> if should_exist and search_for not in output : <EOL> print '<STR_LIT>' % ( search_for , binary ) <EOL> test . fail_test ( ) <EOL> elif not should_exist and search_for in output : <EOL> print '<STR_LIT>' % ( search_for , binary ) <EOL> test . fail_test ( ) <EOL> def Object ( proj , obj ) : <EOL> sep = '<STR_LIT:.>' if test . format == '<STR_LIT>' else '<STR_LIT:\\>' <EOL> return '<STR_LIT>' % ( proj , sep , obj ) <EOL> look_for = '''<STR_LIT>''' <EOL> CheckForSectionString ( <EOL> test . built_file_path ( Object ( '<STR_LIT>' , '<STR_LIT>' ) , <EOL> chdir = CHDIR ) , <EOL> look_for , <EOL> should_exist = True ) <EOL> CheckForSectionString ( <EOL> test . built_file_path ( Object ( '<STR_LIT>' , '<STR_LIT>' ) , <EOL> chdir = CHDIR ) , <EOL> look_for , <EOL> should_exist = False ) <EOL> test . pass_test ( ) </s>
