Skip to content

Commit

Permalink
update, and set a check point for setting all parameters
Browse files Browse the repository at this point in the history
  • Loading branch information
shajoezhu committed Nov 13, 2017
1 parent 722dff2 commit a0dd26e
Showing 1 changed file with 16 additions and 1 deletion.
17 changes: 16 additions & 1 deletion tests/test-against-previous-version.sh
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -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*

0 comments on commit a0dd26e

Please sign in to comment.