Skip to content

Commit

Permalink
test_amrfinder.sh will now print diffs
Browse files Browse the repository at this point in the history
  • Loading branch information
evolarjun committed Sep 28, 2021
1 parent 4a9ef8b commit 5a1fb83
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions test_amrfinder.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ then
echo "Test failed: "
echo " $AMRFINDER --plus -p test_prot.fa -g test_prot.gff -O Escherichia > test_prot.got"
echo " diff test_prot.expected test_prot.got "
diff test_prot.expected test_prot.got
exit 1
fi

Expand All @@ -25,13 +26,15 @@ then
echo "Test failed: "
echo " $AMRFINDER --plus -n test_dna.fa -O Escherichia --mutation_all test_dna_mut_all.got > test_dna.got"
echo " diff test_dna.expected test_dna.got"
diff test_dna.expected test_dna.got
exit 1
fi
if ! diff -q test_dna_mut_all.expected test_dna_mut_all.got
then
echo "Test failed: "
echo " $AMRFINDER --plus -n test_dna.fa -O Escherichia --mutation_all test_dna_mut_all.got > test_dna.got"
echo " diff test_dna_mut_all.expected test_dna_mut_all.got"
diff test_dna_mut_all.expected test_dna_mut_all.got
exit 1
fi

Expand All @@ -41,6 +44,7 @@ then
echo "Test failed: "
echo " $AMRFINDER --plus -n test_dna.fa -p test_prot.fa -g test_prot.gff -O Escherichia > test_both.got"
echo " diff test_both.expected test_both.got "
diff test_both.expected test_both.got
exit 1
fi

Expand Down

0 comments on commit 5a1fb83

Please sign in to comment.