888f7654e2cd538922ffea023abf83f9db522b88
angie
Fri May 15 14:51:34 2020 -0700
Added test target to trackDb/makefile that invokes tdbQuery -check -release={alpha,beta,public} -strict.
diff --git src/hg/makeDb/trackDb/makefile src/hg/makeDb/trackDb/makefile
index dd7c98d..31f0751 100644
--- src/hg/makeDb/trackDb/makefile
+++ src/hg/makeDb/trackDb/makefile
@@ -270,19 +270,24 @@
buildBeta: checkbeta clean strict
encodeReport:
${GIT} pull
./loadTracks ${EXTRA} trackDb_encodeReport hgFindSpec ${DBS}
listDbs:
@echo "# databases listed in trackDb/makefile DBS variable, with table counts"
@for D in ${DBS}; do \
C=`hgsql -N -e "show tables;" $${D} 2> /dev/null | wc -l`; \
if [ "$${C}" -gt 0 ]; then \
echo -e "$${D}\t$${C}"; \
fi \
done
+test:
+ tdbQuery -check -release=alpha -strict "select count(*) from *" >/dev/null
+ tdbQuery -check -release=beta -strict "select count(*) from *" >/dev/null
+ tdbQuery -check -release=public -strict "select count(*) from *" >/dev/null
+
# Get rid of symbolic links (created by lower-level makefiles):
clean:
find . -type l -exec rm {} \;