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 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,21 +1,21 @@ 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 @@ -46,20 +46,28 @@ -${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