summaryrefslogtreecommitdiffstats
path: root/tests/shims.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/shims.rs')
-rw-r--r--tests/shims.rs7
1 files changed, 5 insertions, 2 deletions
diff --git a/tests/shims.rs b/tests/shims.rs
index f5cab7d..757e456 100644
--- a/tests/shims.rs
+++ b/tests/shims.rs
@@ -62,11 +62,14 @@ fn makechrootpkg_emits_pkginfo_buildinfo_and_sig() {
let pkg = build.join("plain-make-1.0-1-x86_64.pkg.tar.zst");
assert!(pkg.exists(), "artifact left in the build dir like the real tool does");
let bytes = std::fs::read(&pkg).unwrap();
- let pkginfo = shims::read_pkginfo(&bytes).unwrap();
+ // Read the artifact with the production parser, not a shim-only one: the
+ // harness is only a faithful stand-in if it reads a package the way the
+ // pipeline will (§6 M-4).
+ let pkginfo = aur_build::pkginfo::pkginfo_text(&bytes).unwrap();
assert!(pkginfo.contains("pkgname = plain-make"));
assert!(pkginfo.contains("pkgver = 1.0-1"));
assert!(pkginfo.contains("pkgarch = x86_64"));
- let buildinfo = shims::read_buildinfo(&bytes).unwrap();
+ let buildinfo = aur_build::pkginfo::buildinfo_text(&bytes).unwrap();
assert!(buildinfo.contains("format = 2"));
assert!(buildinfo.contains("installed ="), "BUILDINFO carries the chroot world (§10.1)");
assert!(buildinfo.contains(" glibc 2.39-1 x86_64 -"));