Blame tests/p_coreutils/uniq.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 uniq command"
Alice Kaerast a5b9f7
Alice Kaerast a5b9f7
cat << EOF > /var/tmp/uniq-test
Alice Kaerast a5b9f7
1
Alice Kaerast a5b9f7
2
Alice Kaerast a5b9f7
2
Alice Kaerast a5b9f7
3
Alice Kaerast a5b9f7
3
Alice Kaerast a5b9f7
4
Alice Kaerast a5b9f7
5
Alice Kaerast a5b9f7
EOF
Alice Kaerast a5b9f7
Alice Kaerast a5b9f7
uniq -d /var/tmp/uniq-test | wc -l | grep -q 2 && uniq -u /var/tmp/uniq-test | wc -l | grep -q 3
Alice Kaerast a5b9f7
t_CheckExitStatus $?