blob: 9cbec9d5fdce5c30671311a3e9c710790d1c5b13 [file] [log] [blame]
Jon Hallf9572352016-03-09 10:21:18 -08001#!/bin/bash
2#-------------------------------------------------------------------------------
3# Test utility to spawn an iTerm window for testing against current cell.
4#-------------------------------------------------------------------------------
5
6osascript -e "
7tell application \"iTerm\"
8
9 set nodeIP to \"$OCN\"
10
11 set theTerm to (make new terminal)
12
13 tell theTerm
14 launch session \"DemoLeft\"
15 tell the current session
16 set name to \"TestON Log\"
17 write text \"export TERM=vt100\"
18 write text \"ssh admin@\" & nodeIP
19 set name to \"TestON Log\"
20 write text \"cd ~/OnosSystemTest/TestON/bin\"
21 write text \"tail -F /home/admin/ONS16/Demo.log\"
22
23 tell application \"System Events\" to keystroke \"d\" using command down
24 set name to \"TestON Testcase Code \"
25 write text \"export TERM=vt100\"
26 write text \"ssh admin@\" & nodeIP
27 write text \"cd ~/OnosSystemTest/TestON/bin\"
28 write text \"tail -F /home/admin/ONS16/DemoCode.txt\"
29 set foreground color to \"white\"
30 set background color to \"black\"
31 end tell
32
33 end tell
34end tell
35"
36 #set number of columns to 292
37 #set number of rows to 24
38 # set newSession to (split horizontally with profile \"DemoRight\" )
39 # set background color to \"gray\"