diff --git a/tests/test-against-previous-version.sh b/tests/test-against-previous-version.sh index 48d99124..ed13a460 100755 --- a/tests/test-against-previous-version.sh +++ b/tests/test-against-previous-version.sh @@ -1,5 +1,5 @@ #!/bin/bash -previousVersion="0.3-release" +previousVersion="0.4-release" previousVersionTag=v${previousVersion} wget --no-check-certificate https://github.com/mcveanlab/DEploid/archive/${previousVersionTag}.tar.gz -o /dev/null tar -xf ${previousVersionTag}.tar.gz @@ -17,5 +17,20 @@ if [ $? -ne 0 ]; then fi +echo ${PWD} + + +sameFlags="-exclude data/testData/labStrains.test.exclude.txt -plaf data/testData/labStrains.test.PLAF.txt -noPanel -ibd -seed 1 -ref data/testData/PG0390-C.test.ref -alt data/testData/PG0390-C.test.alt -vcfOut" +./dEploid ${sameFlags} -o current +./DEploid-${previousVersion}/dEploid ${sameFlags} -o previous + +diff current.prop previous.prop +if [ $? -ne 0 ]; then + echo "" + echo "Proportion unequal" + exit 1 +fi + + echo ${PWD} rm -r "${previousVersionTag}".tar.gz DEploid-${previousVersion} current* previous*