Radish alpha
H
rad:z3QDZAW2FAfuLvihrhiyDC9fAD8G9
HardenedBSD Package Manager
Radicle
Git
Extend the test with a prefix being a symlink to test that symlinks are actually created
Baptiste Daroussin committed 9 years ago
commit 4025f58fbf241525578ffa948f6e17b36a69358b
parent 73c5d2f
1 file changed +3 -0
modified tests/frontend/register.sh
@@ -110,9 +110,11 @@ prefix_is_a_symlink_body()
	mkdir -p ${TMPDIR}/${TMPDIR}/plop/bla
	echo "something" > ${TMPDIR}/${TMPDIR}/plop/bla/a
	ln ${TMPDIR}/${TMPDIR}/plop/bla/a ${TMPDIR}/${TMPDIR}/plop/bla/b
+
	ln -sf a ${TMPDIR}/${TMPDIR}/plop/bla/c
	sed -e "s,^prefix.*,prefix = ${TMPDIR},g" test.ucl > test2.ucl
	echo "plop/bla/a" > plist
	echo "plop/bla/b" >> plist
+
	echo "plop/bla/c" >> plist

	mkdir -p ${TMPDIR}/target/${TMPDIR}/
	mkdir -p ${TMPDIR}/target/hey
@@ -126,4 +128,5 @@ prefix_is_a_symlink_body()
	inode1=$(ls -i ${TMPDIR}/target/${TMPDIR}/plop/bla/a | awk '{ print $1 }')
	inode2=$(ls -i ${TMPDIR}/target/${TMPDIR}/plop/bla/b | awk '{ print $1 }')
	atf_check_equal $inode1 $inode2
+
	test -L ${TMPDIR}/target/${TMPDIR}/plop/bla/c || atf_fail "symlinks failed"
}