tzh
2024-08-22 c7d0944258c7d0943aa7b2211498fd612971ce27
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
Q\¬Qc@sˆddlZddlZddlZddlZddlZddlmZdejfd„ƒYZd„Z    e
dkr„e    ƒndS(iÿÿÿÿN(t test_supportt PlatformTestcBseZd„Zeedƒr*d„Znd„Zd„Zd„Zd„Z    d„Z
d„Z d    „Z d
„Z d „Zd „Zd „Zd„Zejejjdƒdƒd„ƒZd„Zd„Zd„Zejejdkdƒd„ƒZd„Zd„Zd„ZRS(cCstjƒ}dS(N(tplatformt architecture(tselftres((sZ/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_platform.pyttest_architecture
stsymlinkcCsxd„}tjjtjƒ}tjjtjƒ}tj||ƒz |j    ||ƒ||ƒƒWdtj
|ƒXdS(NcSs1|ddg}tj|dtjƒ}|jƒS(Ns-cs.import platform; print platform.architecture()tstdout(t
subprocesstPopentPIPEt communicate(tpythontcmdtp((sZ/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_platform.pytgets    ( tostpathtrealpathtsyst
executabletabspathRtTESTFNRt assertEqualtremove(RRtrealtlink((sZ/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_platform.pyttest_architecture_via_symlinks     cCsDx=ttfD]/}x&ttfD]}tj||ƒ}q Wq WdS(N(tFalsetTrueR(RtaliasedtterseR((sZ/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_platform.pyt test_platformscCstjƒ}dS(N(Rtsystem(RR((sZ/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_platform.pyt test_system!scCstjƒ}dS(N(Rtnode(RR((sZ/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_platform.pyt    test_node$scCstjƒ}dS(N(Rtrelease(RR((sZ/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_platform.pyt test_release'scCstjƒ}dS(N(Rtversion(RR((sZ/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_platform.pyt test_version*scCstjƒ}dS(N(Rtmachine(RR((sZ/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_platform.pyt test_machine-scCstjƒ}dS(N(Rt    processor(RR((sZ/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_platform.pyttest_processor0scCs(tj|_tj|_tj|_dS(N(RR(t save_versiont
subversiontsave_subversionRt save_platform(R((sZ/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_platform.pytsetUp3s  cCs(|jt_|jt_|jt_dS(N(R.RR(R0R/R1R(R((sZ/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_platform.pyttearDown8s  c
Csxxdd,fdd-fd d.ffD]U\}}tj|ƒ\}}}}}}}    |j||dd|||    f|ƒq"Widdddd/dfdd0|jf6d    dddd1dfd26ddddd3dfd d4df6d!d"dd#d5dfd$d6|jf6}
x|
jƒD]\\} } } }| t_| dkrXttd%ƒrat`    qan    | t_    | dk    ry| t_n|jtj
ƒ|d&ƒ|jtj ƒ|d'ƒ|jtj ƒ|d(ƒ|jtj ƒ|d)ƒ|jtjƒ|d*ƒ|jtjƒ|d+ƒqWdS(7NsC2.4.3 (#1, Jun 21 2006, 13:54:21) 
[GCC 3.3.4 (pre 3.3.5 20040809)]tCPythons2.4.3tt1sJun 21 2006 13:54:21sGCC 3.3.4 (pre 3.3.5 20040809)s)IronPython 1.0.60816 on .NET 2.0.50727.42t
IronPythons    1.0.60816s.NET 2.0.50727.42s4IronPython 1.0 (1.0.61005.1977) on .NET 2.0.50727.42s1.0.0s2.6.1s    tags/r261t67515s
r261:67515sDec  6 2008 15:26:00s+GCC 4.0.1 (Apple Computer, Inc. build 5370)sX2.6.1 (r261:67515, Dec  6 2008, 15:26:00) 
[GCC 4.0.1 (Apple Computer, Inc. build 5370)]s2.0.0s.NET 2.0.50727.3053s/IronPython 2.0 (2.0.0.0) on .NET 2.0.50727.3053tclitJythons2.5.0ttrunkt6107s
trunk:6107s Mar 26 2009s java1.5.0_16s^2.5 (trunk:6107, Mar 26 2009, 13:02:18) 
[Java HotSpot(TM) Client VM ("Apple Computer, Inc.")]tPyPys2.5.2t63378s12.5.2 (63378, Mar 26 2009, 18:03:29)
[PyPy 1.0.0]R/iiiiii(R4s2.4.3R5R5R6sJun 21 2006 13:54:21sGCC 3.3.4 (pre 3.3.5 20040809)(R7s    1.0.60816R5R5R5R5s.NET 2.0.50727.42(R7s1.0.0R5R5R5R5s.NET 2.0.50727.42(s
r261:67515sDec  6 2008 15:26:00(R4s    tags/r261R8(R5R5(s/IronPython 2.0 (2.0.0.0) on .NET 2.0.50727.3053NR9(s
trunk:6107s Mar 26 2009(R:R;R<(R>s Mar 26 2009(R=R;R>(Rt _sys_versionRR1tNonet    iteritemsRR(thasattrR/tpython_implementationtpython_versiont python_branchtpython_revisiont python_buildtpython_compiler(RtinputtoutputtnameR(tbranchtrevisiontbuildnot    builddatetcompilert sys_versionst version_tagR/t sys_platformtinfo((sZ/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_platform.pyttest_sys_version=sF$# 
             cCs+tjtjƒtjƒtjƒƒ}dS(N(Rt system_aliasR"R&R((RR((sZ/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_platform.pyttest_system_aliasws        cCs#tjƒ}|jt|ƒƒdS(N(Rtunamet
assertTruetany(RR((sZ/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_platform.pyt
test_uname~s twinswindows only testc
CsÂz±tjƒŸ}d|kr(|d=nd|d<dt_tjƒ\}}}}}}|j|dƒd|d<dt_tjƒ\}}}}}}|j|dƒWdQXWddt_XdS(NtPROCESSOR_ARCHITEW6432tfootPROCESSOR_ARCHITECTUREtbar(RtEnvironmentVarGuardR@Rt _uname_cacheRXR(RtenvironR"R$R&R(R*R,((sZ/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_platform.pyttest_uname_win32_ARCHITEW6432‚s 
 
    
    cCs5tjƒ}tjdkr1|jt|ƒƒndS(Ntjava(Rtjava_verRRYtall(RR((sZ/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_platform.pyt test_java_ver—s cCstjƒ}dS(N(Rt    win32_ver(RR((sZ/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_platform.pyttest_win32_verœsc
Cs‡tjƒ}yddl}Wntk
r5t}nXt}|rƒtjƒddkrƒtjddƒ}d}x7|D]/}|j
dƒrw|j ƒj ƒd}PqwqwW|j ƒ|j|dkƒ|dj dƒ}|j dƒ}t|ƒt|ƒ}    |    dkr"|jdg|    ƒn|j||ƒ|j|d    dƒtjd krl|j|d dƒqƒ|j|d dƒndS(NiÿÿÿÿitDarwintsw_verstrsProductVersion:t.t0iR5tlittleiti386tx86_64tPowerPC(R5R5R5(si386sx86_64(Rtmac_vertgestaltt ImportErrorRRRXRtpopenR@t
startswithtstriptsplittcloset assertFalsetlentextendRRt    byteordertassertIn(
RRRuthave_toolbox_gluetfdtreal_vertlnt result_listt expect_listtlen_diff((sZ/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_platform.pyt test_mac_verŸs2  
 
 tdarwins OSX only testcCsptjƒ}|dkr4tjƒ}tjdƒn8tj|dƒ\}}|j||ƒ|j|dƒdS(Ni(RtforkRRtt_exittwaitpidR(RtpidRTtcpidtsts((sZ/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_platform.pyttest_mac_ver_with_forkÇs   cCstjƒ}dS(N(Rtdist(RR((sZ/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_platform.pyt    test_distÙscCsfddl}|jjtjƒrJ|jjtjdƒrJtjd}n    tj}tj|ƒ}dS(Niÿÿÿÿs.exe(RRtisdirRRtexistsRtlibc_ver(RRRR((sZ/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_platform.pyt test_libc_verÜs      c CsŽx‡dd!fdd"fd    d#fd d$fdd%fdd&fdd'fdd(fdd)fd d*ff
D]%\}}|jtj|ƒ|ƒqaWdS(+NsSuSE Linux 9.3 (x86-64)s SuSE Linux s9.3sx86-64sSUSE LINUX 10.1 (X86-64)s SUSE LINUX s10.1sX86-64sSUSE LINUX 10.1 (i586)ti586s Fedora Core release 5 (Bordeaux)s Fedora Coret5tBordeauxs"Red Hat Linux release 8.0 (Psyche)s Red Hat Linuxs8.0tPsyches Red Hat Linux release 9 (Shrike)t9tShrikes+Red Hat Enterprise Linux release 4 (Nahant)sRed Hat Enterprise Linuxt4tNahantsCentOS release 4tCentOSsRocks release 4.2.1 (Cydonia)tRockss4.2.1tCydoniaR5(s SuSE Linux s9.3sx86-64(s SUSE LINUX s10.1sX86-64(s SUSE LINUX s10.1R—(s Fedora CoreR˜R™(s Red Hat Linuxs8.0Rš(s Red Hat LinuxR›Rœ(sRed Hat Enterprise LinuxRRž(RŸRN(R s4.2.1R¡(R5R5R5(R@RRt_parse_release_file(RRIRJ((sZ/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_platform.pyttest_parse_release_fileæs                                    (t__name__t
__module__RRBRRR!R#R%R'R)R+R-R2R3RURWR[tunittestt
skipUnlessRRRxRdRhRjRˆRR’R–R£(((sZ/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_platform.pyR    s.                                             :        '            ($        
cCstjtƒdS(N(Rt run_unittestR(((sZ/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_platform.pyt    test_mainøst__main__( RRR¦RR    ttestRtTestCaseRR©R¤(((sZ/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_platform.pyt<module>s     ï