Blame tests/p_coreutils/tail.sh

Alice Kaerast a5b9f7
#!/bin/bash
Alice Kaerast a5b9f7
# Author: Alice Kaerast <alice@kaerast.info>
Alice Kaerast a5b9f7
Alice Kaerast a5b9f7
t_Log "$0 test tail command"
Alice Kaerast a5b9f7
Alice Kaerast a5b9f7
cat << EOF > /var/tmp/tail-test
Alice Kaerast a5b9f7
1
Alice Kaerast a5b9f7
2
Alice Kaerast a5b9f7
3
Alice Kaerast a5b9f7
4
Alice Kaerast a5b9f7
5
Alice Kaerast a5b9f7
EOF
Alice Kaerast a5b9f7
Alice Kaerast a5b9f7
tail -n1 /var/tmp/tail-test | grep -q 5
Alice Kaerast a5b9f7
t_CheckExitStatus $?
Alice Kaerast a5b9f7
Alice Kaerast a5b9f7
# Cleanup
Alice Kaerast a5b9f7
rm /var/tmp/tail-test