Skip to content

Commit d1e394d

Browse files
authored
Merge pull request #8 from redhat-qe-security/beakerlib-fix
Beakerlib fix
2 parents 0527cf5 + 339810b commit d1e394d

File tree

21 files changed

+145
-27
lines changed

21 files changed

+145
-27
lines changed

.travis.yml

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,20 +3,21 @@ sudo: required
33
env:
44
matrix:
55
# openssl tests
6-
- COMP=openssl OS_TYPE=centos OS_VERSION=5
6+
#- COMP=openssl OS_TYPE=centos OS_VERSION=5
77
- COMP=openssl OS_TYPE=centos OS_VERSION=6
88
- COMP=openssl OS_TYPE=centos OS_VERSION=7
9-
- COMP=openssl OS_TYPE=fedora OS_VERSION=24
9+
- COMP=openssl OS_TYPE=fedora OS_VERSION=latest
1010
# nss tests
11-
- COMP=nss OS_TYPE=centos OS_VERSION=5
11+
#- COMP=nss OS_TYPE=centos OS_VERSION=5
1212
- COMP=nss OS_TYPE=centos OS_VERSION=6
1313
- COMP=nss OS_TYPE=centos OS_VERSION=7
14-
- COMP=nss OS_TYPE=fedora OS_VERSION=24
14+
- COMP=nss OS_TYPE=fedora OS_VERSION=latest TEST_GLOB='@(renego*)'
15+
- COMP=nss OS_TYPE=fedora OS_VERSION=latest TEST_GLOB='!(renego*)'
1516
# gnutls tests
16-
- COMP=gnutls OS_TYPE=centos OS_VERSION=5
17+
#- COMP=gnutls OS_TYPE=centos OS_VERSION=5
1718
- COMP=gnutls OS_TYPE=centos OS_VERSION=6
1819
- COMP=gnutls OS_TYPE=centos OS_VERSION=7
19-
- COMP=gnutls OS_TYPE=fedora OS_VERSION=24
20+
- COMP=gnutls OS_TYPE=fedora OS_VERSION=latest
2021

2122
services:
2223
- docker
@@ -25,4 +26,4 @@ before_install:
2526
- sudo docker pull ${OS_TYPE}:${OS_VERSION}
2627

2728
script:
28-
- ./scripts/test-setup.sh ${OS_TYPE} ${OS_VERSION} ${COMP}
29+
- ./scripts/test-setup.sh ${OS_TYPE} ${OS_VERSION} ${COMP} "${TEST_GLOB}"

gnutls/Interoperability/TLSv1-2-with-NSS/nss-client.expect

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,18 @@ spawn /bin/sh -c "$argv"
44
expect {
55
"Enter Password" { send "RedHatEnterpriseLinux6.6\r"; exp_continue }
66
eof { }
7-
"subject DN" { send "GET / HTTP/1.0\r\r";
8-
expect -timeout 5 "HTTP/1.0 200 OK" { close; exit 0}
9-
close; exit 1}
7+
"subject DN" {
8+
send "GET / HTTP/1.0\r\r";
9+
expect -timeout 5 "HTTP/1.0 200 OK" {
10+
expect -re ".+" {
11+
close;
12+
exit 0;
13+
}
14+
}
15+
16+
close;
17+
exit 1;
18+
}
1019
}
1120
set info [wait]
1221
#puts "Return from wait: $info"

gnutls/Interoperability/TLSv1-2-with-NSS/runtest.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,12 @@ CLIENT_UTIL="/usr/lib/nss/unsupported-tools/tstclnt"
3838
[ -f /usr/lib64/nss/unsupported-tools/selfserv ] && SERVER_UTIL="/usr/lib64/nss/unsupported-tools/selfserv"
3939
[ -f /usr/lib64/nss/unsupported-tools/tstclnt ] && CLIENT_UTIL="/usr/lib64/nss/unsupported-tools/tstclnt"
4040

41+
# Force NSS to ignore crypto policies
42+
# Temporary workaround for BZ#1426267
43+
if rlIsFedora ">=25"; then
44+
export NSS_IGNORE_SYSTEM_POLICY=1
45+
fi
46+
4147
rlJournalStart
4248
rlPhaseStartSetup
4349
rlAssertRpm --all

gnutls/Interoperability/TLSv1-2-with-OpenSSL/gnutls-client.expect

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ expect {
66
send "client hello\r"
77
expect {
88
"server hello" {
9+
sleep 1
910
close
1011
exit 0
1112
}

gnutls/Interoperability/TLSv1-2-with-OpenSSL/openssl-client.expect

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,10 @@ expect {
66
send "client hello\r"
77
expect "client hello" {
88
expect "client hello" {
9-
close
10-
exit 0
9+
expect -re ".+" {
10+
close
11+
exit 0
12+
}
1113
}
1214
}
1315
}

gnutls/Interoperability/renegotiation-with-NSS/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,5 +58,5 @@ $(METADATA): Makefile
5858
@echo "License: GPLv2" >> $(METADATA)
5959
@echo "Confidential: no" >> $(METADATA)
6060
@echo "Destructive: no" >> $(METADATA)
61-
@echo "Releases: -RHEL4 -RHELClient5 -RHELServer5" >> $(METADATA)
61+
@echo "Releases: -RHEL4 -RHELClient5 -RHELServer5 -RHEL6 -RHEL7 -Fedora25" >> $(METADATA)
6262

gnutls/Interoperability/renegotiation-with-NSS/runtest.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,3 +86,4 @@ rlJournalStart
8686
rlPhaseEnd
8787
rlJournalPrintText
8888
rlJournalEnd
89+
rlGetTestState

gnutls/Interoperability/renegotiation-with-OpenSSL/runtest.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,3 +72,4 @@ rlJournalStart
7272
rlPhaseEnd
7373
rlJournalPrintText
7474
rlJournalEnd
75+
rlGetTestState

gnutls/Interoperability/resumption-with-NSS/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,5 +59,5 @@ $(METADATA): Makefile
5959
@echo "License: GPLv2" >> $(METADATA)
6060
@echo "Confidential: no" >> $(METADATA)
6161
@echo "Destructive: no" >> $(METADATA)
62-
@echo "Releases: -RHEL4 -RHELClient5 -RHELServer5" >> $(METADATA)
62+
@echo "Releases: -RHEL4 -RHELClient5 -RHELServer5 -Fedora25" >> $(METADATA)
6363

gnutls/Interoperability/resumption-with-NSS/runtest.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,3 +91,4 @@ rlJournalStart
9191
rlPhaseEnd
9292
rlJournalPrintText
9393
rlJournalEnd
94+
rlGetTestState

0 commit comments

Comments
 (0)