📄 dotest.sh
字号:
#!/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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -