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/expected/seqNameCheck.output.txt src/hg/utils/hubCheck/tests/expected/seqNameCheck.output.txt
new file mode 100644
index 00000000000..995352fb904
--- /dev/null
+++ src/hg/utils/hubCheck/tests/expected/seqNameCheck.output.txt
@@ -0,0 +1,7 @@
+Found 6 problems:
+warning: missing htmlPath setting for assembly hub 'seqNameTest'
+warning: missing hub overview description page. Add a 'descriptionUrl hubDescription.html' line to hub.txt.
+warning: sequence name '#startshash' in genome 'seqNameTest' contains invalid character '#' -only [A-Za-z0-9._-] are allowed. Consider using chromAlias for alternative names.
+warning: sequence name '#startshash' in genome 'seqNameTest' starts with '#' -must start with a letter or digit
+warning: sequence name 'bad,comma' in genome 'seqNameTest' contains invalid character ',' -only [A-Za-z0-9._-] are allowed. Consider using chromAlias for alternative names.
+warning: sequence name 'bad=equals' in genome 'seqNameTest' contains invalid character '=' -only [A-Za-z0-9._-] are allowed. Consider using chromAlias for alternative names.