comparison scripts/launcher/launch.sh @ 40:1eb3ec190ea1

add test_accounts to create a batch of testing profiles
author souliane <souliane@mailoo.org>
date Sun, 08 Mar 2015 14:33:03 +0100
parents 7b337be4052d
children 068252a37689
comparison
equal deleted inserted replaced
39:58d99be2306e 40:1eb3ec190ea1
38 38
39 # 4 Firefox profiles names for testing 39 # 4 Firefox profiles names for testing
40 FF_PROFILES=(test1 test2 test3 test4) 40 FF_PROFILES=(test1 test2 test3 test4)
41 # 4 SàT profiles names for testing 41 # 4 SàT profiles names for testing
42 SAT_PROFILES=(pierre elisee louise buenaventura) 42 SAT_PROFILES=(pierre elisee louise buenaventura)
43 # Passwords for these profiles 43 # Common profile password for these profiles
44 SAT_PROFILES_PASSWD=(xxxxxx xxxxxx xxxxxx xxxxxx) 44 SAT_PROFILES_PASSWD=
45 45
46 # Launch sat in debug mode? 46 # Launch sat in debug mode?
47 SAT_DEBUG=1 47 SAT_DEBUG=1
48 # Launch sat pubsub in debug mode? 48 # Launch sat pubsub in debug mode?
49 SPS_DEBUG=0 49 SPS_DEBUG=0
123 4foxes() { 123 4foxes() {
124 # Starts 4 instances of firefox and connect SàT profiles with Libervia 124 # Starts 4 instances of firefox and connect SàT profiles with Libervia
125 # Assumes the HTTPS port for local server is 8443 125 # Assumes the HTTPS port for local server is 8443
126 echo "####### Starting 4 libervia clients #######" 126 echo "####### Starting 4 libervia clients #######"
127 for I in `seq 0 3`; do 127 for I in `seq 0 3`; do
128 URL="https://localhost:8443/libervia.html?login=${SAT_PROFILES[$I]}&passwd=${SAT_PROFILES_PASSWD[$I]}" 128 URL="https://localhost:8443/libervia.html?login=${SAT_PROFILES[$I]}&passwd=${SAT_PROFILES_PASSWD}"
129 firefox -no-remote -P ${FF_PROFILES[$I]} "$URL" & 129 firefox -no-remote -P ${FF_PROFILES[$I]} "$URL" &
130 done 130 done
131 } 131 }
132 clean() { 132 clean() {
133 echo "############ Cleaning log files ###########" 133 echo "############ Cleaning log files ###########"