File tree 4 files changed +6
-8
lines changed
4 files changed +6
-8
lines changed Original file line number Diff line number Diff line change 2
2
arch arm : "aarch64" , intel : "x64"
3
3
4
4
version "1.0.2"
5
- sha256 arm : "f1d45abad41ad792d371d73a8f16f9a60e5ce3af6c91b73fd73cec8eb3d9c3fd" ,
6
- intel : "aeaf7aa7e01157ec890f9b96b7e7c9aac468396e6517a1e83e2ad6171ef03ba2"
5
+ sha256 :no_check
7
6
8
7
url "https://curl.gmssl.cn/down/gmcurl_macos_#{ arch } "
9
8
name "gmcurl"
Original file line number Diff line number Diff line change @@ -94,8 +94,7 @@ def caveats
94
94
95
95
test do
96
96
# Make sure the necessary .cnf file exists, otherwise OpenSSL gets moody.
97
- assert_predicate openssldir /"openssl.cnf" , :exist? ,
98
- "OpenSSL requires the .cnf file for some functionality"
97
+ assert_path_exists openssldir /"openssl.cnf" , "OpenSSL requires the .cnf file for some functionality"
99
98
100
99
# Check OpenSSL itself functions as expected.
101
100
( testpath /"testfile.txt" ) . write ( "This is a test file" )
Original file line number Diff line number Diff line change @@ -32,12 +32,12 @@ def caveats
32
32
33
33
begin
34
34
system bin /"wlp-webprofile10" , "start"
35
- assert_predicate testpath /"servers/.pid/defaultServer.pid" , :exist?
35
+ assert_path_exists testpath /"servers/.pid/defaultServer.pid"
36
36
ensure
37
37
system bin /"wlp-webprofile10" , "stop"
38
38
end
39
39
40
- refute_predicate testpath /"servers/.pid/defaultServer.pid" , :exist?
40
+ refute_path_exists testpath /"servers/.pid/defaultServer.pid"
41
41
assert_match "<feature>webProfile-10.0</feature>" , ( testpath /"servers/defaultServer/server.xml" ) . read
42
42
end
43
43
end
Original file line number Diff line number Diff line change @@ -32,12 +32,12 @@ def caveats
32
32
33
33
begin
34
34
system bin /"wlp-webprofile8" , "start"
35
- assert_predicate testpath /"servers/.pid/defaultServer.pid" , :exist?
35
+ assert_path_exists testpath /"servers/.pid/defaultServer.pid"
36
36
ensure
37
37
system bin /"wlp-webprofile8" , "stop"
38
38
end
39
39
40
- refute_predicate testpath /"servers/.pid/defaultServer.pid" , :exist?
40
+ refute_path_exists testpath /"servers/.pid/defaultServer.pid"
41
41
assert_match "<feature>webProfile-8.0</feature>" , ( testpath /"servers/defaultServer/server.xml" ) . read
42
42
end
43
43
end
You can’t perform that action at this time.
0 commit comments