71b7edde11d143446fcc9e72c14c8f213e74c900
braney
  Tue Mar 10 10:49:54 2026 -0700
hubCheck: add unit tests for sequence name validation (refs #37174)

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

diff --git src/hg/utils/hubCheck/tests/makefile src/hg/utils/hubCheck/tests/makefile
index 1ddafd4d37d..06a7e3df121 100644
--- src/hg/utils/hubCheck/tests/makefile
+++ src/hg/utils/hubCheck/tests/makefile
@@ -1,65 +1,73 @@
 kentSrc = ../../../..
 include ../../../../inc/common.mk
 
 hubCheck = ${DESTBINDIR}/hubCheck
 
-test:: one two errors supertrackChild genomesErrors badType badSubgroups autoScale noLongLabel badGroups goodGroups noCompositeGroup allowWarnings
+test:: one two errors supertrackChild genomesErrors badType badSubgroups autoScale noLongLabel badGroups goodGroups noCompositeGroup allowWarnings seqNameCheck noSeqNameCheck
 	${MAKE} clean
 
 one:	mkout
 	-${hubCheck} input/hub1.txt > output/output1.txt
 	diff expected/output1.txt output/output1.txt
 
 two:	mkout
 	-${hubCheck} input/hub2.txt > output/output2.txt 2> /dev/null
 	diff expected/output2.txt output/output2.txt
 
 supertrackChild: mkout
 	-${hubCheck} input/supertrackChild.txt > output/supertrackChild.txt 2> /dev/null
 	diff expected/supertrackChild.txt output/supertrackChild.txt
 
 errors:	mkout
 	-${hubCheck} input/manyErrorsHub.txt > output/manyErrors.output.txt 2>/dev/null
 	diff expected/manyErrors.output.txt output/manyErrors.output.txt
 
 genomesErrors: mkout
 	-${hubCheck} input/genomesConfigErrorsHub.txt > output/genomesConfigErrors.output.txt 2>/dev/null
 	diff expected/genomesConfigErrors.output.txt output/genomesConfigErrors.output.txt
 
 badType: mkout
 	-${hubCheck} input/badType.txt > output/badType.output.txt 2>/dev/null
 	diff expected/badType.output.txt output/badType.output.txt
 
 badSubgroups: mkout
 	-${hubCheck} input/badSubGroups.txt > output/badSubGroups.output.txt 2>/dev/null
 	diff expected/badSubGroups.output.txt output/badSubGroups.output.txt
 
 autoScale: mkout
 	-${hubCheck} input/autoScaleHub.txt > output/autoScaleHub.output.txt 2>/dev/null
 	diff expected/autoScaleHub.txt output/autoScaleHub.output.txt
 
 noLongLabel:	mkout
 	-${hubCheck} input/noLongLabel.txt > output/noLongLabel.txt
 	diff expected/noLongLabel.txt output/noLongLabel.txt
 
 badGroups: mkout
 	-${hubCheck} input/badGroups.txt > output/badGroups.output.txt 2>/dev/null
 	diff expected/badGroups.output.txt output/badGroups.output.txt
 
 goodGroups: mkout
 	-${hubCheck} input/goodGroups.txt > output/goodGroups.output.txt
 	diff expected/goodGroups.output.txt output/goodGroups.output.txt
 
 noCompositeGroup: mkout
 	-${hubCheck} input/noCompositeGroup.txt > output/noCompositeGroup.output.txt 2>/dev/null
 	diff expected/noCompositeGroup.output.txt output/noCompositeGroup.output.txt
 
 allowWarnings: mkout
 	${hubCheck} -allowWarnings input/supertrackChild.txt > output/allowWarnings.output.txt 2> /dev/null
 	diff expected/allowWarnings.output.txt output/allowWarnings.output.txt
 
+seqNameCheck: mkout
+	-${hubCheck} input/seqNameHub.txt > output/seqNameCheck.output.txt 2>/dev/null
+	diff expected/seqNameCheck.output.txt output/seqNameCheck.output.txt
+
+noSeqNameCheck: mkout
+	-${hubCheck} -noSeqNameCheck input/seqNameHub.txt > output/noSeqNameCheck.output.txt 2>/dev/null
+	diff expected/noSeqNameCheck.output.txt output/noSeqNameCheck.output.txt
+
 mkout::
 	@mkdir -p output
 clean::
 	rm -rf output