power-test.sh

来自「Develop Zigbee network real-time Os」· Shell 代码 · 共 33 行

SH
33
字号
#!/bin/bashif [ $# -lt 1 ]; then    echo "You must specify the algorithm being used."    exit 1;fi;ALGORITHM=$1;if [ $# -gt 1 ]; then    echo "Performing testrun"    TESTRUN=true;else    TESTRUN=false;fi;for i in *.csv; do    FILENAME=$(echo $i | cut -d . -f 1)    if $TESTRUN; then	OUTPUTFILE=$FILENAME.$ALGORITHM.out    else	OUTPUTFILE="";    fi;    ../node-comm $i $OUTPUTFILE | tee $FILENAME.$ALGORITHM.log    if $TESTRUN; then	if ! ../decompress ../$ALGORITHM $i < $OUTPUTFILE; then	    exit 1;	fi;    fi;done;

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?