#NEWLINE# def verify_ar_host( test , ar = None , rel_path = False ) : #NEWLINE# #INDENT# if rel_path : #NEWLINE# #INDENT# ar_expected = resolve_path ( test , ar ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# ar_expected = ar_expected #NEWLINE# #UNINDENT# if ( ar_expected is None ) : #NEWLINE# #INDENT# ar_expected = 'ar' #NEWLINE# #UNINDENT# if ( test . format == 'make' ) : #NEWLINE# #INDENT# test . must_contain ( 'Makefile' , ( 'AR.host ?= %s' % ar_expected ) ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if ( test . format in [ 'ninja' , 'xcode-ninja' ] ) : #NEWLINE# #INDENT# test . must_contain ( 'out/Default/build.ninja' , ( 'ar_host = %s' % ar_expected ) ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# test . fail_test ( )