Skip to content

Commit 9e218f3

Browse files
pmd test: adding test script for pmd
1 parent 5fe382f commit 9e218f3

1 file changed

Lines changed: 14 additions & 0 deletions

File tree

test_scripts/test_pmd.test

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
#!/usr/bin/env bash
2+
3+
infile=tests/pmd_test_data.counts.sym.gz
4+
outfile=tests/methylome.pmd
5+
if [[ -e "${infile}" ]]; then
6+
./dnmtools pmd -o ${outfile} ${infile}
7+
x=$(md5sum -c tests/md5sum.txt | grep "${outfile}:" | cut -d ' ' -f 2)
8+
if [[ "${x}" != "OK" ]]; then
9+
exit 1;
10+
fi
11+
else
12+
echo "${infile} not found; skipping remaining tests";
13+
exit 77;
14+
fi

0 commit comments

Comments
 (0)