args.sh
来自「BCAST Implementation for NS2」· Shell 代码 · 共 76 行
SH
76 行
## $XORP: xorp/bgp/harness/args.sh,v 1.3 2003/10/23 00:13:47 pavlin Exp $### All the command line processing for the test scripts in one place.#START_PROGRAMS="yes"CONFIGURE="yes"QUIET=""VERBOSE=""RESTART="yes"# -q (Quiet)# -v (Verbose)# -s (Single) Do not start ancillary programs. They must already be running.# -t (Tests) The tests to run.# -a (All) Run all the tests including the ones that trigger bugs.# -b (Bugs) Run only the tests that trigger bugs.# -c (Configure) In (Single) mode BGP and the RIB are not configured. # Force configuration.# -l (Leave) Leave the ancillary programs running between tests.while getopts "qvsbt:abcl" argsdo case $args in q) QUIET="-q" ;; v) VERBOSE="-v" ;; s) START_PROGRAMS="no" CONFIGURE="no" ;; t) TESTS="$OPTARG" ;; a) TESTS="${TESTS} ${TESTS_NOT_FIXED}" ;; b) TESTS=${TESTS_NOT_FIXED} ;; c) REALLY_CONFIGURE="yes" ;; l) RESTART="no" ;; *) echo "default" ;; esacdoneif [ ${REALLY_CONFIGURE:-""} = "yes" ]then CONFIGURE="yes"fiif [ $START_PROGRAMS = "yes" -a $RESTART = "yes" ]then for i in $TESTS do COMMAND="$0 $QUIET $VERBOSE -l -t $i" echo "Entering $COMMAND" $COMMAND echo "Leaving $COMMAND" done trap '' 0 exit 0fi
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?