<commit_before># When running test cases on the development computer, don't compile with
# embedded libraries
#
OSTYPE := $(shell uname)

TEST_DIR = tests
TEST_OBJDIR = build/$(TEST_DIR)

TEST_SRC=$(wildcard $(TEST_DIR)/*_tests.cpp)
TESTS=$(patsubst %.cpp,$(TEST_OBJDIR)/%.bin,$(TEST_SRC))
TEST_LIBS = -lcheck -lrt -lpthread

NON_TESTABLE_SRCS = signals.cpp main.cpp hardware_tests_main.cpp

TEST_C_SRCS = $(CROSSPLATFORM_C_SRCS) $(wildcard tests/platform/*.c) \
			  $(LIBS_PATH)/nanopb/pb_decode.c
TEST_CPP_SRCS = $(wildcard tests/platform/*.cpp) $(CROSSPLATFORM_CPP_SRCS)
TEST_CPP_SRCS := $(filter-out $(NON_TESTABLE_SRCS),$(TEST_CPP_SRCS))

TEST_OBJ_FILES = $(TEST_C_SRCS:.c=.o) $(TEST_CPP_SRCS:.cpp=.o)
TEST_OBJS = $(patsubst %,$(TEST_OBJDIR)/%,$(TEST_OBJ_FILES))

GENERATOR = openxc-generate-firmware-code -s ../examples
EXAMPLE_CONFIG_DIR = ../examples
.PRECIOUS: $(TEST_OBJS) $(TESTS:.bin=.o)

define COMPILE_TEST_TEMPLATE
$1: $3
	@echo -n "$$(YELLOW)Compiling $1...$$(COLOR_RESET)"
	@$2 make clean > /dev/null
	#@$2 make -j4 $4 > /dev/null 2>&1
	@$2 make -j4 $4 2>&1
	@echo "$$(GREEN)passed.$$(COLOR_RESET)"
endef

PLATFORMS = FORDBOARD BLUEBOARD CHIPKIT CROSSCHASM_C5_BT CROSSCHASM_C5_CELLULAR CROSSCHASM_C5_BLE<commit_msg>back to normal output level<commit_after># When running test cases on the development computer, don't compile with
# embedded libraries
#
OSTYPE := $(shell uname)

TEST_DIR = tests
TEST_OBJDIR = build/$(TEST_DIR)

TEST_SRC=$(wildcard $(TEST_DIR)/*_tests.cpp)
TESTS=$(patsubst %.cpp,$(TEST_OBJDIR)/%.bin,$(TEST_SRC))
TEST_LIBS = -lcheck -lrt -lpthread

NON_TESTABLE_SRCS = signals.cpp main.cpp hardware_tests_main.cpp

TEST_C_SRCS = $(CROSSPLATFORM_C_SRCS) $(wildcard tests/platform/*.c) \
			  $(LIBS_PATH)/nanopb/pb_decode.c
TEST_CPP_SRCS = $(wildcard tests/platform/*.cpp) $(CROSSPLATFORM_CPP_SRCS)
TEST_CPP_SRCS := $(filter-out $(NON_TESTABLE_SRCS),$(TEST_CPP_SRCS))

TEST_OBJ_FILES = $(TEST_C_SRCS:.c=.o) $(TEST_CPP_SRCS:.cpp=.o)
TEST_OBJS = $(patsubst %,$(TEST_OBJDIR)/%,$(TEST_OBJ_FILES))

GENERATOR = openxc-generate-firmware-code -s ../examples
EXAMPLE_CONFIG_DIR = ../examples
.PRECIOUS: $(TEST_OBJS) $(TESTS:.bin=.o)

define COMPILE_TEST_TEMPLATE
$1: $3
	@echo -n "$$(YELLOW)Compiling $1...$$(COLOR_RESET)"
	@$2 make clean > /dev/null
	@$2 make -j4 $4 > /dev/null 2>&1
	#@$2 make -j4 $4 2>&1
	@echo "$$(GREEN)passed.$$(COLOR_RESET)"
endef

PLATFORMS = FORDBOARD BLUEBOARD CHIPKIT CROSSCHASM_C5_BT CROSSCHASM_C5_CELLULAR CROSSCHASM_C5_BLE
{'fraction_non_alphanumeric': 0.16370967741935483, 'fraction_numerical': 0.013709677419354839, 'mean_word_length': 5.7972602739726025, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 11, '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': '4182705', 'n_tokens_mistral': 1095, 'n_tokens_neox': 1022, 'n_words': 189}