This commit is contained in:
František Hrdina 2024-07-01 16:05:32 +02:00
commit 8851f0ce2b
2 changed files with 17 additions and 4 deletions

View file

@ -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
View file

@ -0,0 +1,11 @@
#!/usr/bin/expect -f
spawn mutt -d 5
expect "q:Quit" {
sleep 2
send "\r"; send "qq";
}
interact