diff options
author | Yaroslav Brustinov <ybrustin@cisco.com> | 2016-03-24 20:00:27 +0200 |
---|---|---|
committer | Yaroslav Brustinov <ybrustin@cisco.com> | 2016-03-24 20:00:27 +0200 |
commit | 59f00264f39dfb95a62401776b4ed8c433682fa7 (patch) | |
tree | 96b5411f17faed9f62aa9e4722b29d767d502b1b /linux_dpdk | |
parent | 4e8ce34a9ef6b8883cfed47f77c9b753e1cf4248 (diff) |
gather stateful client to stf folder, create trex_client package
Diffstat (limited to 'linux_dpdk')
-rwxr-xr-x | linux_dpdk/ws_main.py | 19 |
1 files changed, 18 insertions, 1 deletions
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)); |