Whamcloud - gitweb
lwizard supports multi-net
[fs/lustre-release.git] / lustre / tests / test-lwizard.sh
1 #!/usr/bin/expect
2
3 spawn lwizard $argv
4 set timeout 3
5 expect {
6         "overwrite existing" {
7                 interact
8         }
9 }
10 expect "HOSTNAME for mds"
11 send -- "localhost\n"
12 expect "network INTERFACE"
13 send -- "192.168.1.29/24 10.0.0.29/24\n"
14 expect "enter the device or loop file name for mds"
15 send -- "/tmp/mds\n"
16 expect "device SIZE"
17 send -- "10000\n"
18 expect "configure FAILOVER"
19 send -- "n\n"
20 expect "HOSTNAME for ost"
21 send -- "localhost\n"
22 expect "network INTERFACE"
23 send -- "192.168.1.29/24 10.0.0.29/24\n"
24 expect "device or loop file name for ost"
25 send -- "/tmp/ost\n"
26 expect "device SIZE"
27 send -- "10000\n"
28 expect "configure FAILOVER"
29 send -- "n\n"
30 expect "HOSTNAME for ost"
31 send -- "\n"
32 expect "clients' mountpoint"
33 send -- "\n"
34 expect "configure another client with multiple network interfaces"
35 send -- "y\n"
36 expect "HOSTNAME"
37 send -- "node\n"
38 expect "network interface address"
39 send -- "192.168.1.29/24 10.0.0.29/24\n"
40 expect "configure another client with multiple network interfaces"
41 send -- "n\n"
42 expect "Lustre configuration has been written"
43 send -- "\n"
44 close