@@ -67,7 +67,7 @@ teardown() {
67
67
run get_os_regexp_part
68
68
69
69
assert_success
70
- assert_output ' [._-](apple[._-])?(darwin|macos)'
70
+ assert_output ' [._-](apple[._-])?(darwin|macos|osx )'
71
71
}
72
72
73
73
@test " get_os_regexp_part should exit with error code" {
@@ -130,7 +130,7 @@ teardown() {
130
130
run get_arch_regexp_part
131
131
132
132
assert_success
133
- assert_output ' [._-](amd64|x86_64|universal)'
133
+ assert_output ' [._-](amd64|x86_64|x64| universal)'
134
134
}
135
135
136
136
@test " get_arch_regexp_part should return proper string for arm64 architecture" {
@@ -157,7 +157,7 @@ teardown() {
157
157
run get_filename_regexp
158
158
159
159
assert_success
160
- assert_output ' ([a-z][a-z0-9_-]+?)([_-]v?[0-9.]+)?([._-](unknown[._-])?(linux|linux-gnu|linux-musl)[._-](amd64|x86_64|universal)|[._-](amd64|x86_64|universal)[._-](unknown[._-])?(linux|linux-gnu|linux-musl))(\.zip|\.tar\.gz|\.tar\.xz|\.tar\.bz2)?'
160
+ assert_output ' ([a-z][a-z0-9_-]+?)([_-]v?[0-9.]+)?([._-](unknown[._-])?(linux|linux-gnu|linux-musl)[._-](amd64|x86_64|x64| universal)|[._-](amd64|x86_64|x64 |universal)[._-](unknown[._-])?(linux|linux-gnu|linux-musl))(\.zip|\.tar\.gz|\.tar\.xz|\.tar\.bz2)?'
161
161
}
162
162
163
163
@test " get_filename_regexp should return proper string for linux/arm64" {
@@ -179,7 +179,7 @@ teardown() {
179
179
run get_filename_regexp
180
180
181
181
assert_success
182
- assert_output ' ([a-z][a-z0-9_-]+?)([_-]v?[0-9.]+)?([._-](apple[._-])?(darwin|macos)[._-](amd64|x86_64|universal)|[._-](amd64|x86_64|universal)[._-](apple[._-])?(darwin|macos))(\.zip|\.tar\.gz|\.tar\.xz|\.tar\.bz2)?'
182
+ assert_output ' ([a-z][a-z0-9_-]+?)([_-]v?[0-9.]+)?([._-](apple[._-])?(darwin|macos|osx )[._-](amd64|x86_64|x64| universal)|[._-](amd64|x86_64|x64| universal)[._-](apple[._-])?(darwin|macos|osx ))(\.zip|\.tar\.gz|\.tar\.xz|\.tar\.bz2)?'
183
183
}
184
184
185
185
@test " get_filename_regexp should return proper string for macos/arm64" {
@@ -190,5 +190,5 @@ teardown() {
190
190
run get_filename_regexp
191
191
192
192
assert_success
193
- assert_output ' ([a-z][a-z0-9_-]+?)([_-]v?[0-9.]+)?([._-](apple[._-])?(darwin|macos)[._-](arm64|aarch64|universal)|[._-](arm64|aarch64|universal)[._-](apple[._-])?(darwin|macos))(\.zip|\.tar\.gz|\.tar\.xz|\.tar\.bz2)?'
193
+ assert_output ' ([a-z][a-z0-9_-]+?)([_-]v?[0-9.]+)?([._-](apple[._-])?(darwin|macos|osx )[._-](arm64|aarch64|universal)|[._-](arm64|aarch64|universal)[._-](apple[._-])?(darwin|macos|osx ))(\.zip|\.tar\.gz|\.tar\.xz|\.tar\.bz2)?'
194
194
}
0 commit comments