Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 13 additions & 1 deletion tests/lddtree_test
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@ init_tests \
lddtree_sh_all \
lddtree_sh_debug \
lddtree_sh_missing_scanelf \
lddtree_root
lddtree_root \
lddtree_no_auto_root

lddtree_usage_body() {
# usage to stdout, empty stderr
Expand Down Expand Up @@ -91,3 +92,14 @@ lddtree_root_body() {
"$SH" "$lddtree" "$arg" "$PWD"/ /usr/bin/hello
done
}

lddtree_no_auto_root_body() {
cp -rva $(atf_get_srcdir)/testdata/x86_64/* "$PWD" \
|| atf_fail "failed to copy test data"
atf_check -s exit:0 \
-o match:"^hello => $PWD/usr/bin/hello \(interpreter => $PWD/lib/ld-musl-x86_64.so.1\)" \
-o match:"^ libhello.so.1 => $PWD/usr/lib/libhello.so.1" \
-o match:"^ libc.musl-x86_64.so.1 => $PWD/lib/libc.musl-x86_64.so.1" \
"$SH" "$lddtree" --no-auto-root --root "$PWD"/ "$PWD/usr/bin/hello"
}