| 1 | #!/bin/bash |
| 2 | set -e |
| 3 | |
| 4 | CUR_DIR=`pwd` |
| 5 | export LC_ALL=C.UTF-8 |
| 6 | if [ "${AUTOPKGTEST_TMP}" = "" ] ; then |
| 7 | AUTOPKGTEST_TMP=$(mktemp -d /tmp/${pkg}-test.XXXXXX) |
| 8 | trap "rm -rf ${AUTOPKGTEST_TMP}" 0 INT QUIT ABRT PIPE TERM |
| 9 | fi |
| 10 | |
| 11 | cd "${AUTOPKGTEST_TMP}" |
| 12 | cp ${CUR_DIR}/debian/tests/test.fastq . |
| 13 | cat test.fastq | gzip > test.fastq.gz |
| 14 | mkdir subdir |
| 15 | cp test.fastq test.fastq.gz subdir |
| 16 | |
| 17 | echo "Test recursive directory descent and dedup" |
| 18 | catfishq --log debug --recursive --dedup --out catfishq.dedup.test.out . |
| 19 | |
| 20 | # with dedup, the output should match the input |
| 21 | diff -q catfishq.dedup.test.out test.fastq |
| 22 | |
| 23 | echo "PASS" |