1
0

testdupsingle.sh 438 B

123456789101112131415161718192021222324252627282930
  1. #! /bin/bash
  2. SCRIPTDIR=`dirname "${BASH_SOURCE[0]}"`
  3. pushd ${SCRIPTDIR}
  4. SCRIPTDIR=`pwd`
  5. popd
  6. source ${SCRIPTDIR}/dupsingle.sh
  7. source ${SCRIPTDIR}/dupsinglemarked.sh
  8. function runmark
  9. {
  10. dupsingle | ../src/bammarkduplicates
  11. }
  12. function runmark2
  13. {
  14. dupsingle | ../src/bammarkduplicates
  15. }
  16. ./bamcmp <(runmark) <(dupsinglemarked)
  17. if [ $? -ne 0 ] ; then
  18. exit 1
  19. fi
  20. ./bamcmp <(runmark2) <(dupsinglemarked)
  21. if [ $? -ne 0 ] ; then
  22. exit 1
  23. fi