mirror of
https://github.com/percona/percona-toolkit.git
synced 2025-09-11 13:40:07 +00:00
First Bash parse_options lib with tests.
This commit is contained in:
25
t/lib/bash/parse_options.sh
Normal file
25
t/lib/bash/parse_options.sh
Normal file
@@ -0,0 +1,25 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
TESTS=17
|
||||
|
||||
source "$LIB_DIR/parse_options.sh"
|
||||
|
||||
parse_options "$T_LIB_DIR/samples/bash/po001.sh"
|
||||
|
||||
is "$THRESHOLD" "100"
|
||||
is "$VARIABLE" "Threads_connected"
|
||||
is "$CYCLES" "1"
|
||||
is "$GDB" "no"
|
||||
is "$OPROFILE" "yes"
|
||||
is "$STRACE" "no"
|
||||
is "$TCPDUMP" "yes"
|
||||
is "$EMAIL" ""
|
||||
is "$INTERVAL" "30"
|
||||
is "$MAYBE_EMPTY" "no"
|
||||
is "$COLLECT" "${HOME}/bin/pt-collect"
|
||||
is "$DEST" "${HOME}/collected/"
|
||||
is "$DURATION" "30"
|
||||
is "$SLEEP" "300"
|
||||
is "$PCT_THRESHOLD" "95"
|
||||
is "$MB_THRESHOLD" "100"
|
||||
is "$PURGE" "30"
|
Reference in New Issue
Block a user