Blame tests/p_coreutils/head.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 head command"
Alice Kaerast a5b9f7
Alice Kaerast a5b9f7
cat << EOF > /var/tmp/head-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
head -n1 /var/tmp/head-test | grep -q 1
Alice Kaerast a5b9f7
t_CheckExitStatus $?
Alice Kaerast a5b9f7
Alice Kaerast a5b9f7
# Cleanup
Alice Kaerast a5b9f7
rm /var/tmp/head-test