-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathtestcode.sh
More file actions
30 lines (22 loc) · 742 Bytes
/
testcode.sh
File metadata and controls
30 lines (22 loc) · 742 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#! /bin/bash
# Geoffrey Hannigan
# University of Michigan
echo Running test
cd ./test || exit
bash ./downloadtestseqs.sh ./testvirusnumbers.tsv ./testout.fa
cd ../ || exit
diffcount=$(diff ./test/validation.fa ./test/testout.fa | wc -l)
if [[ ${diffcount} -gt 1 ]]; then
echo FAIL: Did not properly download and format reference fasta
else
echo ">>> PASS: Downloaded and formatted referece fasta"
fi
julia ccontigs.jl -i ./test/testout.fa -o ./test/juliaout.tsv
diffjulia=$(diff ./test/juliavalidation.tsv ./test/juliaout.tsv | wc -l)
if [[ ${diffjulia} -gt 1 ]]; then
echo FAIL: ccontigs failed to run on reference file
else
echo ">>> PASS: ccontigs ran properly on reference file"
fi
rm ./test/testout.fa
rm ./test/juliaout.tsv