<commit_before>## ------- ##
## Check.  ##
## ------- ##

TESTS =
TEST_SUITE_LOG = tests/test-suite.log

# The tests are generated in the src tree, but since it changes often,
# we don't put them in the repository.  That's no reason to forget to
# ship it.
#
# We don't use '*.tex' blindly, as there are some in document-aux.
local_mks =							\
  $(patsubst %.tex,$(srcdir)/tests/%/local.mk,			\
             $(call ls_files,specs/*.tex tutorial/*.tex))
-include $(local_mks)

EXTRA_DIST +=					\
  $(local_mks)					\
  $(TESTS)					\
  tests/test.u

# Generating the test files.
$(srcdir)/tests/%/local.mk: %.tex $(srcdir)/tex2chk
	srcdir=$(srcdir) move_if_change=$(move_if_change) $(srcdir)/tex2chk $<


include $(top_srcdir)/build-aux/check.mk

TEST_LOGS = $(TESTS:.chk=.log)
LAZY_TEST_SUITE = 1
STRICT_TEST_LOGS = $(shell $(LIST_FAILED_TEST_LOGS))
$(TEST_LOGS): $(top_builddir)/all.stamp


# Set URBI_PATH to find URBI.INI.
TESTS_ENVIRONMENT +=				\
  URBI_PATH=$(abs_srcdir)/specs:$$URBI_PATH	\
  srcdir=$(srcdir)				\
  PATH=$(abs_top_builddir)/sdk-remote/src/tests/bin:$$PATH

UCONSOLE_CHECK = $(top_builddir)/tests/bin/uconsole-check
UCONSOLE_CHECKFLAGS = -k2 --no-locations

%.log: %.chk
	@$(am__check_pre) $(UCONSOLE_CHECK) $(UCONSOLE_CHECKFLAGS) $${dir}$< $(am__check_post)
check-clean-local:
	-chmod -R 700 $(TEST_LOGS:.log=.dir) 2>/dev/null
	rm -rf $(TEST_LOGS:.log=.dir)

## ----------- ##
## Buildfarm.  ##
## ----------- ##

.PHONY: check-buildfarm
CHECK_BUILDFARM_FLAGS = AM_COLOR_TESTS=no VERBOSE=1 INSTRUMENT=1
check-buildfarm:
	$(MAKE) $(AM_MAKEFLAGS) check-html $(CHECK_BUILDFARM_FLAGS)

.PHONY check-TESTS: check-clean-semaphores
check-clean-semaphores:
	-$(build_aux_dir)/semaphore-clean.sh<commit_msg>doc: don't instrument during make check.<commit_after>## ------- ##
## Check.  ##
## ------- ##

TESTS =
TEST_SUITE_LOG = tests/test-suite.log

# The tests are generated in the src tree, but since it changes often,
# we don't put them in the repository.  That's no reason to forget to
# ship it.
#
# We don't use '*.tex' blindly, as there are some in document-aux.
local_mks =							\
  $(patsubst %.tex,$(srcdir)/tests/%/local.mk,			\
             $(call ls_files,specs/*.tex tutorial/*.tex))
-include $(local_mks)

EXTRA_DIST +=					\
  $(local_mks)					\
  $(TESTS)					\
  tests/test.u

# Generating the test files.
$(srcdir)/tests/%/local.mk: %.tex $(srcdir)/tex2chk
	srcdir=$(srcdir) move_if_change=$(move_if_change) $(srcdir)/tex2chk $<


include $(top_srcdir)/build-aux/check.mk

TEST_LOGS = $(TESTS:.chk=.log)
LAZY_TEST_SUITE = 1
STRICT_TEST_LOGS = $(shell $(LIST_FAILED_TEST_LOGS))
$(TEST_LOGS): $(top_builddir)/all.stamp


# Set URBI_PATH to find URBI.INI.
TESTS_ENVIRONMENT +=				\
  URBI_PATH=$(abs_srcdir)/specs:$$URBI_PATH	\
  srcdir=$(srcdir)				\
  PATH=$(abs_top_builddir)/sdk-remote/src/tests/bin:$$PATH

UCONSOLE_CHECK = $(top_builddir)/tests/bin/uconsole-check
UCONSOLE_CHECKFLAGS = -k2 --no-locations

%.log: %.chk
	@$(am__check_pre) $(UCONSOLE_CHECK) $(UCONSOLE_CHECKFLAGS) $${dir}$< $(am__check_post)
check-clean-local:
	-chmod -R 700 $(TEST_LOGS:.log=.dir) 2>/dev/null
	rm -rf $(TEST_LOGS:.log=.dir)

## ----------- ##
## Buildfarm.  ##
## ----------- ##

.PHONY: check-buildfarm
CHECK_BUILDFARM_FLAGS = AM_COLOR_TESTS=no VERBOSE=1 # INSTRUMENT=1
check-buildfarm:
	$(MAKE) $(AM_MAKEFLAGS) check-html $(CHECK_BUILDFARM_FLAGS)

.PHONY check-TESTS: check-clean-semaphores
check-clean-semaphores:
	-$(build_aux_dir)/semaphore-clean.sh
{'fraction_non_alphanumeric': 0.18672795173800633, 'fraction_numerical': 0.005745475438092502, 'mean_word_length': 3.7054054054054055, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 5, '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': '3468128', 'n_tokens_mistral': 1486, 'n_tokens_neox': 1416, 'n_words': 252}