-NULL =
+NUL =
BUILT_SOURCES =
CLEANFILES =
+EXTRA_PROGRAMS =
run_unity = cd $(srcdir) && ruby ../../sntp/unity/auto/generate_test_runner.rb
+EXTRA_PROGRAMS += test-networking
+EXTRA_PROGRAMS += test-keyFile
+
check_PROGRAMS = \
- test-networking \
- test-kodDatabase
+ test-kodDatabase \
$(NULL)
-# test-keyFile
if GTEST_AVAILABLE
check_PROGRAMS += tests
else
-EXTRA_PROGRAMS = tests
+EXTRA_PROGRAMS += tests
endif
#if BUILD_SNTP
#check_PROGRAMS += tests
#endif
-base_SOURCES = \
- $(srcdir)/../tests_main.cpp \
+base_SOURCES = \
+ tests_main.cpp \
$(NULL)
tests_SOURCES = \
AM_LDFLAGS = $(LDFLAGS_NTP)
-BUILT_SOURCES += \
- $(srcdir)/networking.c run-networking.c \
- $(srcdir)/kodDatabase.c run-kodDatabase.c \
- $(srcdir)/run-keyFile.c \
+BUILT_SOURCES += \
+ $(srcdir)/run-networking.c \
+ $(srcdir)/run-kodDatabase.c \
+ $(srcdir)/run-keyFile.c \
$(NULL)
-test_networking_CFLAGS = \
- -I$(top_srcdir)/unity \
+test_networking_CFLAGS = \
+ -I$(top_srcdir)/unity \
$(NULL)
-test_networking_LDADD = \
- $(unity_tests_LDADD) \
+test_networking_LDADD = \
+ $(unity_tests_LDADD) \
$(NULL)
test_kodDatabase_CFLAGS = \
test_keyFile_SOURCES = \
keyFile.c \
- run-keyFile.c \
+ run-keyFile.c \
$(NULL)
$(srcdir)/run-networking.c: $(srcdir)/networking.c $(std_unity_list)
+++ /dev/null
-/* AUTOGENERATED FILE. DO NOT EDIT. */
-
-//=======Test Runner Used To Run Each Test Below=====
-#define RUN_TEST(TestFunc, TestLineNum) \
-{ \
- Unity.CurrentTestName = #TestFunc; \
- Unity.CurrentTestLineNumber = TestLineNum; \
- Unity.NumberOfTests++; \
- if (TEST_PROTECT()) \
- { \
- setUp(); \
- TestFunc(); \
- } \
- if (TEST_PROTECT() && !TEST_IS_IGNORED) \
- { \
- tearDown(); \
- } \
- UnityConcludeTest(); \
-}
-
-//=======Automagically Detected Files To Include=====
-#include "unity.h"
-#include <setjmp.h>
-#include <stdio.h>
-
-//=======External Functions This Runner Calls=====
-extern void setUp(void);
-extern void tearDown(void);
-
-
-//=======Test Reset Option=====
-void resetTest()
-{
- tearDown();
- setUp();
-}
-
-char *progname;
-
-
-//=======MAIN=====
-int main(int argc, char *argv[])
-{
- progname = argv[0];
- Unity.TestFile = "keyFile.c";
- UnityBegin("keyFile.c");
-
- return (UnityEnd());
-}
+++ /dev/null
-/* AUTOGENERATED FILE. DO NOT EDIT. */
-
-//=======Test Runner Used To Run Each Test Below=====
-#define RUN_TEST(TestFunc, TestLineNum) \
-{ \
- Unity.CurrentTestName = #TestFunc; \
- Unity.CurrentTestLineNumber = TestLineNum; \
- Unity.NumberOfTests++; \
- if (TEST_PROTECT()) \
- { \
- setUp(); \
- TestFunc(); \
- } \
- if (TEST_PROTECT() && !TEST_IS_IGNORED) \
- { \
- tearDown(); \
- } \
- UnityConcludeTest(); \
-}
-
-//=======Automagically Detected Files To Include=====
-#include "unity.h"
-#include <setjmp.h>
-#include <stdio.h>
-
-//=======External Functions This Runner Calls=====
-extern void setUp(void);
-extern void tearDown(void);
-extern void test_SingleEntryHandling();
-extern void test_MultipleEntryHandling();
-extern void test_NoMatchInSearch();
-extern void test_AddDuplicate();
-extern void test_DeleteEntry();
-
-
-//=======Test Reset Option=====
-void resetTest()
-{
- tearDown();
- setUp();
-}
-
-char *progname;
-
-
-//=======MAIN=====
-int main(int argc, char *argv[])
-{
- progname = argv[0];
- Unity.TestFile = "kodDatabase.c";
- UnityBegin("kodDatabase.c");
- RUN_TEST(test_SingleEntryHandling, 22);
- RUN_TEST(test_MultipleEntryHandling, 35);
- RUN_TEST(test_NoMatchInSearch, 66);
- RUN_TEST(test_AddDuplicate, 79);
- RUN_TEST(test_DeleteEntry, 104);
-
- return (UnityEnd());
-}
+++ /dev/null
-/* AUTOGENERATED FILE. DO NOT EDIT. */
-
-//=======Test Runner Used To Run Each Test Below=====
-#define RUN_TEST(TestFunc, TestLineNum) \
-{ \
- Unity.CurrentTestName = #TestFunc; \
- Unity.CurrentTestLineNumber = TestLineNum; \
- Unity.NumberOfTests++; \
- if (TEST_PROTECT()) \
- { \
- setUp(); \
- TestFunc(); \
- } \
- if (TEST_PROTECT() && !TEST_IS_IGNORED) \
- { \
- tearDown(); \
- } \
- UnityConcludeTest(); \
-}
-
-//=======Automagically Detected Files To Include=====
-#include "unity.h"
-#include <setjmp.h>
-#include <stdio.h>
-
-//=======External Functions This Runner Calls=====
-extern void setUp(void);
-extern void tearDown(void);
-
-
-//=======Test Reset Option=====
-void resetTest()
-{
- tearDown();
- setUp();
-}
-
-char *progname;
-
-
-//=======MAIN=====
-int main(int argc, char *argv[])
-{
- progname = argv[0];
- Unity.TestFile = "networking.c";
- UnityBegin("networking.c");
-
- return (UnityEnd());
-}