Test
This commit is contained in:
parent
a43e221962
commit
8851f0ce2b
2 changed files with 17 additions and 4 deletions
|
|
@ -56,10 +56,12 @@ rlJournalStart
|
|||
rlPhaseEnd
|
||||
|
||||
rlPhaseStartTest
|
||||
script -qfec 'expect -f ./mutt.exp'
|
||||
rlRun "ls /dev" 0 "Get me tty list"
|
||||
rlRun "cat typescript" 0 "Get me log"
|
||||
rlRun "cat ~/.muttdebug0" 0 "Get me debug of mutt"
|
||||
rlRun "chmod +x ./test.exp"
|
||||
rlRun "./test.exp"
|
||||
# script -qfec 'expect -f ./mutt.exp'
|
||||
#rlRun "ls /dev" 0 "Get me tty list"
|
||||
#rlRun "cat typescript" 0 "Get me log"
|
||||
#rlRun "cat ~/.muttdebug0" 0 "Get me debug of mutt"
|
||||
rlAssertGrep "123 hello world We are here" /tmp/testing
|
||||
rlPhaseEnd
|
||||
|
||||
|
|
|
|||
11
Sanity/basic/test.exp
Normal file
11
Sanity/basic/test.exp
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
#!/usr/bin/expect -f
|
||||
|
||||
spawn mutt -d 5
|
||||
expect "q:Quit" {
|
||||
sleep 2
|
||||
send "\r"; send "qq";
|
||||
}
|
||||
|
||||
interact
|
||||
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue