From 59f00264f39dfb95a62401776b4ed8c433682fa7 Mon Sep 17 00:00:00 2001 From: Yaroslav Brustinov Date: Thu, 24 Mar 2016 20:00:27 +0200 Subject: gather stateful client to stf folder, create trex_client package --- linux_dpdk/ws_main.py | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) (limited to 'linux_dpdk') diff --git a/linux_dpdk/ws_main.py b/linux_dpdk/ws_main.py index 2aa06e3b..6310a8c2 100755 --- a/linux_dpdk/ws_main.py +++ b/linux_dpdk/ws_main.py @@ -546,7 +546,14 @@ dpdk_includes_path =''' ../src/ DPDK_FLAGS=['-D_GNU_SOURCE', '-DPF_DRIVER', '-DX722_SUPPORT', '-DVF_DRIVER', '-DINTEGRATED_VF']; - +client_external_libs = [ + 'enum34-1.0.4', + 'jsonrpclib-pelix-0.2.5', + 'pyyaml-3.11', + 'pyzmq-14.5.0', + 'scapy-2.3.1', + 'texttable-0.8.4', + ] RELEASE_ = "release" @@ -956,6 +963,16 @@ def release(bld, custom_dir = None): os.system("cp -rv %s %s " %(src_file,dest_file)); os.system("chmod 755 %s " %(dest_file)); + # create client package + os.system('mkdir -p %s/trex_client/external_libs' % exec_p) + os.system('touch %s/trex_client/__init__.py' % exec_p) + for ext_lib in client_external_libs: + os.system('cp ../scripts/external_libs/%s %s/trex_client/external_libs/ -r' % (ext_lib, exec_p)) + os.system('cp ../scripts/automation/trex_control_plane/stf %s/trex_client/ -r' % exec_p) + os.system('cp ../scripts/automation/trex_control_plane/stl/trex_stl_lib %s/trex_client/stl -r' % exec_p) + shutil.make_archive(os.path.join(exec_p, 'trex_client'), 'gztar', exec_p, 'trex_client') + os.system('rm -r %s/trex_client' % exec_p) + rel=get_build_num () os.system('cd %s/..;tar --exclude="*.pyc" -zcvf %s/%s.tar.gz %s' %(exec_p,os.getcwd(),rel,rel)) os.system("mv %s/%s.tar.gz %s" % (os.getcwd(),rel,exec_p)); -- cgit 1.2.3-korg