Skip to content

Commit 9207dce

Browse files
mlml tests: Updating the test script
1 parent 6169997 commit 9207dce

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

test_scripts/test_mlml.test

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
#!/usr/bin/env bash
2+
3+
archive=tests/mlml_test_data.tgz
4+
if [[ ! -e "${archive}" ]] ; then
5+
echo "input missing; skipping test";
6+
exit 77;
7+
fi
8+
9+
infile1=tests/bs.counts
10+
infile2=tests/tab.counts
11+
infile3=tests/oxbs.counts
12+
outfile=tests/mlml.out
13+
tar -xf ${archive} -C tests
14+
if [[ -e "${infile1}" || -e "${infile2}" || -e "${infile3}" ]]; then
15+
./dnmtools mlml -o ${outfile} -bsseq ${infile1} -tabseq ${infile2} -oxbsseq ${infile3}
16+
x=$(md5sum -c tests/md5sum.txt | grep "${outfile}:" | cut -d ' ' -f 2)
17+
rm -f ${infile1} ${infile2} ${infile3}
18+
if [[ "${x}" != "OK" ]]; then
19+
exit 1;
20+
fi
21+
else
22+
echo "input missing; skipping test";
23+
rm -f ${infile1} ${infile2} ${infile3}
24+
exit 77;
25+
fi

0 commit comments

Comments
 (0)