proot/tests/test-d2175fc3.sh

10 lines
399 B
Bash

if [ ! -x ${ROOTFS}/bin/readlink ] || [ -z `which grep` ]; then
exit 125;
fi
${PROOT} -r ${ROOTFS} /bin/readlink /bin/abs-true | grep '^/bin/true$'
${PROOT} -r ${ROOTFS} /bin/readlink /bin/rel-true | grep '^\./true$'
${PROOT} -b /:/host-rootfs -r ${ROOTFS} /bin/readlink /bin/abs-true | grep '^/bin/true$'
${PROOT} -b /:/host-rootfs -r ${ROOTFS} /bin/readlink /bin/rel-true | grep '^./true$'