test: assert AUR bin uses the generic package URL
Keep a comment mentioning the old permalinks without failing the regression check. Co-authored-by: tim <tim@timfalken.com>
@@ -226,16 +226,28 @@ fn aur_bin_uses_generic_package_registry() {
226
226
let pkgbuild = include_str!("../packaging/aur-bin/PKGBUILD");
227
227
let srcinfo = include_str!("../packaging/aur-bin/.SRCINFO");
228
228
let publish = include_str!("../scripts/publish-aur.sh");
229
for text in [pkgbuild, srcinfo, publish] {
229
for text in [pkgbuild, srcinfo] {
230
230
assert!(
231
231
!text.contains("jobs/artifacts"),
232
"AUR bin must not download via jobs/artifacts permalinks"
232
"AUR bin templates must not use jobs/artifacts permalinks"
233
233
);
234
234
assert!(
235
235
text.contains("packages/generic/posprint"),
236
"AUR bin must use the Generic Package Registry URL"
236
"AUR bin templates must use the Generic Package Registry URL"
237
237
);
238
238
}
239
assert!(
240
publish.contains("packages/generic/posprint"),
241
"publish-aur.sh fallback must use the Generic Package Registry"
242
);
243
assert!(
244
!publish.contains("BIN_ARTIFACT_URL"),
245
"publish-aur.sh must not curl the old jobs/artifacts permalink"
246
);
247
assert!(
248
publish.contains("Using local binary tarball"),
249
"publish-aur.sh must prefer the local dist/ tarball from CI artifacts"
250
);
239
251
}
240
252
241
253
#[test]
@@ -226,16 +226,28 @@ fn aur_bin_uses_generic_package_registry() {226
let pkgbuild = include_str!("../packaging/aur-bin/PKGBUILD");226
let pkgbuild = include_str!("../packaging/aur-bin/PKGBUILD");227
let srcinfo = include_str!("../packaging/aur-bin/.SRCINFO");227
let srcinfo = include_str!("../packaging/aur-bin/.SRCINFO");228
let publish = include_str!("../scripts/publish-aur.sh");228
let publish = include_str!("../scripts/publish-aur.sh");229
for text in [pkgbuild, srcinfo, publish] {229
for text in [pkgbuild, srcinfo] {230
assert!(230
assert!(231
!text.contains("jobs/artifacts"),231
!text.contains("jobs/artifacts"),232
"AUR bin must not download via jobs/artifacts permalinks"232
"AUR bin templates must not use jobs/artifacts permalinks"233
);233
);234
assert!(234
assert!(235
text.contains("packages/generic/posprint"),235
text.contains("packages/generic/posprint"),236
"AUR bin must use the Generic Package Registry URL"236
"AUR bin templates must use the Generic Package Registry URL"237
);237
);238
}238
}239
assert!(240
publish.contains("packages/generic/posprint"),241
"publish-aur.sh fallback must use the Generic Package Registry"242
);243
assert!(244
!publish.contains("BIN_ARTIFACT_URL"),245
"publish-aur.sh must not curl the old jobs/artifacts permalink"246
);247
assert!(248
publish.contains("Using local binary tarball"),249
"publish-aur.sh must prefer the local dist/ tarball from CI artifacts"250
);239
}251
}240
252
241
#[test]253
#[test]