Moved common tests to cmocka

This commit is contained in:
James Booth
2013-12-14 16:07:57 +00:00
parent 107fdd355e
commit 7f7973f9a7
5 changed files with 110 additions and 121 deletions

View File

@@ -80,7 +80,9 @@ test_sources = \
src/config/accounts.c src/config/accounts.h \
src/config/preferences.c src/config/preferences.h \
src/config/theme.c src/config/theme.h \
tests/test_command.c
tests/test_common.c \
tests/test_command.c \
tests/testsuite.c
main_source = src/main.c
@@ -101,6 +103,6 @@ profanity_SOURCES = $(with_git_sources) $(main_source)
TESTS = tests/testsuite
check_PROGRAMS = tests/testsuite
tests_testsuite_SOURCES = $(tests_with_git_sources)
tests_testsuite_LDADD = -lheadunit -lstdc++ -lcmocka
tests_testsuite_LDADD = -lcmocka
man_MANS = docs/profanity.1