test/cmd.tcl
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010 package require sak::util
00011 package require sak::test
00012
00013 if {![llength $argv]} {
00014 sak::test::usage Command missing
00015 }
00016
00017 cmd = [lindex $argv 0]
00018 argv = [lrange $argv 1 end]
00019
00020 if {[catch {package require sak::test::$cmd} msg]} {
00021 sak::test::usage Unknown command \"$cmd\" : \
00022 \n $::errorInfo
00023 }
00024
00025 sak::test::$cmd $argv
00026
00027
00028
00029