parsepairtest.sh

来自「SIP 1.5.0源代码」· Shell 代码 · 共 60 行

SH
60
字号
#!/bin/bash#MACHINE=$(uname).$(uname -m)if [ -x ./bin.debug.${MACHINE} ]then    echo -e " ./bin.debug.${MACHINE}/ParsePairTest"    ./bin.debug.${MACHINE}/ParsePairTest    if [ $? -eq 0 ]; then        exit 1;    fi        echo "<configuration>    <a/>    <b>         This is b    </b>    <c>   </c>    <foo>        bar              </foo></configuration>" > test.xml             cat test.xml         echo -e " ./bin.debug.${MACHINE}/ParsePairTest test.xml"    ./bin.debug.${MACHINE}/ParsePairTest test.xml    rm test.xml        if [ ! $? -eq 0 ]; then        exit 1;    fi        echo "ab: This is b # Yescfoo  = barA B C D" > test.txt    cat test.txt        echo -e " ./bin.debug.${MACHINE}/ParsePairTest test.txt txt"    ./bin.debug.${MACHINE}/ParsePairTest test.txt txt        rm test.txt    echo "---------------------------"    echo -e " ./bin.debug.${MACHINE}/ParsePairStringTest"    ./bin.debug.${MACHINE}/ParsePairStringTestfi

⌨️ 快捷键说明

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