📄 test_headers.sh
字号:
#!/bin/shheaders_to_test=`ls ../../include/*/*.h`if test $# -ge 1; then headers_to_test=$*fi# Terminal commands to goto specific columnsrescol=65;gotocolumn="\e["$rescol"G";#testnamecolumn=15;#gotoname="\e["$testnamecolumn"G";# Terminal commands for setting the colorwhite="\e[01;37m";green="\e[01;32m";red="\e[01;31m";#grey="\e[00;37m";# Terminal command to reset to terminal defaultcolorreset="\e[m";# Errors during the tests will be printed hereerrlog=test_headers.logfor i in $headers_to_test; do header_name=`basename $i` source_file=TestHeader_$header_name.cc app_file=TestHeader_$header_name.o rm -f $source_file $app_file echo "#include \"$header_name\"" >> $source_file echo "int main () { return 0; }" >> $source_file echo -n "Testing Header File $header_name ... " if make -s -C ../.. contrib/bin/$app_file 2> $errlog; then echo -e $gotocolumn $white"["$green" OK "$white"]"; else echo -e $gotocolumn $white"["$red" FAILED "$white"]"; fi echo -e -n $colorreset; rm -f $source_file $app_filedone
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -