8fdef9e866ecc228bfe4ea54102d0079818f0366
braney
  Fri Apr 8 14:49:38 2022 -0700
let bedGraphToBigWig use chromAlias.bb as chromSizes file.  Add tests
to both bedGraphToBigWig and bedToBigBed

diff --git src/utils/bedGraphToBigWig/tests/makefile src/utils/bedGraphToBigWig/tests/makefile
new file mode 100644
index 0000000..4ff8d27
--- /dev/null
+++ src/utils/bedGraphToBigWig/tests/makefile
@@ -0,0 +1,27 @@
+kentSrc = ../../..
+A = bedGraphToBigWig
+include ../../../inc/common.mk
+
+test: testBadChrom1 testBbSize1 testBbSize2
+
+testBadChrom1:  outputDir
+	-${BINDIR}/${A} input/test1.bed  input/human.chrom.sizes.txt output/noFile.chromAlias.bb   2> output/testBadChrom1.err
+	diff expected/testBadChrom1.err output/testBadChrom1.err
+
+output/human.chromAlias.bb:  outputDir
+	bedToBigBed input/human.chromAlias.bed input/human.chrom.sizes.txt output/human.chromAlias.bb   -tab -type=bed3+4 -as=input/chromAliasIndex.as -extraIndex=genbank,ensembl,ncbi,ucsc
+
+testBbSize1: outputDir output/human.chromAlias.bb
+	${BINDIR}/${A} input/test1.bed output/human.chromAlias.bb output/test1.bw -sizesIsBb 
+	bigWigToBedGraph output/test1.bw output/test1.bed
+	diff input/test1.bed output/test1.bed
+
+testBbSize2: outputDir output/human.chromAlias.bb
+	-${BINDIR}/${A} input/mixed.bed output/human.chromAlias.bb output/noFile.chromAlias.bb -sizesIsBb 2> output/mixed.err
+	diff expected/mixed.err output/mixed.err
+
+clean::
+	@rm -rf output
+
+outputDir:
+	@${MKDIR} -p output