Get testing system by projectgus working with master HEAD
This commit is contained in:
parent
2994a566a6
commit
3ec128a0d4
11 changed files with 1155 additions and 3 deletions
19
tests/Makefile
Normal file
19
tests/Makefile
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
PROGRAM=tests
|
||||
|
||||
PROGRAM_SRC_DIR = . ./cases
|
||||
|
||||
# Add unity test framework headers & core source file
|
||||
PROGRAM_INC_DIR = ./unity/src
|
||||
PROGRAM_EXTRA_SRC_FILES = ./unity/src/unity.c
|
||||
|
||||
TESTCASE_SRC_FILES = $(wildcard $(PROGRAM_DIR)cases/*.c)
|
||||
|
||||
# Do not include source files into a static library because when adding this
|
||||
# library with '--whole-archive' linker gives error that archive contains
|
||||
# unknown objects (source files)
|
||||
INCLUDE_SRC_INTO_AR = 0
|
||||
|
||||
# Link every object in the 'program' archive, to pick up constructor functions for test cases
|
||||
EXTRA_LDFLAGS = -Wl,--whole-archive $(BUILD_DIR)program.a -Wl,--no-whole-archive
|
||||
|
||||
include ../common.mk
|
||||
Loading…
Add table
Add a link
Reference in a new issue