ZYgwddlZddlZddlZddlZddlZddlZddlZddlZddl Zda da da dZ dZdZdZdZdZdZd ZdS) Nctjtjjdatjt datj dza tj t ddS)Ngitzlibosmo-sigtranT)exist_ok) ospathjointestenvargscachegit_dirsccp_dirmultiprocessing cpu_countjobsmakedirs\/home/osmocom-build/jenkins/workspace/ttcn3-dia2gsup-test/_testenv/testenv/podman_install.pyinitrsb gll7<-u55Gw||G%677H  $ & & *DK$''''''rc~|d|dg}|tj}||kr ||d|dgz }|S)Nz-dbgz-dbgsym)rstripstringdigits)depret dep_nodigitss r get_dbg_pkgsrs^<< z apt-rdepends)stdoutzutf-8 z  rrgrep-q^$z -> z : installing )rrr r r r cmdrunshlexquote subprocessPIPEr"decodesplit startswithrr returncodeloggingdebugitems) pkgsr!dbg_pkgspkgrdepslinerdbg_pkgr%rdbgs rapt_get_dbg_pkgsr=)s7<< 2HnMMLH KOOV5;|;T;TVVWWWMM   5joNNL''0066t<< M MDt$$ ++--%%c1--a0C(""+C00G&>64W*VWWD!++(/ ,h&&$(HSM} M KK#KKHSMKKLLL' M* CNN$$S   C5LC Jrc|sdStt|}|t|z }tjdd|t jgd|zdS)NzInstalling packages: z, )zapt-getr&installz-yz--no-install-recommends) listsetr=r3infor r r)r*)r6s r apt_installrCRs  D ??D T " ""D L:4::;;; KOOQQQTXXYYYYYrc tjtrt jddSt jddtddddgdS)Nzlibosmo-sigtran: already clonedrz-Cclonez--depth1z*https://gerrit.osmocom.org/libosmo-sigtran) rrexistsrr3r4r r)r*r rrrclone_libosmo_sigtranrH_sj w~~h 7888 KOO       8      rctjtd}t ddgtj|s t tjdtj ddgttj dgttj d d td gtjtd tj d d td gtjtdtj dd|dgdS)Nzexamples/sccp_demo_userzlibosmo-netif-devzlibosmocore-devzBuilding sccp_demo_user autoreconfz-fi)cwdz ./configuremakez-jzlibosmo-sigtran.lasrcsccp_demo_userexampleslnz-sz/usr/local/bin/sccp_demo_user) rrr rrCrGrHr3rBr r)r*r)sccp_demo_user_paths rfrom_source_sccp_demo_userrRqsL',,x1JKK    7>>- . .   ./// u-8<<< X666  Td9&: ; Xu--       Td9&6 7 Xz22     KOOT4!46UVWWWWWrcZ||dddd}|dkrtStjd|dtjd|d |tjd tjd t jddS) Nprogramr$rrzrun_sccp_demo_user.shzCan't install z! Fix this by either:z* Adding package= to [z] in z/ (if it can be installed from binary packages)z4* Editing from_source() in testenv/podman_install.py)r0rRr3errorsysexit)cfgcfg_namesectionrTs r from_sourcer[s'l9%++C33A6G))))+++ MA7AAABBB MC7CCCCDDD MCDDD MHIIIHQKKKKKrcg}|D]P}|dvr||}d|vr,|ddkr ||ddz }?t|||Qt|dS)N)DEFAULT testsuitepackagenor$)r0r[rC)rXrYpackagesrZ section_datas rrarasH 0 0 . . . 7|  $ $I&$..  Y/55c:: :HH Xw / / / /r)r3rrr+rr-rV testenv.cmdr testenv.podmanr rrrrr=rCrHrRr[rarrrres      ( ( (&&&R Z Z Z$XXX:   r