bstinson / centos / t_functional

Forked from centos/t_functional 3 years ago
Clone

Blame tests/p_coreutils/readlink.sh

Alice Kaerast a5b9f7
#!/bin/bash
Alice Kaerast a5b9f7
# Author: Alice Kaerast <alice@kaerast.info>
Alice Kaerast a5b9f7
Alice Kaerast a5b9f7
t_Log "$0 checking readlink prints target of a symlink"
Alice Kaerast a5b9f7
Alice Kaerast a5b9f7
ln -s /var/tmp/foo /var/tmp/readlink-test
Alice Kaerast a5b9f7
readlink /var/tmp/readlink-test | grep -q "/var/tmp/foo"
Alice Kaerast a5b9f7
t_CheckExitStatus $?
Alice Kaerast a5b9f7
rm /var/tmp/readlink-test