<commit_before># -----------------------------------------------------------------------------
# Examples of use:
#
# 	make		-- run all the tests in the current directory
# 	make verbose	-- as make test, but up the verbosity
# 	make accept	-- run the tests, accepting the current output
#
# The following variables may be set on the make command line:
#
#	TEST		-- specific test to run
#	TESTS		-- specific tests to run (same as $TEST really)
#	EXTRA_HC_OPTS	-- extra flags to send to the Haskell compiler
#	EXTRA_RUNTEST_OPTS -- extra flags to give the test driver
#	CONFIG		-- use a different configuration file
#
# -----------------------------------------------------------------------------

ifeq "$(PYTHON)" ""
$(error Python must be installed in order to use the testsuite)
endif

# ghastly hack, because the driver requires that $tool be an absolute path name.
GHC_INPLACE_ABS	= $(FPTOOLS_TOP_ABS)/ghc/compiler/ghc-inplace

EXTRA_HC_OPTS += -D$(HostPlatform_CPP)
  # ideally TargetPlatform_CPP, but that doesn't exist; they're always the same anyway
RUNTESTS     = $(TOP)/driver/runtests.py
CONFIG       = $(TOP)/config/ghc

# can be overriden from the command line
TEST_HC = $(GHC_INPLACE_ABS)

RUNTEST_OPTS = \
	--config=$(CONFIG) \
	-e config.compiler=\"$(TEST_HC)\" \
	-e config.compiler_always_flags.append"(\"$(EXTRA_HC_OPTS)\")" \
	-e config.platform=\"$(TARGETPLATFORM)\" \
	$(EXTRA_RUNTEST_OPTS)

ifeq "$(filter p, $(GhcLibWays))" "p"
RUNTEST_OPTS += -e config.compile_ways.append"(\"prof\")"
RUNTEST_OPTS += -e config.run_ways.append"(\"prof\")"
endif

TESTS	     = 
TEST	     = 

all :: test

test:
	$(PYTHON) $(RUNTESTS) $(RUNTEST_OPTS) \<commit_msg>[project @ 2002-08-26 09:12:21 by simonmar] enable the 'optasm' way iff GhcWithNativeCodeGen=YES  (should eliminate all the bogus test failures on Alpha).<commit_after># -----------------------------------------------------------------------------
# Examples of use:
#
# 	make		-- run all the tests in the current directory
# 	make verbose	-- as make test, but up the verbosity
# 	make accept	-- run the tests, accepting the current output
#
# The following variables may be set on the make command line:
#
#	TEST		-- specific test to run
#	TESTS		-- specific tests to run (same as $TEST really)
#	EXTRA_HC_OPTS	-- extra flags to send to the Haskell compiler
#	EXTRA_RUNTEST_OPTS -- extra flags to give the test driver
#	CONFIG		-- use a different configuration file
#
# -----------------------------------------------------------------------------

ifeq "$(PYTHON)" ""
$(error Python must be installed in order to use the testsuite)
endif

# ghastly hack, because the driver requires that $tool be an absolute path name.
GHC_INPLACE_ABS	= $(FPTOOLS_TOP_ABS)/ghc/compiler/ghc-inplace

EXTRA_HC_OPTS += -D$(HostPlatform_CPP)
  # ideally TargetPlatform_CPP, but that doesn't exist; they're always the same anyway
RUNTESTS     = $(TOP)/driver/runtests.py
CONFIG       = $(TOP)/config/ghc

# can be overriden from the command line
TEST_HC = $(GHC_INPLACE_ABS)

RUNTEST_OPTS = \
	--config=$(CONFIG) \
	-e config.compiler=\"$(TEST_HC)\" \
	-e config.compiler_always_flags.append"(\"$(EXTRA_HC_OPTS)\")" \
	-e config.platform=\"$(TARGETPLATFORM)\" \
	$(EXTRA_RUNTEST_OPTS)

ifeq "$(GhcWithNativeCodeGen)" "YES"
RUNTEST_OPTS += -e config.compile_ways.append"(\"optasm\")"
RUNTEST_OPTS += -e config.run_ways.append"(\"optasm\")"
endif

ifeq "$(filter p, $(GhcLibWays))" "p"
RUNTEST_OPTS += -e config.compile_ways.append"(\"prof\")"
RUNTEST_OPTS += -e config.run_ways.append"(\"prof\")"
endif

TESTS	     = 
TEST	     = 

all :: test

test:
	$(PYTHON) $(RUNTESTS) $(RUNTEST_OPTS) \
{'fraction_non_alphanumeric': 0.2037901675363911, 'fraction_numerical': 0.0038450975006866246, 'mean_word_length': 2.716326530612245, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '4186805', 'n_tokens_mistral': 1230, 'n_tokens_neox': 1197, 'n_words': 355}