added unit tests for several util functions

This commit is contained in:
prozessorkern
2019-07-27 16:31:19 +02:00
parent f65f86d8e2
commit d65765371b
11 changed files with 409 additions and 6 deletions

View File

@@ -20,10 +20,16 @@ SOURCES := src/shellmatta.c \
INCLUDES := api .
TEST_SOURCES := test/test_main.cpp \
test/shellmatta_utils/itoa.cpp \
test/shellmatta_utils/clearInput.cpp \
test/shellmatta_utils/insertChars.cpp
TEST_SOURCES := test/test_main.cpp \
test/shellmatta_utils/test_utils_writeEcho.cpp \
test/shellmatta_utils/test_utils_shellItoa.cpp \
test/shellmatta_utils/test_utils_saveCursorPos.cpp \
test/shellmatta_utils/test_utils_restoreCursorPos.cpp \
test/shellmatta_utils/test_utils_eraseLine.cpp \
test/shellmatta_utils/test_utils_rewindCursor.cpp \
test/shellmatta_utils/test_utils_forwardCursor.cpp \
test/shellmatta_utils/test_utils_clearInput.cpp \
test/shellmatta_utils/test_utils_insertChars.cpp
TEST_CPPOBJ := $(patsubst %.cpp,$(OBJ_DIR)%.o,$(TEST_SOURCES))