<commit_before># A Makefile fragment for running tests with BATS
#
# Author: <NAME> <<EMAIL>>
# Created: 2015-07-09

# some default locations
TEST_ROOT = test
TEST_LIST_COMMAND = $(TEST_ROOT)/enumerate-tests.sh
BATS_ROOT = $(TEST_ROOT)/bats
export TEST_ROOT

.PHONY: test test-build test-list
test-list:
	@echo "make test \\"
	@$(TEST_LIST_COMMAND) | sed 's/$$/ \\/; s/^/   ONLY+=/p; s/^   ONLY+=/ EXCEPT+=/'
	@echo " #"

test: test-build
test-build:

test: $(BATS_ROOT)/bin/bats
$(BATS_ROOT)/bin/bats:
	git submodule update --init $(BATS_ROOT)
# One can fine-tune the list of tests by setting environment variables
# TEST_ONLY and TEST_EXCEPT, or passing the same glob patterns as Make
# arguments ONLY and EXCEPT, e.g.:
#   $ make test ONLY+=$(TEST_ROOT)/foo/*.bats EXCEPT+=$(TEST_ROOT)/*/unit_tests.bats
#   $ TEST_ONLY=$(TEST_ROOT)/foo/*.bats  make test EXCEPT+=$(TEST_ROOT)/*/unit_tests.bats
#   $ TEST_ONLY=$(TEST_ROOT)/foo/*.bats TEST_EXCEPT=$(TEST_ROOT)/*/unit_tests.bats   make test
TEST_ONLY ?= $(shell $(TEST_LIST_COMMAND))
TEST_EXCEPT ?=<commit_msg>Suppresses the new warning from initial `make test-build`<commit_after># A Makefile fragment for running tests with BATS
#
# Author: <NAME> <<EMAIL>>
# Created: 2015-07-09

# some default locations
TEST_ROOT = test
TEST_LIST_COMMAND = $(TEST_ROOT)/enumerate-tests.sh
BATS_ROOT = $(TEST_ROOT)/bats
export TEST_ROOT

.PHONY: test test-build test-list
test-list:
	@echo "make test \\"
	@$(TEST_LIST_COMMAND) | sed 's/$$/ \\/; s/^/   ONLY+=/p; s/^   ONLY+=/ EXCEPT+=/'
	@echo " #"

test: test-build
test-build:

test: $(BATS_ROOT)/bin/bats
$(BATS_ROOT)/bin/bats:
	git submodule update --init $(BATS_ROOT)
# One can fine-tune the list of tests by setting environment variables
# TEST_ONLY and TEST_EXCEPT, or passing the same glob patterns as Make
# arguments ONLY and EXCEPT, e.g.:
#   $ make test ONLY+=$(TEST_ROOT)/foo/*.bats EXCEPT+=$(TEST_ROOT)/*/unit_tests.bats
#   $ TEST_ONLY=$(TEST_ROOT)/foo/*.bats  make test EXCEPT+=$(TEST_ROOT)/*/unit_tests.bats
#   $ TEST_ONLY=$(TEST_ROOT)/foo/*.bats TEST_EXCEPT=$(TEST_ROOT)/*/unit_tests.bats   make test
TEST_ONLY ?= $(shell mkdir -p $(STAGE_DIR) && $(TEST_LIST_COMMAND))
TEST_EXCEPT ?=
{'fraction_non_alphanumeric': 0.16202647193062528, 'fraction_numerical': 0.00730260155180283, 'mean_word_length': 4.5353535353535355, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, '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': '7267384', 'n_tokens_mistral': 832, 'n_tokens_neox': 801, 'n_words': 202}