Skip to content

Commit

Permalink
track assert_vcf.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
sorelfitzgibbon committed Sep 26, 2023
1 parent a47dd85 commit 09e78b5
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions test/assert_vcf.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
#!/bin/bash
function md5_vcf {
zcat $1 | grep -v '^##' | md5sum | cut -f 1 -d ' '
}

received=$(md5_vcf $1)
expected=$(md5_vcf $2)

if [ "$received" == "$expected" ]; then
echo "VCF files are equal"
exit 0
else
echo "VCF files are not equal" >&2
exit 1
fi

0 comments on commit 09e78b5

Please sign in to comment.