mariadb/bdb/test/env006.tcl

43 lines
994 B
Tcl
Raw Normal View History

2001-03-05 01:42:05 +01:00
# See the file LICENSE for redistribution information.
#
2002-10-30 12:57:05 +01:00
# Copyright (c) 1999-2002
2001-03-05 01:42:05 +01:00
# Sleepycat Software. All rights reserved.
#
2002-10-30 12:57:05 +01:00
# $Id: env006.tcl,v 11.8 2002/01/11 15:53:23 bostic Exp $
2001-03-05 01:42:05 +01:00
#
2002-10-30 12:57:05 +01:00
# TEST env006
# TEST Make sure that all the utilities exist and run.
2001-03-05 01:42:05 +01:00
proc env006 { } {
source ./include.tcl
puts "Env006: Run underlying utilities."
set rlist {
{ "db_archive" "Env006.a"}
{ "db_checkpoint" "Env006.b"}
{ "db_deadlock" "Env006.c"}
{ "db_dump" "Env006.d"}
{ "db_load" "Env006.e"}
{ "db_printlog" "Env006.f"}
{ "db_recover" "Env006.g"}
{ "db_stat" "Env006.h"}
2002-10-30 12:57:05 +01:00
{ "db_upgrade" "Env006.h"}
{ "db_verify" "Env006.h"}
2001-03-05 01:42:05 +01:00
}
foreach pair $rlist {
set cmd [lindex $pair 0]
set msg [lindex $pair 1]
puts "\t$msg: $cmd"
set stat [catch {exec $util_path/$cmd -?} ret]
error_check_good $cmd $stat 1
#
# Check for "usage", but only check "sage" so that
# we can handle either Usage or usage.
#
error_check_good $cmd.err [is_substr $ret sage] 1
}
}