%PDF- %PDF-
Direktori : /usr/local/lib/python2.7/distutils/tests/ |
Current File : //usr/local/lib/python2.7/distutils/tests/test_ccompiler.pyo |
ó Pêáac @ sÛ d Z d d l Z d d l Z d d l m Z d d l m Z m Z m Z d d l m Z d d l m Z d d l m Z d e f d „ ƒ YZ d e j e j f d „ ƒ YZ d „ Z e d k r× e j d d ƒ n d S( s Tests for distutils.ccompiler.iÿÿÿÿN( t captured_stdout( t gen_lib_optionst CCompilert get_default_compiler( t customize_compiler( t debug( t supportt FakeCompilerc B s/ e Z d „ Z d „ Z d d „ Z d „ Z RS( c C s d | S( Ns -L( ( t selft dir( ( s: /usr/local/lib/python2.7/distutils/tests/test_ccompiler.pyt library_dir_option s c C s d d | g S( Ns -cools -R( ( R R ( ( s: /usr/local/lib/python2.7/distutils/tests/test_ccompiler.pyt runtime_library_dir_option s i c C s d S( Nt found( ( R t dirst libR ( ( s: /usr/local/lib/python2.7/distutils/tests/test_ccompiler.pyt find_library_file s c C s d | S( Ns -l( ( R R ( ( s: /usr/local/lib/python2.7/distutils/tests/test_ccompiler.pyt library_option s ( t __name__t __module__R R R R ( ( ( s: /usr/local/lib/python2.7/distutils/tests/test_ccompiler.pyR s t CCompilerTestCasec B sG e Z d „ Z d „ Z d „ Z e j e ƒ d k d ƒ d „ ƒ Z RS( c C s° d t f d „ ƒ Y} | ƒ } | j d d d d g ƒ | j | j d d d g ƒ | j d d ƒ | j | j d d d g ƒ | j d d ƒ | j | j d d d g ƒ d S( Nt MyCCompilerc B s# e Z i d d 6d d 6d d 6Z RS( t t compilert compiler_cxxt linker( R R t executables( ( ( s: /usr/local/lib/python2.7/distutils/tests/test_ccompiler.pyR s R t envs OMPI_MPICC=clangt mpiccR s env OMPI_MPICXX=clang++ mpicxxs OMPI_MPICXX=clang++t mpicxxR u env OMPI_MPICXX=clang++ mpiCCu envu OMPI_MPICXX=clang++u mpiCC( R t set_executablest assertEqualR R R ( R R R ( ( s: /usr/local/lib/python2.7/distutils/tests/test_ccompiler.pyt test_set_executables s c C sz t ƒ } d d g } d g } t j j d d ƒ d g } t | | | | ƒ } d d d d d d g } | j | | ƒ d S( Nt lib1t lib2t runlib1R t namet name2s -Llib1s -Llib2s -cools -Rrunlib1R s -lname2( R t ost patht joinR R ( R R t libdirst runlibdirst libst optst wanted( ( s: /usr/local/lib/python2.7/distutils/tests/test_ccompiler.pyt test_gen_lib_options3 s c C sÁ d t f d „ ƒ Y} | ƒ } t ƒ } | j d ƒ Wd QX| j d ƒ | j | j ƒ d ƒ t t _ zF t ƒ } | j d ƒ Wd QX| j d ƒ | j | j ƒ d ƒ Wd t t _ Xd S( NR c B s e Z i Z RS( ( R R R ( ( ( s: /usr/local/lib/python2.7/distutils/tests/test_ccompiler.pyR @ s t xxxi R s xxx ( R R t debug_printt seekR t readt TrueR t DEBUGt False( R R R t stdout( ( s: /usr/local/lib/python2.7/distutils/tests/test_ccompiler.pyt test_debug_print>