summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/local.mk3
-rw-r--r--tests/t_installfiles_busybox_links20
2 files changed, 22 insertions, 1 deletions
diff --git a/tests/local.mk b/tests/local.mk
index 75e97d2..4baab4d 100644
--- a/tests/local.mk
+++ b/tests/local.mk
@@ -19,4 +19,5 @@
tests = \
tests/t_installfiles_dir \
tests/t_installfiles_dir_slash \
- tests/t_installfiles_patterns_and_links
+ tests/t_installfiles_patterns_and_links \
+ tests/t_installfiles_busybox_links
diff --git a/tests/t_installfiles_busybox_links b/tests/t_installfiles_busybox_links
new file mode 100644
index 0000000..19f42d8
--- /dev/null
+++ b/tests/t_installfiles_busybox_links
@@ -0,0 +1,20 @@
+#!/bin/sh
+
+mkdir foo.pkg
+cat >foo.pkg/files <<-EOF
+ /bin
+ EOF
+
+mkdir -p tmp/dest/bin
+>tmp/dest/bin/busybox
+chmod u+s tmp/dest/bin/busybox
+ln -sf busybox tmp/dest/bin/ash
+ln -sf busybox tmp/dest/bin/bbconfig
+
+cd tmp
+OPK_PACKAGES='foo' oh-installfiles
+assert test_non_dir_nodes dest
+assert test_nodes foo.data / /bin/ /bin/busybox* /bin/ash@ /bin/bbconfig@
+cd ..
+
+rm -Rf foo.pkg tmp