@@ -74,12 +74,14 @@ BUILT_TEST_PROGRAMS = \
7474 test/fieldarith \
7575 test/hfile \
7676 test/pileup \
77+ test/pileup_mod \
7778 test/plugins-dlhts \
7879 test/sam \
7980 test/test_bgzf \
8081 test/test_expr \
8182 test/test_kfunc \
8283 test/test_kstring \
84+ test/test_mod \
8385 test/test_realn \
8486 test/test-regidx \
8587 test/test_str2int \
@@ -129,8 +131,8 @@ LIBHTS_SOVERSION = 3
129131# is not strictly necessary and should be removed the next time
130132# LIBHTS_SOVERSION is bumped (see #1144 and
131133# https://developer.apple.com/library/archive/documentation/DeveloperTools/Conceptual/DynamicLibraries/100-Articles/DynamicLibraryDesignGuidelines.html#//apple_ref/doc/uid/TP40002013-SW23)
132- MACH_O_COMPATIBILITY_VERSION = 3.1.13
133- MACH_O_CURRENT_VERSION = 3.1.13
134+ MACH_O_COMPATIBILITY_VERSION = 3.1.14
135+ MACH_O_CURRENT_VERSION = 3.1.14
134136
135137# $(NUMERIC_VERSION) is for items that must have a numeric X.Y.Z string
136138# even if this is a dirty or untagged Git working tree.
@@ -363,7 +365,7 @@ hfile_gcs.o hfile_gcs.pico: hfile_gcs.c config.h $(htslib_hts_h) $(htslib_kstrin
363365hfile_libcurl.o hfile_libcurl.pico : hfile_libcurl.c config.h $(hfile_internal_h ) $(htslib_hts_h ) $(htslib_kstring_h ) $(htslib_khash_h )
364366hfile_s3_write.o hfile_s3_write.pico : hfile_s3_write.c config.h $(hfile_internal_h ) $(htslib_hts_h ) $(htslib_kstring_h ) $(htslib_khash_h )
365367hfile_s3.o hfile_s3.pico : hfile_s3.c config.h $(hfile_internal_h ) $(htslib_hts_h ) $(htslib_kstring_h )
366- hts.o hts.pico : hts.c config.h $( htslib_hts_expr_h ) $(htslib_hts_h ) $(htslib_bgzf_h ) $(cram_h ) $(htslib_hfile_h ) $(htslib_hts_endian_h ) version.h config_vars.h $(hts_internal_h ) $(hfile_internal_h ) $(sam_internal_h ) $(htslib_hts_os_h ) $(htslib_khash_h ) $(htslib_kseq_h ) $(htslib_ksort_h ) $(htslib_tbx_h ) $(htscodecs_htscodecs_h )
368+ hts.o hts.pico : hts.c config.h os/lzma_stub.h $(htslib_hts_h ) $(htslib_bgzf_h ) $(cram_h ) $(htslib_hfile_h ) $(htslib_hts_endian_h ) version.h config_vars.h $(hts_internal_h ) $(hfile_internal_h ) $(sam_internal_h ) $( htslib_hts_expr_h ) $(htslib_hts_os_h ) $(htslib_khash_h ) $(htslib_kseq_h ) $(htslib_ksort_h ) $(htslib_tbx_h ) $(htscodecs_htscodecs_h )
367369hts_expr.o hts_expr.pico : hts_expr.c config.h $(htslib_hts_expr_h ) $(textutils_internal_h )
368370hts_os.o hts_os.pico : hts_os.c config.h $(htslib_hts_defs_h ) os/rand.c
369371vcf.o vcf.pico : vcf.c config.h $(htslib_vcf_h ) $(htslib_bgzf_h ) $(htslib_tbx_h ) $(htslib_hfile_h ) $(hts_internal_h ) $(htslib_khash_str2int_h ) $(htslib_kstring_h ) $(htslib_sam_h ) $(htslib_khash_h ) $(htslib_kseq_h ) $(htslib_hts_endian_h )
@@ -471,6 +473,13 @@ maintainer-check:
471473 test/maintainer/check_copyright.pl .
472474 test/maintainer/check_spaces.pl .
473475
476+ # Look for untracked files in the git repository.
477+ check-untracked :
478+ @if test -e .git && git status --porcelain | grep ' ^\?' ; then \
479+ echo ' Untracked files detected (see above). Please either clean up, add to .gitignore, or for test output files consider naming them to match *.tmp or *.tmp.*' ; \
480+ false ; \
481+ fi
482+
474483# Create a shorthand. We use $(SRC) or $(srcprefix) rather than $(srcdir)/
475484# for brevity in test and install rules, and so that build logs do not have
476485# ./ sprinkled throughout.
@@ -497,6 +506,7 @@ check test: $(BUILT_PROGRAMS) $(BUILT_TEST_PROGRAMS) $(BUILT_PLUGINS) $(HTSCODEC
497506 cd test/tabix && ./test-tabix.sh tabix.tst
498507 cd test/mpileup && ./test-pileup.sh mpileup.tst
499508 cd test/fastq && ./test-fastq.sh
509+ cd test/base_mods && ./base-mods.sh base-mods.tst
500510 REF_PATH=: test/sam test/ce.fa test/faidx.fa test/fastqs.fq
501511 test/test-regidx
502512 cd test && REF_PATH=: ./test.pl $$ {TEST_OPTS:-}
@@ -516,6 +526,9 @@ test/hfile: test/hfile.o libhts.a
516526test/pileup : test/pileup.o libhts.a
517527 $(CC ) $(LDFLAGS ) -o $@ test/pileup.o libhts.a $(LIBS ) -lpthread
518528
529+ test/pileup_mod : test/pileup_mod.o libhts.a
530+ $(CC ) $(LDFLAGS ) -o $@ test/pileup_mod.o libhts.a $(LIBS ) -lpthread
531+
519532test/plugins-dlhts : test/plugins-dlhts.o
520533 $(CC ) $(LDFLAGS ) -o $@ test/plugins-dlhts.o $(LIBS )
521534
@@ -534,6 +547,9 @@ test/test_kfunc: test/test_kfunc.o libhts.a
534547test/test_kstring : test/test_kstring.o libhts.a
535548 $(CC ) $(LDFLAGS ) -o $@ test/test_kstring.o libhts.a -lz $(LIBS ) -lpthread
536549
550+ test/test_mod : test/test_mod.o libhts.a
551+ $(CC ) $(LDFLAGS ) -o $@ test/test_mod.o libhts.a $(LIBS ) -lpthread
552+
537553test/test_realn : test/test_realn.o libhts.a
538554 $(CC ) $(LDFLAGS ) -o $@ test/test_realn.o libhts.a $(LIBS ) -lpthread
539555
@@ -622,12 +638,14 @@ test/fuzz/hts_open_fuzzer.o: test/fuzz/hts_open_fuzzer.c config.h $(htslib_hfile
622638test/fieldarith.o : test/fieldarith.c config.h $(htslib_sam_h )
623639test/hfile.o : test/hfile.c config.h $(htslib_hfile_h ) $(htslib_hts_defs_h ) $(htslib_kstring_h )
624640test/pileup.o : test/pileup.c config.h $(htslib_sam_h ) $(htslib_kstring_h )
641+ test/pileup_mod.o : test/pileup_mod.c config.h $(htslib_sam_h )
625642test/plugins-dlhts.o : test/plugins-dlhts.c config.h
626643test/sam.o : test/sam.c config.h $(htslib_hts_defs_h ) $(htslib_sam_h ) $(htslib_faidx_h ) $(htslib_khash_h ) $(htslib_hts_log_h )
627644test/test_bgzf.o : test/test_bgzf.c config.h $(htslib_bgzf_h ) $(htslib_hfile_h ) $(hfile_internal_h )
628645test/test_expr.o : test/test_expr.c config.h $(htslib_hts_expr_h )
629646test/test_kfunc.o : test/test_kfunc.c config.h $(htslib_kfunc_h )
630647test/test_kstring.o : test/test_kstring.c config.h $(htslib_kstring_h )
648+ test/test_mod.o : test/test_mod.c config.h $(htslib_sam_h )
631649test/test-parse-reg.o : test/test-parse-reg.c config.h $(htslib_hts_h ) $(htslib_sam_h )
632650test/test_realn.o : test/test_realn.c config.h $(htslib_hts_h ) $(htslib_sam_h ) $(htslib_faidx_h )
633651test/test-regidx.o : test/test-regidx.c config.h $(htslib_kstring_h ) $(htslib_regidx_h ) $(htslib_hts_defs_h ) $(textutils_internal_h )
@@ -790,7 +808,7 @@ distdir:
790808force :
791809
792810
793- .PHONY : all check clean distclean distdir force
811+ .PHONY : all check check-untracked clean distclean distdir force
794812.PHONY : install install-pkgconfig installdirs lib-shared lib-static
795813.PHONY : maintainer-check maintainer-clean mostlyclean plugins
796814.PHONY : print-config print-version show-version tags
0 commit comments