summaryrefslogtreecommitdiffstats
path: root/tests/t_installfiles_busybox_links
blob: 8918ba2195f17845778bf73a88f5eead32092f31 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/bin/sh

mkdir -p 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