summaryrefslogtreecommitdiffstats
path: root/tests/t_installfiles_dir_slash
blob: a4d1e0a6c68ab88c9456683305792ca40a4a2cee (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/bin/sh

mkdir -p foo.pkg
cat >foo.pkg/files <<-EOF
	/usr/bin/
	EOF

mkdir -p tmp/dest/usr/bin
>tmp/dest/usr/bin/foo

cd tmp
OPK_PACKAGES='foo' oh-installfiles
assert test_non_dir_nodes dest
assert test_nodes foo.data / /usr/ /usr/bin/ /usr/bin/foo
cd ..

rm -Rf foo.pkg tmp