env006.tcl
上传用户:tsgydb
上传日期:2007-04-14
资源大小:10674k
文件大小:1k
源码类别:

MySQL数据库

开发平台:

Visual C++

  1. # See the file LICENSE for redistribution information.
  2. #
  3. # Copyright (c) 1999, 2000
  4. # Sleepycat Software.  All rights reserved.
  5. #
  6. # $Id: env006.tcl,v 11.5 2000/10/27 13:23:55 sue Exp $
  7. #
  8. # Env Test 6
  9. # DB Utility Check
  10. # Make sure that all the utilities exist and run.
  11. #
  12. proc env006 { } {
  13. source ./include.tcl
  14. puts "Env006: Run underlying utilities."
  15. set rlist {
  16. { "db_archive" "Env006.a"}
  17. { "db_checkpoint" "Env006.b"}
  18. { "db_deadlock" "Env006.c"}
  19. { "db_dump" "Env006.d"}
  20. { "db_load" "Env006.e"}
  21. { "db_printlog" "Env006.f"}
  22. { "db_recover" "Env006.g"}
  23. { "db_stat" "Env006.h"}
  24. }
  25. foreach pair $rlist {
  26. set cmd [lindex $pair 0]
  27. set msg [lindex $pair 1]
  28. puts "t$msg: $cmd"
  29. set stat [catch {exec $util_path/$cmd -?} ret]
  30. error_check_good $cmd $stat 1
  31. #
  32. # Check for "usage", but only check "sage" so that
  33. # we can handle either Usage or usage.
  34. #
  35. error_check_good $cmd.err [is_substr $ret sage] 1
  36. }
  37. }