Please enable JavaScript.
Coggle requires JavaScript to display documents.
SimFAST (sf_start.py (start tbox (tbox_script.py (sut.Tecsas (prepare…
SimFAST
sf_start.py
set stdout logging (StreamHandler)
start tbox
start with clearcase
_build_script_command
example: /vobs/gsn_simfast/lib/tbox
/tbox_script.py
--start --env cc --fast_console -v
execute commad
judge if it is in tbox server
yes
local execute command
if not block: use subprocess.Popen, directly execute tbox command
if block: use subprocess.call, directly execute tbox command
no
remote execute command
select tbox application: tbox or tboxpool
create new aommand
example: /proj/sgsn-tools/tbox/bin/tboxpool --simfast --session 1 --cmd "/vobs/gsn_simfast/lib/tbox/
tbox_script.py
--start --env cc --fast_console -v" --view ewanllu
ndpgsn_5_0_wb
ndpgsn_5_0_wbwhobos_try_new
execute command
if block: use subprocess.call, execute new tbox command
if not block: use subprocess.Popen, execute new tbox command
tbox_script.py
sethide terminals (if tecsas window need to be hidden)
sut.Tecsas
prepare environment variables
prepare parameters for SUT
setup logging
set stream logging
set file logging
store in /proj/simfast/shared/logs/simfast_tbox_ewanllu.log
fast.FAST
prepare environments for fast
prepare parameters for fast
parse arguments
run sut.Tecsas and fast.FAST
start SUT
prepare_runtime_files
generate_files
Generating file: /tmp/simfast/tecsas/runscript with mode 511 from template /vobs/gsn_simfast/lib/tbox/template/t_runscript ...
Generating file: /tmp/simfast/tecsas/user_config with mode 511 from template /vobs/gsn_simfast/lib/tbox/template/t_user_config
Generating file: /tmp/simfast/tecsas/config/config_node.sh with mode 511 from template /vobs/gsn_simfast/lib/tbox/template/t_config_node
copy /vobs/gsn_simfast/lib/config/sgsn to /tmp/simfast/tecsas/sgsn
create_runtime_folders
prepare_config_files
generate /tmp/simfast/tecsas/config/node666_1_SGSN.cfg
copy cli_script.pl to /tmp/simfast/tecsas/config/cli_script.pl
use subprocess.call to start tecsas
start fast
FASTInitiator
_check_env
make sure it's not started
create_fast_fs_cow
create filesystem qemu cow
create_bootup_script
create start_fast.sh according to t_start_fast
create bootup script
_start_screen
_start_screen
start screen, in which the bootup script will be executed
connect('ssh_console')
screen command is screen -c /vobs/gsn_simfast/lib/tbox/screenrc -d -m -S fast /local/tecsas/bin/tbox-55c59da11f440702f06afd6795e82cad5971251a --connect_shell -cmd /tmp/simfast/fast/start_fast.sh
prepare_runtime_files
_create_runtime_folders
_create_node_cfg
_generate_files
Fast connect command is xterm -geometry 132x44--250+250 -sl 5000 -sb -fg white -bg navy -cc 33:48,37:48,45-47:48,38:48 -title "eselnlx1614-tb51:FAST:ssh_console" -e /tmp/access_fast
set file logging (WatchedFileHandler)