dotest.sh
来自「适用于嵌入式系统的XML解析库, 规模比libxml2小得多.」· Shell 代码 · 共 46 行
SH
46 行
#!/bin/sh(cd ..; make mxmldoc-static)files=""mode=""while test $# -gt 0; do arg="$1" shift case "$arg" in -f) framed="--framed framed" ;; -g) mode="gdb" ;; -v) mode="valgrind" ;; *.h | *.c | *.cxx) files="$files $arg" ;; *) echo "Usage: ./dotest.sh [-g] [-v] [files]" exit 1 ;; esacdoneif test "$files" = ""; then files=*.cxxfirm -f test.xmlcase "$mode" in gdb) echo "run $framed test.xml $files >test.html 2>test.log" >.gdbcmds gdb -x .gdbcmds ../mxmldoc-static ;; valgrind) valgrind --log-fd=3 --leak-check=yes \ ../mxmldoc-static $framed test.xml $files \ >test.html 2>test.log 3>test.valgrind ;; *) ../mxmldoc-static $framed test.xml $files >test.html 2>test.log ;;esac
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?