Changeset 4218


Ignore:
Timestamp:
03/19/08 04:09:06 (5 years ago)
Author:
jeremy
Message:

2008-03-19 Jeremy Chang <jeremy@…>

For adding diversity testing support.

Location:
developers/tick/Test_env_script_GTA02A5
Files:
1 added
1 edited

Legend:

Unmodified
Added
Removed
  • developers/tick/Test_env_script_GTA02A5/setupenv

    r4161 r4218  
    44NEEDDOWNLOAD=1; 
    55ASSASSINTESTENV=1; 
     6DIVERSITYTESTENV=1; 
    67INTERNALFLAG=1 
    78 
     
    3940        echo "  1. Reflash images cached only." 
    4041        echo "  2. Reflash images cached and setup Assassin Testing enviornment." 
    41         echo "  3. Download Images from buildhost, and reflashing them only." 
    42         echo "  4. Download Images from buildhostm and setup Assassin Testing environment." 
     42        echo "  3. Reflash images cached and setup Diversity Testing enviornment." 
     43        echo "  4. Download Images from buildhost, and reflashing them only." 
     44        echo "  5. Download Images from buildhostm and setup Assassin Testing environment." 
     45        echo "  6. Download Images from buildhostm and setup Diversity Testing environment." 
    4346        echo -n "choice >" 
    4447        read ANS 
     
    5154                ASSASSINTESTENV=1; 
    5255        elif ((  ${ANS} == 3 ));then 
     56                NEEDDOWNLOAD=0; 
     57                DIVERSITYTESTENV=1; 
     58        elif ((  ${ANS} == 4 ));then 
    5359                NEEDDOWNLOAD=1; 
    5460                ASSASSINTESTENV=0; 
    55         elif ((  ${ANS} == 4 ));then 
     61        elif ((  ${ANS} == 5 ));then 
    5662                NEEDDOWNLOAD=1; 
    5763                ASSASSINTESTENV=1; 
     64        elif ((  ${ANS} == 6 ));then 
     65                NEEDDOWNLOAD=1; 
     66                DIVERSITYTESTENV=1; 
    5867        else  
    5968                setup_env 
     
    147156        ssh root@192.168.0.202 "chmod 755 ./setup_at_neo_assassin.script;./setup_at_neo_assassin.script" 
    148157fi 
     158if (( ${DIVERSITYTESTENV}== 1));then 
     159        if ! [ -e ~/.ssh/config ]; then 
     160                config_ssh 
     161        elif (( `cat ~/.ssh/config | grep "neo" | wc -l`== 0 ));then 
     162                config_ssh 
     163        fi 
     164        scp gta02.conf  resolv.conf setup_at_neo_diversity.script root@192.168.0.202:~/ 
     165        ssh root@192.168.0.202 "chmod 755 ./setup_at_neo_diversity.script;./setup_at_neo_diversity.script" 
     166fi 
    149167echo "Ok!! Now the Neo is all yours. Enjoy Hacking || Testing..." 
Note: See TracChangeset for help on using the changeset viewer.