2f032b790bd3d0354f1d61de5dcadb2e469c1817
braney
  Tue Mar 10 17:42:42 2026 -0700
Add unit tests for mafFrag tool

Add test suite with 5 tests covering basic extraction, reverse strand,
custom outName, small region, and larger multi-block region using
hg38 multiz100way. Replace broken old test target that referenced
a missing expected.maf file.

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

diff --git src/hg/ratStuff/mafFrag/makefile src/hg/ratStuff/mafFrag/makefile
index a63550b871b..a5589a646f1 100644
--- src/hg/ratStuff/mafFrag/makefile
+++ src/hg/ratStuff/mafFrag/makefile
@@ -1,10 +1,6 @@
 kentSrc = ../../..
 A = mafFrag
 include ${kentSrc}/inc/userApp.mk
 
 test::
-	mafFrag hg16 rat_hmrg chr2 69065807 69073183 - test.maf
-	@diff test.maf expected.maf
-
-clean::
-	rm -f test.maf
+	cd tests && ${MAKE} test