2 ################################################################################
4 # File: check_cksum.exp
5 # Description: Tests checksums of super files
6 # Author: Andrew@DeFaria.com
7 # Created: Fri Jun 6 15:37:15 PDT 2003
11 # (c) Copyright 2003, Andrew@DeFaria.com, all rights reserved
13 ################################################################################
14 set test_base "/dview/defaria_default/Tools/testing"
15 source "$test_base/bin/TestPkg.tcl"
17 catch {namespace import Test::*}
25 # Go to T drive, sanity folder
26 send "cd \"t:/sanity\"\r"
34 set Test::reason "Timedout trying to ct to \"t:/sanity\"!"
40 set Test::reason "Unable to cd to \"t:/sanity\"!"
49 # Get the names of the superfiles
59 set Test::reason "Timedout executing ls!"
64 set Test::reason "Unable to find images!"
69 set buf $expect_out(buffer)
71 # Extract superfile names
73 set card [lindex $buf $index]
75 # Verifying checksums can take a while. Default timeout is 10 seconds.
76 # Unfortunately scc.sf takes longer than that. We will up the timeout
80 while {$card != "value"} {
81 send "check_cksum \"$card\"\r"
88 set Test::reason "Timed out when executing check_cksum \"$card\""
93 set Test:reason "check_cksum failed for card $card"
97 set index [expr $index+1]
98 set card [lindex $buf $index]
101 # Restore default timeout
112 "Connection closed." {
115 Warning "Unable to logout of vxWorks"
125 if {$setup_ok == 0} {