@@ -29,8 +29,8 @@ capture.output(source("nixlibs.R", local = nixlibs_env))
2929test_that(" identify_binary() based on LIBARROW_BINARY" , {
3030 expect_null(identify_binary(" FALSE" ))
3131 expect_identical(
32- identify_binary(" linux-x86_64-openssl-1 .0" ),
33- " linux-x86_64-openssl-1 .0"
32+ identify_binary(" linux-x86_64-openssl-3 .0" ),
33+ " linux-x86_64-openssl-3 .0"
3434 )
3535 expect_null(identify_binary(" " , info = list (id = " debian" )))
3636})
@@ -53,25 +53,23 @@ test_that("determine_binary_from_stderr", {
5353 expect_output(
5454 expect_identical(
5555 determine_binary_from_stderr(compile_test_program(" int a;" )),
56- " openssl-1.1 "
56+ " openssl-3.0 "
5757 ),
58- " Found libcurl and OpenSSL >= 1.1 "
58+ " Found libcurl and OpenSSL >= 3.0.0 "
5959 )
6060
6161 nixlibs_env $ on_macos <- FALSE
6262 expect_output(
63- expect_identical(
64- determine_binary_from_stderr(compile_test_program(" #error Using OpenSSL version 1.0" )),
65- " openssl-1.0"
63+ expect_null(
64+ determine_binary_from_stderr(compile_test_program(" #error Using OpenSSL version 1.0" ))
6665 ),
67- " Found libcurl and OpenSSL < 1.1 "
66+ " OpenSSL found but version >= 3.0.0 is required "
6867 )
69- nixlibs_env $ on_macos <- TRUE
7068 expect_output(
7169 expect_null(
72- determine_binary_from_stderr(compile_test_program(" #error Using OpenSSL version 1.0 " ))
70+ determine_binary_from_stderr(compile_test_program(" #error Using OpenSSL version 1.1 " ))
7371 ),
74- " OpenSSL 1.0 is not supported on macOS "
72+ " OpenSSL found but version >= 3.0.0 is required "
7573 )
7674 expect_output(
7775 expect_identical(
@@ -84,7 +82,7 @@ test_that("determine_binary_from_stderr", {
8482 expect_null(
8583 determine_binary_from_stderr(compile_test_program(" #error OpenSSL version too old" ))
8684 ),
87- " OpenSSL found but version >= 1 .0.2 is required for some features "
85+ " OpenSSL found but version >= 3 .0.0 is required"
8886 )
8987})
9088
@@ -93,16 +91,15 @@ test_that("select_binary() with test program", {
9391 expect_output(
9492 expect_identical(
9593 select_binary(" linux" , " x86_64" , " int a;" ),
96- " linux-x86_64-openssl-1.1 "
94+ " linux-x86_64-openssl-3.0 "
9795 ),
98- " Found libcurl and OpenSSL >= 1.1 "
96+ " Found libcurl and OpenSSL >= 3.0.0 "
9997 )
10098 expect_output(
101- expect_identical(
102- select_binary(" linux" , " x86_64" , " #error Using OpenSSL version 1.0" ),
103- " linux-x86_64-openssl-1.0"
99+ expect_null(
100+ select_binary(" linux" , " x86_64" , " #error Using OpenSSL version 1.0" )
104101 ),
105- " Found libcurl and OpenSSL < 1.1 "
102+ " OpenSSL found but version >= 3.0.0 is required "
106103 )
107104 expect_output(
108105 expect_identical(
@@ -115,9 +112,9 @@ test_that("select_binary() with test program", {
115112 expect_output(
116113 expect_identical(
117114 select_binary(" darwin" , " x86_64" , " int a;" ),
118- " darwin-x86_64-openssl-1.1 "
115+ " darwin-x86_64-openssl-3.0 "
119116 ),
120- " Found libcurl and OpenSSL >= 1.1 "
117+ " Found libcurl and OpenSSL >= 3.0.0 "
121118 )
122119 expect_output(
123120 expect_identical(
@@ -129,9 +126,9 @@ test_that("select_binary() with test program", {
129126 expect_output(
130127 expect_identical(
131128 select_binary(" darwin" , " arm64" , " int a;" ),
132- " darwin-arm64-openssl-1.1 "
129+ " darwin-arm64-openssl-3.0 "
133130 ),
134- " Found libcurl and OpenSSL >= 1.1 "
131+ " Found libcurl and OpenSSL >= 3.0.0 "
135132 )
136133 expect_output(
137134 expect_identical(
@@ -144,7 +141,7 @@ test_that("select_binary() with test program", {
144141 expect_null(
145142 select_binary(" darwin" , " x86_64" , " #error Using OpenSSL version 1.0" )
146143 ),
147- " OpenSSL 1.0 is not supported on macOS "
144+ " OpenSSL found but version >= 3.0.0 is required "
148145 )
149146})
150147
0 commit comments