date
echo "__Initial 10secs Begins"
sleep 10


echo "___OBC Module Smoke  Test begins"
{ sleep 2; 
  echo 4; 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 19; sleep 1;
  sleep 1; echo 17;} | ./mfcc_sample_app
echo "__OBC Module Smoke  Test Ends"

echo "__OBC Module Smoke Test begins"
{ sleep 2;
  echo 4; sleep 1; echo 1; sleep 1; echo 117; sleep 1; echo 1; sleep 1;
  sleep 1; echo 17;} | ./mfcc_sample_app
echo "__OBC Module Smoke  Test Ends"

echo "__EPS Module Smoke Test Begins"
{ sleep 2; 
  echo 4; sleep 1; echo 1; sleep 1; echo 201; sleep 1; echo 1; sleep 1;   
  sleep 1; echo 1; sleep 1; echo 201; sleep 1; echo 0; sleep 1;  
  sleep 1; echo 1; sleep 1; echo 203; sleep 1; echo 1; sleep 1;
  sleep 1; echo 1; sleep 1; echo 203; sleep 1; echo 0; sleep 1;    
  sleep 1; echo 1; sleep 1; echo 206; sleep 1; echo 0; sleep 1;  
  sleep 1; echo 1; sleep 1; echo 206; sleep 1; echo 1; sleep 1;
  sleep 1; echo 1; sleep 1; echo 206; sleep 1; echo 2; sleep 1;    
  sleep 1; echo 1; sleep 1; echo 208; sleep 1;
  sleep 1; echo 1; sleep 1; echo 209; sleep 1;
  sleep 1; echo 17;} | ./mfcc_sample_app
echo "__EPS 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 17;} | ./mfcc_sample_app
echo "__TTY Module Smoke Test Ends"


#echo "__SRS4_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 319; sleep 10;
#  sleep 1; echo 2; sleep 1; echo 340; sleep 10;      
#  sleep 1; echo 2; sleep 1; echo 350; sleep 10;
#  sleep 1; echo 2; sleep 1; echo 369; sleep 10;
#  sleep 1; echo 2; sleep 1; echo 390; sleep 10;         
#  sleep 1; echo 17;} | ./mfcc_sample_app
#echo "__SRS4_SBAND_TC Module Smoke Test Ends"

#UHF_TC Not Support 
# echo "__UHF_TC Module Smoke Test Begins"
# { sleep 2; 
#   echo 4; sleep 1; echo 15; sleep 1; echo 800; sleep 1;    echo 4; sleep 1; echo 15; sleep 1; echo 802; sleep 1;      echo 4; sleep 1; echo 15; sleep 1; echo 803; sleep 1;         
#   echo 4; sleep 1; echo 15; sleep 1; echo 804; sleep 1;    echo 4; sleep 1; echo 15; sleep 1; echo 805; sleep 1;      echo 4; sleep 1; echo 15; sleep 1; echo 806; sleep 1;         
#   echo 4; sleep 1; echo 15; sleep 1; echo 807; sleep 1;    echo 4; sleep 1; echo 15; sleep 1; echo 808; sleep 1;      echo 4; sleep 1; echo 15; sleep 1; echo 809; sleep 1;         
#   echo 4; sleep 1; echo 15; sleep 1; echo 810; sleep 1;    echo 4; sleep 1; echo 15; sleep 1; echo 811; sleep 1;      echo 4; sleep 1; echo 15; sleep 1; echo 812; sleep 1;         
#   echo 4; sleep 1; echo 15; sleep 1; echo 813; sleep 1;    echo 4; sleep 1; echo 15; sleep 1; echo 814; sleep 1;      echo 4; sleep 1; echo 15; sleep 1; echo 815; sleep 1;         
#   echo 4; sleep 1; echo 15; sleep 1; echo 816; sleep 1;    echo 4; sleep 1; echo 15; sleep 1; echo 817; sleep 1;      echo 4; sleep 1; echo 15; sleep 1; echo 818; sleep 1;         
#   echo 4; sleep 1; echo 15; sleep 1; echo 819; sleep 1;    echo 4; sleep 1; echo 15; sleep 1; echo 820; sleep 1;      echo 4; sleep 1; echo 15; sleep 1; echo 821; sleep 1;         
#   echo 4; sleep 1; echo 15; sleep 1; echo 822; sleep 1;    echo 4; sleep 1; echo 15; sleep 1; echo 823; sleep 1;      echo 4; sleep 1; echo 15; sleep 1; echo 824; sleep 1;         
#   echo 4; sleep 1; echo 15; sleep 1; echo 825; sleep 1;         
#   ech4o 4 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 6; 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 17;} | ./mfcc_sample_app
echo "__PS_TC Module smoke Test Begins"

# This test case addes for ps side 
#echo "__IPCC_PS_TO_OBC Module smoke Test Begins"
#{ sleep 2; 
#  echo 4 1 200; sleep 1;       echo 4 1 201; sleep 1;         echo 4 1 202; sleep 1; 
#  echo 4 1 203; sleep 1;       echo 4 1 204; sleep 1; 
#  echo 4 17;} | ./mfcc_sample_app
#echo "__IPCC_PS_TO_OBC 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 1; sleep 1;    
  sleep 1; echo 1; sleep 1; echo 553; sleep 1; echo 2; sleep 1;
  sleep 1; echo 1; sleep 1; echo 553; sleep 1; echo 3; sleep 1; echo 1; sleep 1 
  sleep 1; echo 1; sleep 1; echo 553; sleep 1; echo 4; sleep 1; echo 1; sleep 1
  sleep 1; echo 1; sleep 1; echo 553; sleep 1; echo 5; sleep 1; 
  sleep 1; echo 17;} | ./mfcc_sample_app
echo "__IPCC_OBC_TO_PS Module smoke Test Begins"




echo "__XLINK Module smoke Test Begins"
{ sleep 2;
  echo 3; sleep 1; echo 2; sleep 1; echo 410; sleep 10;
  sleep 1; echo 2; sleep 1; echo 413; sleep 10;
  sleep 1; echo 2; sleep 1; echo 300; sleep 10; 
  sleep 1; echo 2; sleep 1; echo 300; sleep 10;
  sleep 1; echo 2; sleep 1; echo 312; sleep 10;
  sleep 1; echo 2; sleep 1; echo 319; sleep 10;
  sleep 1; echo 2; sleep 1; echo 329; sleep 10;
  sleep 1; echo 2; sleep 1; echo 350; sleep 10;
  sleep 1; echo 2; sleep 1; echo 369; sleep 10;
  sleep 1; echo 2; sleep 1; echo 384; sleep 10;
  sleep 1; echo 2; sleep 1; echo 398; sleep 10;
  sleep 1; echo 2; sleep 1; echo 399; sleep 10;
  sleep 1; echo 2; sleep 1; echo 400; sleep 10;
  sleep 1; echo 2; sleep 1; echo 452; sleep 10;
  sleep 1; echo 2; sleep 1; echo 456; sleep 10;
  sleep 1; echo 2; sleep 1; echo 457; sleep 10;
  sleep 1; echo 2; sleep 1; echo 462; sleep 10;
  sleep 1; echo 2; sleep 1; echo 465; sleep 10;
  sleep 1; echo 17;} | ./mfcc_sample_app
echo "__Xlink  Module smoke Test Begins"




#echo "__11_OTSU_TC Module smoke Test Begins"
#{ sleep 2; 
#  echo 4 8 1 A; sleep 5;
#  echo 4 8 1 B; sleep 5;
#  echo 4 8 1 C; sleep 5;
#  echo 4 8 1 D; sleep 5;
#  echo 4 8 2; sleep 1;
#  echo 4 8 8; sleep 1;
#  echo 4 17;} | ./mfcc_sample_app
#echo "__11_OTSU_TC Module smoke Test Begins"

#echo "___OTSU Module Smoke  Test begins"
#{ sleep 2; 
#  echo 4; sleep 1; echo 8; sleep 1; echo 2; sleep 1;
#  sleep 1; echo 17;} | ./mfcc_sample_app
#echo "__OTSU Module Smoke  Test Ends"


echo "___Reset Module Smoke  Test begins"
{ sleep 2; 
  echo 4; sleep 1; echo 1; sleep 1; echo 551; sleep 1; echo 2; sleep 1;
  sleep 1; echo 17;} | ./mfcc_sample_app
echo "__Reset Module Smoke  Test Ends"

