��Qc@s�dZddlZddlZddlmZddlmZmZmZddl m
Z
ddlmZddl
mZdefd ��YZd
ejejfd��YZd�Zed
kr�ejdd�ndS(sTests for distutils.ccompiler.i�N(tcaptured_stdout(tgen_lib_optionst CCompilertget_default_compiler(tcustomize_compiler(tdebug(tsupporttFakeCompilercBs/eZd�Zd�Zdd�Zd�ZRS(cCsd|S(Ns-L((tselftdir((s4/sys/lib/python2.7/distutils/tests/test_ccompiler.pytlibrary_dir_option
scCsdd|gS(Ns-cools-R((RR ((s4/sys/lib/python2.7/distutils/tests/test_ccompiler.pytruntime_library_dir_optionsicCsdS(Ntfound((RtdirstlibR((s4/sys/lib/python2.7/distutils/tests/test_ccompiler.pytfind_library_filescCsd|S(Ns-l((RR((s4/sys/lib/python2.7/distutils/tests/test_ccompiler.pytlibrary_options(t__name__t
__module__R
RRR(((s4/sys/lib/python2.7/distutils/tests/test_ccompiler.pyRs tCCompilerTestCasecBs#eZd�Zd�Zd�ZRS(cCszt�}ddg}dg}tjjdd�dg}t||||�}ddd d
ddg}|j||�dS(
Ntlib1tlib2trunlib1R tnametname2s-Llib1s-Llib2s-cools -Rrunlib1Rs-lname2(RtostpathtjoinRtassertEqual(Rtcompilertlibdirst
runlibdirstlibstoptstwanted((s4/sys/lib/python2.7/distutils/tests/test_ccompiler.pyttest_gen_lib_optionss cCs�dtfd��Y}|�}t��}|jd�WdQX|jd�|j|j�d�tt_zFt��}|jd�WdQX|jd�|j|j�d�Wdt t_XdS(NtMyCCompilercBseZiZRS((RRtexecutables(((s4/sys/lib/python2.7/distutils/tests/test_ccompiler.pyR$(stxxxitsxxx
(
RRtdebug_printtseekRtreadtTrueRtDEBUGtFalse(RR$Rtstdout((s4/sys/lib/python2.7/distutils/tests/test_ccompiler.pyttest_debug_print&s
cCsnt�dkrdSdtjd<dtjd<dd
d��Y}|�}t|�|j|jdd �dS(Ntunixtmy_artARs-arflagstARFLAGSRcBseZdZd�ZRS(R0c[s
||_dS(N(texes(Rtkw((s4/sys/lib/python2.7/distutils/tests/test_ccompiler.pytset_executablesGs(RRt
compiler_typeR6(((s4/sys/lib/python2.7/distutils/tests/test_ccompiler.pyRDstarchiversmy_ar -arflags((RRtenvironRRR4(RRtcomp((s4/sys/lib/python2.7/distutils/tests/test_ccompiler.pyttest_customize_compiler:s
(RRR#R/R;(((s4/sys/lib/python2.7/distutils/tests/test_ccompiler.pyRs cCs
tjt�S(N(tunittestt makeSuiteR(((s4/sys/lib/python2.7/distutils/tests/test_ccompiler.pyt
test_suiteNst__main__tdefaultTestR>(t__doc__RR<ttest.test_supportRtdistutils.ccompilerRRRtdistutils.sysconfigRt distutilsRtdistutils.testsRtobjectRtEnvironGuardtTestCaseRR>Rtmain(((s4/sys/lib/python2.7/distutils/tests/test_ccompiler.pyt<module>s
5
|