run.sh 370 B

1234567891011121314151617
  1. # 获取参数
  2. num=$1
  3. # 使用 if else 语句进行赋值
  4. if [ $num -eq 1 ]; then
  5. PENAME="pullup"
  6. elif [ $num -eq 2 ]; then
  7. PENAME="situp"
  8. elif [ $num -eq 3 ]; then
  9. PENAME="standingjump"
  10. fi
  11. clear
  12. BASE_NAME="lib"
  13. BASE_NAME_END="_api"
  14. NAME="$BASE_NAME$PENAME/$BASE_NAME$PENAME$BASE_NAME_END/test"
  15. export LD_LIBRARY_PATH=./lib/:$LD_LIBRARY_PATH && deploy/$NAME/main