<commit_before>#
# file: CMakeLists.txt
#
# author: Copyright (C) 2018 <NAME> http://www.distortec.com http://www.freddiechopin.info
#
# This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. If a copy of the MPL was not
# distributed with this file, You can obtain one at http://mozilla.org/MPL/2.0/.
#

if(CONFIG_TEST_APPLICATION_ENABLE)

	include(distortos-utilities)

#-----------------------------------------------------------------------------------------------------------------------
# distortosTest application
#-----------------------------------------------------------------------------------------------------------------------

	add_executable(distortosTest.elf
			main.cpp
			OperationCountingType.cpp
			PrioritizedTestCase.cpp
			priorityTestPhases.cpp
			SequenceAsserter.cpp
			TestCaseCommon.cpp
			TestCase.cpp
			TestCaseGroup.cpp
			testCases.cpp
			waitForNextTick.cpp
			wasteTime.cpp)
	set_target_properties(distortosTest.elf PROPERTIES
			CXX_STANDARD 11
			CXX_STANDARD_REQUIRED ON)
	target_include_directories(distortosTest.elf PRIVATE
			${CMAKE_CURRENT_SOURCE_DIR})
	target_link_libraries(distortosTest.elf
			distortos::distortos
			-Xlinker -Map="${CMAKE_CURRENT_BINARY_DIR}/distortosTest.map")

	include(architecture/distortosTest.elf-sources.cmake)
	include(CallOnce/distortosTest.elf-sources.cmake)
	include(ConditionVariable/distortosTest.elf-sources.cmake)
	include(Mutex/distortosTest.elf-sources.cmake)
	include(Queue/distortosTest.elf-sources.cmake)
	include(Semaphore/distortosTest.elf-sources.cmake)
	include(Signals/distortosTest.elf-sources.cmake)
	include(SoftwareTimer/distortosTest.elf-sources.cmake)
	include(Thread/distortosTest.elf-sources.cmake)

	bin(distortosTest.elf distortosTest.bin)<commit_msg>Use distortos::allCxxFlags when building distortosTest.elf<commit_after>#
# file: CMakeLists.txt
#
# author: Copyright (C) 2018 <NAME> http://www.distortec.com http://www.freddiechopin.info
#
# This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. If a copy of the MPL was not
# distributed with this file, You can obtain one at http://mozilla.org/MPL/2.0/.
#

if(CONFIG_TEST_APPLICATION_ENABLE)

	include(distortos-utilities)

#-----------------------------------------------------------------------------------------------------------------------
# distortosTest application
#-----------------------------------------------------------------------------------------------------------------------

	add_executable(distortosTest.elf
			main.cpp
			OperationCountingType.cpp
			PrioritizedTestCase.cpp
			priorityTestPhases.cpp
			SequenceAsserter.cpp
			TestCaseCommon.cpp
			TestCase.cpp
			TestCaseGroup.cpp
			testCases.cpp
			waitForNextTick.cpp
			wasteTime.cpp)
	set_target_properties(distortosTest.elf PROPERTIES
			CXX_STANDARD 11
			CXX_STANDARD_REQUIRED ON)
	target_include_directories(distortosTest.elf PRIVATE
			${CMAKE_CURRENT_SOURCE_DIR})
	target_link_libraries(distortosTest.elf
			distortos::distortos
			distortos::allCxxFlags
			-Xlinker -Map="${CMAKE_CURRENT_BINARY_DIR}/distortosTest.map")

	include(architecture/distortosTest.elf-sources.cmake)
	include(CallOnce/distortosTest.elf-sources.cmake)
	include(ConditionVariable/distortosTest.elf-sources.cmake)
	include(Mutex/distortosTest.elf-sources.cmake)
	include(Queue/distortosTest.elf-sources.cmake)
	include(Semaphore/distortosTest.elf-sources.cmake)
	include(Signals/distortosTest.elf-sources.cmake)
	include(SoftwareTimer/distortosTest.elf-sources.cmake)
	include(Thread/distortosTest.elf-sources.cmake)

	bin(distortosTest.elf distortosTest.bin)
{'fraction_non_alphanumeric': 0.2125378058839703, 'fraction_numerical': 0.005499037668408029, 'mean_word_length': 2.7660455486542443, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 4, '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': '3700004', 'n_tokens_mistral': 1225, 'n_tokens_neox': 1101, 'n_words': 172}