Tryag File Manager
Home
-
Turbo Force
Current Path :
/
usr
/
lib
/
python2.4
/
distutils
/
tests
/
Upload File :
New :
File
Dir
//usr/lib/python2.4/distutils/tests/test_build_scripts.pyc
mō =5Dc @ s d Z d k Z d k Z d k l Z d k l Z d k l Z d e i e i e i f d YZ d Z e d j o e i d d n d S( s* Tests for distutils.command.build_scripts.N( s build_scripts( s Distribution( s supportt BuildScriptsTestCasec B s5 t Z d Z d Z d Z d Z d Z RS( Nc C sj | i d g } | i | i | i | i d j | i | i | i | i | i d d S( Ns /foo/bar( t selft get_build_scripts_cmdt cmdt assert_t forcet build_dirt Nonet finalize_optionst assertEqual( R R ( ( t8 /usr/lib/python2.4/distutils/tests/test_build_scripts.pyt test_default_settings s c C sŪ | i } | i } | i | } | i | g } | D] } | t i i | | q; ~ } | i | i t i | } x! | D] } | i | | j q Wd S( N( R t mkdtempt sourcet targett write_sample_scriptst expectedR t _[1]t fnt ost patht joinR R t runt listdirt builtt nameR ( R R R R R R R R R ( ( R t test_build s 3 c C sM d k } t } | | _ t i d | d d d | i | i d <t | S( Nt build_scriptsR i t executablet build( t syst Distributiont distt scriptst supportt DummyCommandR R t command_objR ( R R R! R R ( ( R R ) s c C sj g } | i d | i | d d | i d | i | d d | i d | i | d d | S( Ns script1.pys@ #! /usr/bin/env python2.3 # bogus script w/ Python sh-bang pass s script2.pys8 #!/usr/bin/python # bogus script w/ Python sh-bang pass s shell.shs1 #!/bin/sh # bogus shell script w/ sh-bang exit 0 ( R t appendR t write_scriptt dir( R R' R ( ( R R 4 s c C s9 t t i i | | d } | i | | i d S( Nt w( t openR R R R' R t ft writet textt close( R R' R R, R* ( ( R R&