Skip to content

Commit be13b52

Browse files
committed
enable IPv6 test in Evergreen
1 parent 82c33b6 commit be13b52

File tree

17 files changed

+54
-12
lines changed

17 files changed

+54
-12
lines changed

.evergreen/config.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -232,7 +232,7 @@ functions:
232232
working_dir: "mongoc"
233233
script: |
234234
set -o errexit
235-
CC="${CC}" AUTH=${AUTH} SSL=${SSL} URI=${URI} sh .evergreen/run-tests.sh
235+
CC="${CC}" AUTH=${AUTH} SSL=${SSL} URI=${URI} IPV4_ONLY=${IPV4_ONLY} sh .evergreen/run-tests.sh
236236
237237
"run auth tests":
238238
- command: shell.exec
@@ -5112,6 +5112,7 @@ tasks:
51125112
vars:
51135113
AUTH: "noauth"
51145114
SSL: "nossl"
5115+
IPV4_ONLY: "on"
51155116
URI: ""
51165117

51175118

.evergreen/run-tests.sh

100755100644
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,10 @@ export MONGOC_TEST_FUTURE_TIMEOUT_MS=30000
2626
export MONGOC_TEST_URI="$URI"
2727
export MONGOC_TEST_SERVER_LOG="json"
2828

29+
if [ "$IPV4_ONLY" != "on" ]; then
30+
export MONGOC_CHECK_IPV6="on"
31+
fi
32+
2933
if [ "$CC" = "mingw" ]; then
3034
chmod +x test-libmongoc.exe
3135
cmd.exe /c .evergreen\\run-tests-mingw.bat

orchestration_configs/replica_sets/auth-ssl.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
{
88
"procParams": {
99
"ipv6": true,
10+
"bind_ip": "",
1011
"nohttpinterface": true,
1112
"journal": true,
1213
"noprealloc": true,
@@ -24,6 +25,7 @@
2425
{
2526
"procParams": {
2627
"ipv6": true,
28+
"bind_ip": "",
2729
"nohttpinterface": true,
2830
"journal": true,
2931
"noprealloc": true,
@@ -41,6 +43,7 @@
4143
{
4244
"procParams": {
4345
"ipv6": true,
46+
"bind_ip": "",
4447
"nohttpinterface": true,
4548
"journal": true,
4649
"noprealloc": true,

orchestration_configs/replica_sets/auth.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
{
77
"procParams": {
88
"ipv6": true,
9+
"bind_ip": "",
910
"nohttpinterface": true,
1011
"journal": true,
1112
"noprealloc": true,
@@ -23,6 +24,7 @@
2324
{
2425
"procParams": {
2526
"ipv6": true,
27+
"bind_ip": "",
2628
"nohttpinterface": true,
2729
"journal": true,
2830
"noprealloc": true,
@@ -40,6 +42,7 @@
4042
{
4143
"procParams": {
4244
"ipv6": true,
45+
"bind_ip": "",
4346
"nohttpinterface": true,
4447
"journal": true,
4548
"noprealloc": true,

orchestration_configs/replica_sets/basic-ssl.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
{
55
"procParams": {
66
"ipv6": true,
7+
"bind_ip": "",
78
"nohttpinterface": true,
89
"journal": true,
910
"noprealloc": true,
@@ -21,6 +22,7 @@
2122
{
2223
"procParams": {
2324
"ipv6": true,
25+
"bind_ip": "",
2426
"nohttpinterface": true,
2527
"journal": true,
2628
"noprealloc": true,
@@ -38,6 +40,7 @@
3840
{
3941
"procParams": {
4042
"ipv6": true,
43+
"bind_ip": "",
4144
"nohttpinterface": true,
4245
"journal": true,
4346
"noprealloc": true,

orchestration_configs/replica_sets/basic.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
{
55
"procParams": {
66
"ipv6": true,
7+
"bind_ip": "",
78
"nohttpinterface": true,
89
"journal": true,
910
"noprealloc": true,
@@ -21,6 +22,7 @@
2122
{
2223
"procParams": {
2324
"ipv6": true,
25+
"bind_ip": "",
2426
"nohttpinterface": true,
2527
"journal": true,
2628
"noprealloc": true,
@@ -38,6 +40,7 @@
3840
{
3941
"procParams": {
4042
"ipv6": true,
43+
"bind_ip": "",
4144
"nohttpinterface": true,
4245
"journal": true,
4346
"noprealloc": true,

orchestration_configs/servers/auth-ssl.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
"password": "pwd123",
66
"procParams": {
77
"ipv6": true,
8+
"bind_ip": "",
89
"logappend": true,
910
"journal": true,
1011
"port": 27017

orchestration_configs/servers/auth.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
"password": "pwd123",
77
"procParams": {
88
"ipv6": true,
9+
"bind_ip": "",
910
"logappend": true,
1011
"journal": true,
1112
"port": 27017

orchestration_configs/servers/basic-ssl.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
"name": "mongod",
44
"procParams": {
55
"ipv6": true,
6+
"bind_ip": "",
67
"logappend": true,
78
"journal": true,
89
"port": 27017

orchestration_configs/servers/basic.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
"name": "mongod",
33
"procParams": {
44
"ipv6": true,
5+
"bind_ip": "",
56
"logappend": true,
67
"journal": true,
78
"port": 27017

0 commit comments

Comments
 (0)