ó
ÓnäZc           @   s~   d  Z  d d l j j Z d d l Z d d l Z d d l Z d d l Z d e j f d „  ƒ  YZ	 e
 d k rz e j ƒ  n  d S(   s#    Unit tests for the ninja.py file. iÿÿÿÿNt   TestPrefixesAndSuffixesc           B   s   e  Z d  „  Z d „  Z RS(   c      	   C   s°   t  j j d ƒ r¬ t j d d d d d d d d ƒ } i d d 6} |  j | j | d ƒ j d ƒ ƒ |  j | j | d	 ƒ j d
 ƒ ƒ |  j | j | d ƒ j d ƒ ƒ n  d  S(   Nt   wint   foot   weet   .s   build.ninjat   target_namet
   executables   .exet   shared_librarys   .dllt   static_librarys   .lib(   t   syst   platformt
   startswitht   ninjat   NinjaWritert
   assertTruet   ComputeOutputFileNamet   endswith(   t   selft   writert   spec(    (    s<   /usr/lib/python2.7/dist-packages/gyp/generator/ninja_test.pyt   test_BinaryNamesWindows   s    

c      	   C   sÜ   t  j d d d d d d d d ƒ } i d d 6} |  j d | j | d ƒ k ƒ |  j | j | d ƒ j d	 ƒ ƒ |  j | j | d
 ƒ j d	 ƒ ƒ |  j | j | d ƒ j d ƒ ƒ |  j | j | d
 ƒ j d ƒ ƒ d  S(   NR   R   R   s   build.ninjat   linuxR   R   R   t   libR   s   .sos   .a(   R   R   R   R   R   R   (   R   R   R   (    (    s<   /usr/lib/python2.7/dist-packages/gyp/generator/ninja_test.pyt   test_BinaryNamesLinux   s    


(   t   __name__t
   __module__R   R   (    (    (    s<   /usr/lib/python2.7/dist-packages/gyp/generator/ninja_test.pyR       s   	t   __main__(   t   __doc__t   gyp.generator.ninjat	   generatorR   t   unittestt   StringIOR	   t
   TestCommont   TestCaseR    R   t   main(    (    (    s<   /usr/lib/python2.7/dist-packages/gyp/generator/ninja_test.pyt   <module>   s   