13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
# drh@hwaci.com
# http://www.hwaci.com/drh/
#
############################################################################
#
# Test command line parsing
#
proc cmd-line {testname args} {
set i 1
foreach {cmdline result} $args {
fossil test-echo $cmdline
test cmd-line-$testname.$i {[lrange [split $::RESULT \n] 3 end]=="\{argv\[2\] = \[$result\]\}"}
incr i
|
>
>
|
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
# drh@hwaci.com
# http://www.hwaci.com/drh/
#
############################################################################
#
# Test command line parsing
#
repo_init ""
proc cmd-line {testname args} {
set i 1
foreach {cmdline result} $args {
fossil test-echo $cmdline
test cmd-line-$testname.$i {[lrange [split $::RESULT \n] 3 end]=="\{argv\[2\] = \[$result\]\}"}
incr i
|