02336754147822f5aa61ba13277123b2cc629001 markd Thu May 20 08:38:55 2021 -0700 Moved pslMap, pslMapPostChain, pslRc, pslSwap to src/utils, as they do not have hg/lib dependencies. diff --git src/utils/pslRc/tests/makefile src/utils/pslRc/tests/makefile new file mode 100644 index 0000000..1bb42ae --- /dev/null +++ src/utils/pslRc/tests/makefile @@ -0,0 +1,36 @@ +include ../../../inc/common.mk + +pslRc = ${DESTBINDIR}/pslRc +pslCheck = ${DESTBINDIR}/pslCheck + +diff = diff -u + +# use pslSwap input files +indir = ../../pslSwap/tests/input/ + +test: mrnaTest withSeqTest transTest + ${MAKE} clean + +mrnaTest: mkdirs + ${MAKE} runTest ID=$@ IN=mrna.psl + +withSeqTest: + ${MAKE} runTest ID=$@ IN=withSeq.psl + +transTest: + ${MAKE} runTest ID=$@ IN=trans.psl + +# recursive target to run tests +# ID= test id +# IN= file under input +runTest: + ${pslRc} ${indir}/${IN} output/${ID}.psl + ${pslRc} output/${ID}.psl output/${ID}.back.psl + ${pslCheck} -verbose=0 output/${ID}.psl + ${pslCheck} -verbose=0 output/${ID}.back.psl + +mkdirs: + ${MKDIR} output + +clean: + rm -rf output