da449b4fe2039f200a2f93d5209c48fe98c0a534
braney
  Tue Sep 29 10:58:30 2026 -0700
cartPcrVarTester: which hgPcrResult_ cart variables survive a cart load, refs #38442

Feeds hgPcrResult_ variables through cartParseOverHash() and says which are
kept.  With the cart.c fix backed out it shows hgPcrResult_imgOrd dropped and
nothing else changes.  Registry row and catalog note added.

diff --git src/hg/lib/tests/makefile src/hg/lib/tests/makefile
index 7cd481fcf49..6d8f474e417 100644
--- src/hg/lib/tests/makefile
+++ src/hg/lib/tests/makefile
@@ -16,31 +16,31 @@
 	${BIN_DIR}/customTrackTester \
 	${BIN_DIR}/hgvsTester \
 	${BIN_DIR}/sqlCheck 
 # annoGratorTester is left out, like the annoGratorTest target below.  A commented
 # line inside the list above would comment out every entry after it, because the
 # backslash on the line before joins them into one line.
 
 ${BIN_DIR}/%: %.c ${MYLIBS}
 	@${MKDIR} ${BIN_DIR}
 	${CC} ${CC_PROG_OPTS} -o $@ $*.c ${MYLIBS} $L
 
 #test: binTest spDbTest hdbTest genePredTest pslReaderTest annoGratorTest customTrackTest hgvsTest
 test: binTest quickLiftTest sessionDataTest trashDirTest mallocTopPadTest \
 	hVarSubstHtmlTest dataVersionPathTest genarkLiftOverTest \
 	snapshotTypeTest sessionDirTest geoMirrorSelfTest asForDbTest vcfInfoFilterTest pgSnpManyAllelesTest \
-	trackHubSkipHubNameTest spDbTest hdbTest genePredTest pslReaderTest customTrackTest hgvsTest
+	trackHubSkipHubNameTest cartPcrVarTest spDbTest hdbTest genePredTest pslReaderTest customTrackTest hgvsTest
 	rm -r output
 	echo tested all
 
 mkdirs:
 	@${MKDIR} output ${BIN_DIR}
 
 loaders:
 	ln -sf ${CGI_BIN}/loader .
 
 spDbTest: ${BIN_DIR}/spDbTest mkdirs
 	${BIN_DIR}/spDbTest sp121210 Q9FFH7 > output/spDbTest
 	${BIN_DIR}/spDbTest sp121210 P29312 >> output/spDbTest
 	diff expected/spDbTest output/spDbTest
 
 hdbTest: ${BIN_DIR}/hdbTest mkdirs
@@ -180,21 +180,28 @@
 	${BIN_DIR}/vcfInfoFilterTester > output/vcfInfoFilterTest
 	diff expected/vcfInfoFilterTest output/vcfInfoFilterTest
 
 # per-allele counts from a VCF record with more alleles than the old fixed array held.
 # refs #38154
 pgSnpManyAllelesTest: mkdirs
 	${CC} ${CC_PROG_OPTS} -o ${BIN_DIR}/pgSnpManyAllelesTester pgSnpManyAllelesTester.c ${MYLIBS} $L
 	${BIN_DIR}/pgSnpManyAllelesTester > output/pgSnpManyAllelesTest
 	diff expected/pgSnpManyAllelesTest output/pgSnpManyAllelesTest
 
 trackHubSkipHubNameTest: mkdirs
 	${CC} ${CC_PROG_OPTS} -o ${BIN_DIR}/trackHubSkipHubNameTester trackHubSkipHubNameTester.c ${MYLIBS} $L
 	${BIN_DIR}/trackHubSkipHubNameTester > output/trackHubSkipHubNameTest
 	diff expected/trackHubSkipHubNameTest output/trackHubSkipHubNameTest
 
+# hgPcrResult_ cart variables fed through the cart's own parse.  The dropped ones are also
+# reported on stderr, the way the CGIs log them, so that goes to /dev/null.  refs #38442
+cartPcrVarTest: mkdirs
+	${CC} ${CC_PROG_OPTS} -o ${BIN_DIR}/cartPcrVarTester cartPcrVarTester.c ${MYLIBS} $L
+	${BIN_DIR}/cartPcrVarTester > output/cartPcrVarTest 2> /dev/null
+	diff expected/cartPcrVarTest output/cartPcrVarTest
+
 sqlCheck: ${BIN_DIR}/sqlCheck mkdirs
 	${MAKE} -f sqlCheck.mk test BIN_DIR=${BIN_DIR} OUT_DIR=output
 
 
 clean:
 	rm -rf *.o bin output *.tmp loader udcCache