Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,8 @@ export TESTVERSION=1.0

BUILT_FILES=

FILES=$(METADATA) runtest.sh Makefile PURPOSE nss-client.expect
FILES=$(METADATA) runtest.sh Makefile PURPOSE nss-client.expect \
nss-server.expect openssl-client.expect

.PHONY: all install download clean

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
#!/usr/bin/expect
set timeout 15
spawn /bin/sh -c "$argv"
expect {
"Enter Password" { send "RedHatEnterpriseLinux6.6\r"; exp_continue }
eof { }
"client hello" { send "server hello\r";
close}
}
set info [wait]
#puts "Return from wait: $info"
exit [lindex $info 3]
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
#!/usr/bin/expect
set timeout 10
spawn /bin/sh -c "$argv"
expect {
"Verify return code: 0 " {
send "GET / HTTP/1.0\r\r"
expect "Server: Generic Web Server" {
close
exit 0
}
}
}
exit 1
Loading