<s> """<STR_LIT>""" <EOL> import TestGyp <EOL> import re <EOL> import subprocess <EOL> import sys <EOL> if sys . platform == '<STR_LIT>' : <EOL> test = TestGyp . TestGyp ( formats = [ '<STR_LIT>' , '<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 GetRpaths ( p ) : <EOL> p = test . built_file_path ( p , chdir = CHDIR ) <EOL> r = re . compile ( r'<STR_LIT>' , re . DOTALL ) <EOL> proc = subprocess . Popen ( [ '<STR_LIT>' , '<STR_LIT>' , p ] , stdout = subprocess . PIPE ) <EOL> o = proc . communicate ( ) [ <NUM_LIT:0> ] <EOL> assert not proc . returncode <EOL> return r . findall ( o ) <EOL> if GetRpaths ( '<STR_LIT>' ) != [ ] : <EOL> test . fail_test ( ) <EOL> if GetRpaths ( '<STR_LIT>' ) != [ '<STR_LIT>' ] : <EOL> test . fail_test ( ) <EOL> if ( GetRpaths ( '<STR_LIT>' ) != <EOL> [ '<STR_LIT>' , '<STR_LIT>' ] ) : <EOL> test . fail_test ( ) <EOL> if GetRpaths ( '<STR_LIT>' ) != [ '<STR_LIT>' ] : <EOL> test . fail_test ( ) <EOL> if GetRpaths ( '<STR_LIT>' ) != [ '<STR_LIT>' ] : <EOL> test . fail_test ( ) <EOL> test . pass_test ( ) </s>
