date
echo "__Initial 10secs Begins"
sleep 10

i=1;
while true
do

echo "__1_OBC Module Smoke  Test begins"
{ sleep 2; 
#  echo 4; sleep 1; echo 1; sleep 1; echo 509; sleep 1;    
#  echo 4; sleep 1; echo 1; sleep 1; echo 510; sleep 1;                     
#  echo 4; sleep 1; echo 1; sleep 1; echo 511; sleep 1;    
#  echo 4; sleep 1; echo 1; sleep 1; echo 512; sleep 1;                       
#  echo 4; sleep 1; echo 1; sleep 1; echo 513; sleep 1;    
#  echo 4; sleep 1; echo 1; sleep 1; echo 514; sleep 1;  
#  echo 4; sleep 1; echo 1; sleep 1; echo 515; sleep 1;     
#  echo 4; sleep 1; echo 1; sleep 1; echo 516; sleep 1;                     
#  echo 4; sleep 1; echo 1; sleep 1; echo 517; sleep 1;    
#  echo 4; sleep 1; echo 1; sleep 1; echo 518; sleep 1;                       
#  echo 4; sleep 1; echo 1; sleep 1; echo 519; sleep 1;     
  echo 4; sleep 1; echo 1; sleep 1; echo 501; sleep 1;
  sleep 1; echo 1; sleep 1; echo 624; sleep 1;
  sleep 1; echo 1; sleep 1; echo 524; sleep 1; echo 1; sleep 1; echo 1; sleep 1; echo 1; sleep 1; echo 1; sleep 1; echo 1; sleep 1; echo 1; sleep 1;
  sleep 1; echo 1; sleep 1; echo 525; sleep 1;    
  sleep 1; echo 1; sleep 1; echo 526; sleep 1; echo 1; sleep 1; echo 1; sleep 1; echo 1; sleep 1; echo 1; sleep 1; echo 1; sleep 1;
  sleep 1; echo 1; sleep 1; echo 527; sleep 1;     
  sleep 1; echo 1; sleep 1; echo 528; sleep 1;                       
  sleep 1; echo 1; sleep 1; echo 529; sleep 1;    
  sleep 1; echo 1; sleep 1; echo 530; sleep 1;echo 1; sleep 1; echo 1; sleep 1;    
  sleep 1; echo 1; sleep 1; echo 531; sleep 1;    
  sleep 1; echo 1; sleep 1; echo 532; sleep 1; echo 1; sleep 1; echo 1; sleep 1; echo 1; sleep 1; echo 1; sleep 1; echo 1; sleep 1; echo 1; sleep 1;
  sleep 1; echo 1; sleep 1; echo 533; sleep 1;     
  sleep 1; echo 1; sleep 1; echo 534; sleep 1; echo 1; sleep 1; echo 1; sleep 1; echo 1; sleep 1; echo 1; sleep 1;                
  sleep 1; echo 1; sleep 1; echo 535; sleep 1;      
  sleep 1; echo 1; sleep 1; echo 536; sleep 1; echo 1; sleep 1; echo 1; sleep 1; echo 1; sleep 1; echo 1; sleep 1; echo 1; sleep 1;       
  sleep 1; echo 1; sleep 1; echo 537; sleep 1;      
  sleep 1; echo 1; sleep 1; echo 538; sleep 1; echo 1; sleep 1; echo 1; sleep 1; echo 1; sleep 1;       
  sleep 1; echo 1; sleep 1; echo 539; sleep 1;      
  sleep 1; echo 1; sleep 1; echo 540; sleep 1; echo 1; sleep 1; echo 1; sleep 1; echo 1; sleep 1;                                
  sleep 1; echo 1; sleep 1; echo 541; sleep 1;                       
  sleep 1; echo 1; sleep 1; echo 550; sleep 1; 
# sleep 1; echo 1; sleep 1; echo 551; sleep 1; echo 1; sleep 1;      
# sleep 1; echo 1; sleep 1; echo 558; sleep 1;
# sleep 1; echo 1; sleep 1; echo 553; sleep 1; echo 1; sleep 1;      
# sleep 1; echo 1; sleep 1; echo 560; sleep 1; echo 1; sleep 1;  
  sleep 1; echo 1; sleep 1; echo 560; sleep 1; echo 5; sleep 1;      
  sleep 1; echo 1; sleep 1; echo 560; sleep 1; echo 6; sleep 1;
  sleep 1; echo 1; sleep 1; echo 560; sleep 1; echo 7; sleep 1;      
  sleep 1; echo 1; sleep 1; echo 560; sleep 1; echo 8; sleep 1;
  sleep 1; echo 1; sleep 1; echo 560; sleep 1; echo 9; sleep 1;      
  sleep 1; echo 1; sleep 1; echo 560; sleep 1; echo 10; sleep 1;  
  sleep 1; echo 1; sleep 1; echo 560; sleep 1; echo 11; sleep 1;     
  sleep 1; echo 1; sleep 1; echo 560; sleep 1; echo 12; sleep 1;
  sleep 1; echo 1; sleep 1; echo 560; sleep 1; echo 13; sleep 1;     
  sleep 1; echo 1; sleep 1; echo 560; sleep 1; echo 14; sleep 1;  
  sleep 1; echo 1; sleep 1; echo 560; sleep 1; echo 15; sleep 1;     
  sleep 1; echo 1; sleep 1; echo 560; sleep 1; echo 16; sleep 1;      
  sleep 1; echo 1; sleep 1; echo 560; sleep 1; echo 17; sleep 1;      
  sleep 1; echo 1; sleep 1; echo 560; sleep 1; echo 18; sleep 1; 
  sleep 1; echo 1; sleep 1; echo 560; sleep 1; echo 20; sleep 1;     
  sleep 1; echo 1; sleep 1; echo 501; sleep 1;
  sleep 1; echo 1; sleep 1; echo 624; sleep 1;
#  sleep 1; echo 1; sleep 1; echo 900; sleep 1; echo 1; sleep 30;
#  sleep 1; echo 1; sleep 1; echo 901; sleep 1; echo 1; sleep 30;                       
#  sleep 1; echo 1; sleep 1; echo 902; sleep 1; echo 1; sleep 30;
  sleep 1; echo 17;} | ./mfcc_sample_app
echo "__1_OBC Module Smoke  Test Ends"




echo "__EPS Module Smoke Test Begins"
{ sleep 2; 
  echo 4; sleep 1; echo 11; sleep 1; echo 200; sleep 1;   
  sleep 1; echo 11; sleep 1; echo 201; sleep 1; echo 1; sleep 1;    
  sleep 1; echo 11; sleep 1; echo 201; sleep 1; echo 0; sleep 1;   
  sleep 1; echo 11; sleep 1; echo 202; sleep 1;
  sleep 1; echo 11; sleep 1; echo 203; sleep 1; echo 1; sleep 1;   
  sleep 1; echo 11; sleep 1; echo 203; sleep 1; echo 0; sleep 1;    
  sleep 1; echo 11; sleep 1; echo 204; sleep 1; echo 1; sleep 1; echo 1; sleep 1; echo 1; sleep 1; echo 1; sleep 1; echo 1; sleep 1; echo 1; sleep 1;   echo 1; sleep 1; echo 1; sleep 1; echo 1; sleep 1; echo 1; sleep 1; echo 1; sleep 1; #line continue  
  sleep 1; echo 11; sleep 1; echo 205; sleep 1;                    
  sleep 1; echo 11; sleep 1; echo 206; sleep 1; echo 0; sleep 1;
  sleep 1; echo 11; sleep 1; echo 206; sleep 1; echo 1; sleep 1;   
  sleep 1; echo 11; sleep 1; echo 206; sleep 1; echo 2; sleep 1;
  sleep 1; echo 11; sleep 1; echo 207; sleep 1;                    
  sleep 1; echo 11; sleep 1; echo 208; sleep 1;      
  sleep 1; echo 11; sleep 1; echo 209; sleep 1;                    
  sleep 1; echo 11; sleep 1; echo 211; sleep 1;
  sleep 1; echo 11; sleep 1; echo 212; sleep 1;                    
  sleep 1; echo 11; sleep 1; echo 213; sleep 1;  
  sleep 1; echo 11; sleep 1; echo 214; sleep 1;                     
  sleep 1; echo 11; sleep 1; echo 215; sleep 1;
  sleep 1; echo 11; sleep 1; echo 221; sleep 1; echo 0; sleep 1;   
  sleep 1; echo 11; sleep 1; echo 221; sleep 1; echo 1; sleep 1;
  sleep 1; echo 11; sleep 1; echo 221; sleep 1; echo 2; sleep 1;    
  sleep 1; echo 11; sleep 1; echo 221; sleep 1; echo 3; sleep 1;   
  sleep 1; echo 11; sleep 1; echo 222; sleep 1;
  sleep 1; echo 1; sleep 1; echo 501; sleep 1;
  sleep 1; echo 1; sleep 1; echo 624; sleep 1;
  sleep 1; echo 17;} | ./mfcc_sample_app
echo "__EPS Module Smoke Test Ends"


#echo "__SCH_TC Module Smoke Test Begins"
#{ sleep 2; 
#  echo 4;
#  sleep 1; echo 1; sleep 1; echo 547; sleep 1; echo 0; sleep 10; echo 0; sleep 30;    
#  sleep 1; echo 1; sleep 1; echo 548; sleep 1; echo 0; sleep 10; echo 0; sleep 30;
#  sleep 1; echo 1; sleep 1; echo 549; sleep 1; echo 1; sleep 1; echo 1; sleep 10;     
## sleep 1; echo 1; sleep 1; echo 548; sleep 1; echo 1; sleep 10;
## sleep 1; echo 1; sleep 1; echo 549; sleep 1; echo 1; sleep 1; echo 2; sleep 10;
#  sleep 1; echo 17;} | ./mfcc_sample_app
#echo "__SCH_TC Module Smoke Test Ends"




echo "__TTY Module Smoke Test Begins"
{ sleep 2;
  echo 4; 
  #sleep 1; echo 3; sleep 1; echo 134; sleep 1; echo 116; sleep 1;     
  sleep 1; echo 3; sleep 1; echo 134; sleep 1; echo 117; sleep 1; echo pwd; sleep 1;   
 # sleep 1; echo 3; sleep 1; echo 134; sleep 1; echo 118; sleep 1;
 sleep 1; echo 1; sleep 1; echo 501; sleep 1;
 sleep 1; echo 1; sleep 1; echo 624; sleep 1;
  sleep 1; echo 17;} | ./mfcc_sample_app
echo "__TTY Module Smoke Test Ends"



echo "__UHF_TC Module Smoke Test Begins"
{ sleep 2; 
  echo 4; sleep 1; echo 15; sleep 1; echo 800; sleep 1;    
  sleep 1; echo 15; sleep 1; echo 802; sleep 1;     
  sleep 1; echo 15; sleep 1; echo 803; sleep 1;         
  sleep 1; echo 15; sleep 1; echo 804; sleep 1;    
  sleep 1; echo 15; sleep 1; echo 805; sleep 1;      
  sleep 1; echo 15; sleep 1; echo 806; sleep 1;         
  sleep 1; echo 15; sleep 1; echo 807; sleep 1;    
  sleep 1; echo 15; sleep 1; echo 808; sleep 1;     
  sleep 1; echo 15; sleep 1; echo 809; sleep 1;         
  sleep 1; echo 15; sleep 1; echo 810; sleep 1;    
  sleep 1; echo 15; sleep 1; echo 811; sleep 1;      
 # sleep 1; echo 15; sleep 1; echo 812; sleep 1;         
 # sleep 1; echo 15; sleep 1; echo 813; sleep 1;    
 # sleep 1; echo 15; sleep 1; echo 814; sleep 1;      
  sleep 1; echo 15; sleep 1; echo 815; sleep 1;         
 # sleep 1; echo 15; sleep 1; echo 816; sleep 1;    
 # sleep 1; echo 15; sleep 1; echo 817; sleep 1;      
 # sleep 1; echo 15; sleep 1; echo 818; sleep 1;         
  sleep 1; echo 15; sleep 1; echo 819; sleep 1;    
 # sleep 1; echo 15; sleep 1; echo 820; sleep 1;      
 # sleep 1; echo 15; sleep 1; echo 821; sleep 1;         
 # sleep 1; echo 15; sleep 1; echo 822; sleep 1;    
 # sleep 1; echo 15; sleep 1; echo 823; sleep 1;      
 # sleep 1; echo 15; sleep 1; echo 824; sleep 1;         
 # sleep 1; echo 15; sleep 1; echo 825; sleep 1;
 sleep 1; echo 1; sleep 1; echo 501; sleep 1;
sleep 1; echo 1; sleep 1; echo 624; sleep 1;
  sleep 1; echo 17;} | ./mfcc_sample_app
echo "__UHF_TC Module Smoke Test Ends"


echo "__ADCS_TC Module smoke Test Begins"
{ sleep 2; 
  echo 4;
 # sleep 1; echo 5; sleep 1; echo 55; sleep 1;      
#  sleep 1; echo 5; sleep 1; echo 150; sleep 1;       
  sleep 1; echo 6; sleep 1;         
  sleep 1; echo 1; sleep 1; echo 501; sleep 1;
  sleep 1; echo 1; sleep 1; echo 624; sleep 1;
  sleep 1; echo 17;} | ./mfcc_sample_app
echo "__ADCS_TC Modules smoke Test  Ends"



echo "__PS_TC Module smoke Test Begins"
{ sleep 2;
  echo 4; 
 # sleep 1; echo 3; sleep 1; echo 134; sleep 1; echo 116; sleep 1; 
  sleep 1; echo 3; sleep 1; echo 134; sleep 1; echo 117; sleep 1; echo pwd; sleep 1; 
 # sleep 1; echo 3; sleep 1; echo 134; sleep 1; echo 118; sleep 1;
 sleep 1; echo 1; sleep 1; echo 501; sleep 1;
 sleep 1; echo 1; sleep 1; echo 624; sleep 1;
  sleep 1; echo 17;} | ./mfcc_sample_app
echo "__PS_TC Module smoke Test Begins"



echo "__IPCC_OBC_TO_PS Module smoke Test Begins"
{ sleep 2; 
  echo 4;
 # sleep 1; echo 1; sleep 1; echo 553; sleep 1; echo 6; sleep 1;    
  sleep 1; echo 1; sleep 1; echo 553; sleep 1; echo 7; sleep 1;      
  sleep 1; echo 1; sleep 1; echo 553; sleep 1; echo 8; sleep 1;      
 # sleep 1; echo 1; sleep 1; echo 553; sleep 1; echo 9; sleep 1; 
  sleep 1; echo 1; sleep 1; echo 553; sleep 1; echo 10; sleep 1;    
  sleep 1; echo 1; sleep 1; echo 553; sleep 1; echo 11; sleep 1;    
 # sleep 1; echo 1; sleep 1; echo 553; sleep 1; echo 12; sleep 1;    
 # sleep 1; echo 1; sleep 1; echo 553; sleep 1; echo 13; sleep 1;    
 # sleep 1; echo 1; sleep 1; echo 553; sleep 1; echo 14; sleep 1;    
 # sleep 1; echo 1; sleep 1; echo 553; sleep 1; echo 15; sleep 1;    
  sleep 1; echo 1; sleep 1; echo 553; sleep 1; echo 16; sleep 1;    
  sleep 1; echo 1; sleep 1; echo 553; sleep 1; echo 17; sleep 1;    
  sleep 1; echo 1; sleep 1; echo 553; sleep 1; echo 18; sleep 1;    
  sleep 1; echo 1; sleep 1; echo 553; sleep 1; echo 19; sleep 1;    
  sleep 1; echo 1; sleep 1; echo 553; sleep 1; echo 20; sleep 1;    
  sleep 1; echo 1; sleep 1; echo 553; sleep 1; echo 21; sleep 1;    
  sleep 1; echo 1; sleep 1; echo 553; sleep 1; echo 22; sleep 1;    
 # sleep 1; echo 1; sleep 1; echo 553; sleep 1; echo 23; sleep 1;    
 # sleep 1; echo 1; sleep 1; echo 553; sleep 1; echo 24; sleep 1;   
sleep 1; echo 1; sleep 1; echo 501; sleep 1;
 sleep 1; echo 1; sleep 1; echo 624; sleep 1;
  sleep 1; echo 17;} | ./mfcc_sample_app
echo "__IPCC_OBC_TO_PS Module smoke Test Begins"


#echo "___SBAND_TC Module Smoke Test Begins"
#{ sleep 2;
#  echo 3; sleep 1; echo 2; sleep 1; echo 300; sleep 10;
#  sleep 1; echo 2; sleep 1; echo 301; sleep 20;
#  sleep 1; echo 2; sleep 1; echo 302; sleep 20;
#  sleep 1; echo 2; sleep 1; echo 303; sleep 20;
#  sleep 1; echo 2; sleep 1; echo 304; sleep 20;
#  sleep 1; echo 2; sleep 1; echo 305; sleep 20;
##  sleep 1; echo 2; sleep 1; echo 306; sleep 20;
#  sleep 1; echo 2; sleep 1; echo 307; sleep 20;
#  sleep 1; echo 2; sleep 1; echo 308; sleep 20;
#  sleep 1; echo 2; sleep 1; echo 309; sleep 20;
##  sleep 1; echo 2; sleep 1; echo 310; sleep 20;
##  sleep 1; echo 2; sleep 1; echo 311; sleep 20;
##  sleep 1; echo 2; sleep 1; echo 312; sleep 20;
##  sleep 1; echo 2; sleep 1; echo 313; sleep 20;
##  sleep 1; echo 2; sleep 1; echo 314; sleep 20;
##  sleep 1; echo 2; sleep 1; echo 315; sleep 20;
#  sleep 1; echo 2; sleep 1; echo 319; sleep 10;
#  sleep 1; echo 2; sleep 1; echo 320; sleep 20;
#  sleep 1; echo 2; sleep 1; echo 321; sleep 20;
##  sleep 1; echo 2; sleep 1; echo 322; sleep 20;
##  sleep 1; echo 2; sleep 1; echo 323; sleep 20;
##  sleep 1; echo 2; sleep 1; echo 324; sleep 20;
##  sleep 1; echo 2; sleep 1; echo 325; sleep 20;
#  sleep 1; echo 2; sleep 1; echo 326; sleep 20;
#  sleep 1; echo 2; sleep 1; echo 327; sleep 20;
##  sleep 1; echo 2; sleep 1; echo 328; sleep 20;
#  sleep 1; echo 2; sleep 1; echo 329; sleep 20;
#  sleep 1; echo 2; sleep 1; echo 350; sleep 20;
#  sleep 1; echo 2; sleep 1; echo 351; sleep 50;
#  sleep 1; echo 2; sleep 1; echo 352; sleep 10;
#  sleep 1; echo 2; sleep 1; echo 353; sleep 5;
#  sleep 1; echo 2; sleep 1; echo 354; sleep 5;
#  sleep 1; echo 2; sleep 1; echo 355; sleep 5;
#  sleep 1; echo 2; sleep 1; echo 358; sleep 5;
#  sleep 1; echo 2; sleep 1; echo 359; sleep 5;
#  sleep 1; echo 2; sleep 1; echo 362; sleep 5;
#  sleep 1; echo 2; sleep 1; echo 369; sleep 5;
#  sleep 1; echo 2; sleep 1; echo 370; sleep 5;
#  sleep 1; echo 2; sleep 1; echo 371; sleep 5;
#  sleep 1; echo 2; sleep 1; echo 377; sleep 5;
#  sleep 1; echo 2; sleep 1; echo 382; sleep 5;
#  sleep 1; echo 2; sleep 1; echo 383; sleep 5;
#  sleep 1; echo 2; sleep 1; echo 384; sleep 5;
#  sleep 1; echo 2; sleep 1; echo 385; sleep 5;
#  sleep 1; echo 2; sleep 1; echo 389; sleep 5;
#  sleep 1; echo 2; sleep 1; echo 398; sleep 5;
#  sleep 1; echo 2; sleep 1; echo 399; sleep 5;
#  sleep 1; echo 2; sleep 1; echo 400; sleep 5;
#  sleep 1; echo 2; sleep 1; echo 450; sleep 5;
#  sleep 1; echo 2; sleep 1; echo 451; sleep 5;
#  sleep 1; echo 2; sleep 1; echo 452; sleep 5;
#  sleep 1; echo 2; sleep 1; echo 453; sleep 5;
#  sleep 1; echo 2; sleep 1; echo 454; sleep 5;
#  sleep 1; echo 2; sleep 1; echo 455; sleep 5;
#  sleep 1; echo 2; sleep 1; echo 456; sleep 5;
#  sleep 1; echo 2; sleep 1; echo 457; sleep 5;
#  sleep 1; echo 2; sleep 1; echo 460; sleep 5;
#  sleep 1; echo 2; sleep 1; echo 461; sleep 5;
#  sleep 1; echo 2; sleep 1; echo 462; sleep 5;
#  sleep 1; echo 2; sleep 1; echo 463; sleep 5;
#  sleep 1; echo 2; sleep 1; echo 464; sleep 5;
#  sleep 1; echo 2; sleep 1; echo 465; sleep 5;
#  sleep 1; echo 2; sleep 1; echo 466; sleep 5;
#  sleep 1; echo 2; sleep 1; echo 413; sleep 5;
#  sleep 1; echo 17;} | ./mfcc_sample_app
#echo "___SBAND_TC Module Smoke Test END"





#This module test case not havin in full validation test plan 
#echo "__11_OTSU_TC Module smoke Test Begins"
#{ sleep 2; 
#  echo 8 1 A; sleep 5;       echo 8 1 B; sleep 5;         echo 8 1 C; sleep 5;
#  echo 8 1 D; sleep 5;       echo 8 2; sleep 1;           echo 8 8; sleep 1;
#  echo 17;} | ./mfcc_sample_app
#echo "__11_OTSU_TC Module smoke Test Begins"

ran_num=$(shuf -i 60-60 -n1)
    echo "__After all sequence read iteration $i Sleep Duration is $ran_num"
    sleep $ran_num
    i=$((i+1))

done


