Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- set -e
- ##### Variable #####
- SCRIPT_FILE_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
- SIRIUS_HOME_PATH=$(echo $SCRIPT_FILE_DIR | sed 's/\/exe\/HIL\/master//g')
- S_DEFINE_PATH=$SCRIPT_FILE_DIR
- ##### FUNCTION #####
- source $SIRIUS_HOME_PATH/exe/xil_common/script/text_process_func.sh
- ##### Generate the image#####
- cd $S_DEFINE_PATH
- trick-CP
- ./S_main_Linux_5.4_x86_64.exe RUN_golden/golden_dm.cpp
- python $SIRIUS_HOME_PATH/tools/generate_error.py $SIRIUS_HOME_PATH/public/golden.csv $S_DEFINE_PATH/RUN_golden/log_rocket_csv.csv -l
- python $SIRIUS_HOME_PATH/tools/ci_test.py $S_DEFINE_PATH/result.csv 5e-1 | tee test_result
- # Test the exit status of the command before pipe
- test ${PIPESTATUS[0]} -eq 0
Add Comment
Please, Sign In to add comment