1 #!/usr/bin/expect -f -d
3 # log all interaction to a file to diagnose failures
4 log_file -a [lindex $argv 0]
9 set spawnid [spawn make oldconfig]
13 # need to allow for the config tool to be built initially
18 puts "timeout in update_oldconfig waiting for a prompt we recognize"
21 -re "\n *(\[^\n]* \\\[N\/y\/\\?] \\(NEW\\)) " {
22 puts "$expect_out(1,string) n"
26 -re "\n *(\[^\n]* \\\[N\/m\/y\/\\?] \\(NEW\\)) " {
27 puts "$expect_out(1,string) m"
31 -re "\n *(\[^\n]* \\\[N\/y\/m\/\\?] \\(NEW\\)) " {
32 puts "$expect_out(1,string) m"
36 -re "\n *(\[^\n]* \\\[N\/m\/\\?] \\(NEW\\)) " {
37 puts "$expect_out(1,string) m"
41 -re "\n *(\[^\n]* \\\[Y\/n\/\\?] \\(NEW\\)) " {
42 puts "$expect_out(1,string) y"
46 -re "\n *(\[^\n]* \\\[\[0-9]*] \\(NEW\\)) " {
47 puts "$expect_out(1,string) <cr>"
51 -re "\n *(\[^\n]* \\\[M\/n\/\\?] \\(NEW\\)) " {
52 puts "$expect_out(1,string) m"
56 -re "\n *(\[^\n]* \\\[M\/n\/y\/\\?] \\(NEW\\)) " {
57 puts "$expect_out(1,string) m"