ASAN使用脚本实例

#!/bin/sh
#########################################################################
# File Name: cpnt_asan_start.sh
# Author: vitor
# Created Time: 2018.6.6
#########################################################################


#asan clean function
asan_clean()
{
    rm -r ${ASAN_PATH}/log
    rm -r ${ASAN_PATH}/*html
    rm -r ${ASAN_PATH}/build*_asan
    rm -r ${ASAN_PATH}/*_sdv
    rm -r ${ASAN_PATH}/*_st
    pkill _st
    pkill _sdv
    mkdir ${ASAN_PATH}/log
}


asan_help()
{
   echo "  "
   echo "=======================How to use============================="
   echo "Usage:           The script need one parameter."
   echo "Example:         $0 clean"
   echo "                                                              "
   echo "=====================Cmd param List==========================="
   echo "CmdParam         Detail"
   echo "clean            rm asan info"
   echo "all              src and test code compiled"
   echo "test             only test code compiled"
}


asan_src_build()
{
    echo "**************Begin Build SSP_SUSE11_X86_64 SRC_POOLS**********************"
    cd $SRC_PATH
    if [ ! -d "configs" ]; then
        mkdir configs
    fi
    
    cp ${WORK_DIR}/resource/suse11_x86_64_asan.py configs/
    rm -r build
    scons distclean
    scons cfg=configs/suse11_x86_64_asan_asan.py -j8
    
    # backup
    if [ -d "${ASAN_PATH}/build_suse11_x86_64_asan" ]; then
        rm -r ${ASAN_PATH}/build_suse
  • 0
    点赞
  • 3
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值