mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-07-24 03:35:38 +03:00
43 lines
1.7 KiB
Diff
43 lines
1.7 KiB
Diff
Adjust this test to musl and our output of 'ldd /bin/ls'.
|
|
This test will be run on x86_64.
|
|
--- a/src/dist/pkg.rs
|
|
+++ b/src/dist/pkg.rs
|
|
@@ -332,24 +332,26 @@ mod toolchain_imp {
|
|
}
|
|
|
|
#[test]
|
|
- fn test_ldd_parse_v2_30() {
|
|
- let archlinux_ls_output = "\tlinux-vdso.so.1 (0x00007ffddc1f6000)
|
|
-\tlibcap.so.2 => /usr/lib/libcap.so.2 (0x00007f4980989000)
|
|
-\tlibc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f69ca6a1000)
|
|
-\tlibc.so.6 => /usr/lib/libc.so.6 (0x00007f49807c2000)
|
|
-\t/lib64/ld-linux-x86-64.so.2 => /usr/lib64/ld-linux-x86-64.so.2 (0x00007f49809e9000)
|
|
+ fn test_musl_ldd_parse_v1_2_2() {
|
|
+ let alpinelinux_ls_output = "\t/lib/ld-musl-x86_64.so.1 (0x7f88fbb8c000)
|
|
+\tlibacl.so.1 => /lib/libacl.so.1 (0x7f88fba65000)
|
|
+\tlibattr.so.1 => /lib/libattr.so.1 (0x7f88fba5e000)
|
|
+\tlibutmps.so.0.1 => /lib/libutmps.so.0.1 (0x7f88fba59000)
|
|
+\tlibc.musl-x86_64.so.1 => /lib/ld-musl-x86_64.so.1 (0x7f88fbb8c000)
|
|
+\tlibskarnet.so.2.10 => /lib/libskarnet.so.2.10 (0x7f88fba1a000)
|
|
";
|
|
assert_eq!(
|
|
- parse_ldd_output(archlinux_ls_output)
|
|
+ parse_ldd_output(alpinelinux_ls_output)
|
|
.iter()
|
|
.map(|p| p.to_str().unwrap())
|
|
.collect::<Vec<_>>(),
|
|
&[
|
|
- "/usr/lib/libcap.so.2",
|
|
- "/lib/x86_64-linux-gnu/libc.so.6",
|
|
- "/usr/lib/libc.so.6",
|
|
- "/lib64/ld-linux-x86-64.so.2",
|
|
- "/usr/lib64/ld-linux-x86-64.so.2",
|
|
+ "/lib/ld-musl-x86_64.so.1",
|
|
+ "/lib/libacl.so.1",
|
|
+ "/lib/libattr.so.1",
|
|
+ "/lib/libutmps.so.0.1",
|
|
+ "/lib/ld-musl-x86_64.so.1",
|
|
+ "/lib/libskarnet.so.2.10",
|
|
]
|
|
)
|
|
}
|