Guest User

Untitled

a guest
Jun 25th, 2018
112
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.70 KB | None | 0 0
  1. #!/bin/bash
  2. set -e
  3.  
  4. ##### Variable #####
  5. SCRIPT_FILE_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
  6. SIRIUS_HOME_PATH=$(echo $SCRIPT_FILE_DIR | sed 's/\/exe\/HIL\/master//g')
  7. S_DEFINE_PATH=$SCRIPT_FILE_DIR
  8. ##### FUNCTION #####
  9. source $SIRIUS_HOME_PATH/exe/xil_common/script/text_process_func.sh
  10.  
  11. ##### Generate the image#####
  12. cd $S_DEFINE_PATH
  13. trick-CP
  14. ./S_main_Linux_5.4_x86_64.exe RUN_golden/golden_dm.cpp
  15. python $SIRIUS_HOME_PATH/tools/generate_error.py $SIRIUS_HOME_PATH/public/golden.csv $S_DEFINE_PATH/RUN_golden/log_rocket_csv.csv -l
  16. python $SIRIUS_HOME_PATH/tools/ci_test.py $S_DEFINE_PATH/result.csv 5e-1 | tee test_result
  17.  
  18. # Test the exit status of the command before pipe
  19. test ${PIPESTATUS[0]} -eq 0
Add Comment
Please, Sign In to add comment