<commit_before>#
# TAP.MK --Rules for running unit tests with the TAP framework.
#
# Contents:
# test:    --Run all the tests, and summarise them.
# test[%]: --Run a particular test.
# clean:   --Cleanup after TAP tests.
#
# Remarks:
# This defines some tap-specific targets related to testing,
# and actions that are triggered by the "test" target.
#
PROVE ?= prove
ALL_PROVE_FLAGS = $(TARGET.PROVE_FLAGS) $(LOCAL.PROVE_FLAGS) \
    $(PROJECT.PROVE_FLAGS) $(ARCH.PROVE_FLAGS) $(OS.PROVE_FLAGS) \
    $(PROVE_FLAGS)

%.tap:	%;	./$* > $@
%.tap:	%.t;	perl $*.t > $@

#
# test: --Run all the tests, and summarise them.
#
test:	test-tap
test-tap:
	$(ECHO_TARGET)
	$(PROVE) $(ALL_PROVE_FLAGS) $^

#
# test[%]: --Run a particular test.
#
test[%]:	$(archdir)/%;      $(archdir)/$*
test[%.sh]:	%;      ./$*
<commit_msg>check that TAP prove exists<commit_after>#
# TAP.MK --Rules for running unit tests with the TAP framework.
#
# Contents:
# test:    --Run all the tests, and summarise them.
# test[%]: --Run a particular test.
# clean:   --Cleanup after TAP tests.
#
# Remarks:
# This defines some tap-specific targets related to testing,
# and actions that are triggered by the "test" target.
#
PROVE ?= prove
ALL_PROVE_FLAGS = $(TARGET.PROVE_FLAGS) $(LOCAL.PROVE_FLAGS) \
    $(PROJECT.PROVE_FLAGS) $(ARCH.PROVE_FLAGS) $(OS.PROVE_FLAGS) \
    $(PROVE_FLAGS)

%.tap:	%;	./$* > $@
%.tap:	%.t;	perl $*.t > $@

#
# test: --Run all the tests, and summarise them.
#
test:	test-tap
test-tap: | cmd-exists[$(PROVE)]
	$(ECHO_TARGET)
	$(PROVE) $(ALL_PROVE_FLAGS) $^

#
# test[%]: --Run a particular test.
#
test[%]:	$(archdir)/%;      $(archdir)/$*
test[%.sh]:	%;      ./$*

{'fraction_non_alphanumeric': 0.189873417721519, 'fraction_numerical': 0.0, 'mean_word_length': 3.4148936170212765, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1407239', 'n_tokens_mistral': 653, 'n_tokens_neox': 630, 'n_words': 175}