diff options
Diffstat (limited to 'tests/t_installfiles_patterns_and_links')
-rw-r--r-- | tests/t_installfiles_patterns_and_links | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/tests/t_installfiles_patterns_and_links b/tests/t_installfiles_patterns_and_links new file mode 100644 index 0000000..7fdfa2d --- /dev/null +++ b/tests/t_installfiles_patterns_and_links @@ -0,0 +1,25 @@ +#!/bin/sh + +mkdir libfoo.1.pkg libfoo-dev.pkg +cat >libfoo.1.pkg/files <<-EOF + /usr/lib/*/libfoo.so.* + EOF +cat >libfoo-dev.pkg/files <<-EOF + /usr/lib/*/libfoo.so + EOF + +mkdir -p tmp/dest/usr/lib/arch +>tmp/dest/usr/lib/arch/libfoo.so.1.0.0 +ln -sf libfoo.so.1.0.0 tmp/dest/usr/lib/arch/libfoo.so.1 +ln -sf libfoo.so.1 tmp/dest/usr/lib/arch/libfoo.so + +cd tmp +OPK_PACKAGES='foo libfoo.1 libfoo-dev' oh-installfiles +assert test_non_dir_nodes dest +assert test_nodes libfoo.1.data / /usr/ /usr/lib/ /usr/lib/arch/ \ + /usr/lib/arch/libfoo.so.1.0.0 /usr/lib/arch/libfoo.so.1@ +assert test_nodes libfoo-dev.data / /usr/ /usr/lib/ /usr/lib/arch/ \ + /usr/lib/arch/libfoo.so@ +cd .. + +rm -Rf foo.pkg libfoo.1.pkg libfoo-dev.pkg tmp |