From d1abe9536e3f5d87fcf6e98b0b803e9a83cf9846 Mon Sep 17 00:00:00 2001 From: Florian Forster Date: Tue, 28 May 2013 20:57:29 +0200 Subject: [PATCH] Move tests and mocks to src/tests/{,mock/}. --- src/Makefile.am | 18 +++++++++--------- src/{ => tests}/common_test.c | 0 src/{ => tests}/mock/plugin.c | 0 src/{ => tests}/mock/utils_cache.c | 0 src/{ => tests}/mock/utils_time.c | 0 src/{ => tests}/utils_avltree_test.c | 0 src/{ => tests}/utils_vl_lookup_test.c | 0 7 files changed, 9 insertions(+), 9 deletions(-) rename src/{ => tests}/common_test.c (100%) rename src/{ => tests}/mock/plugin.c (100%) rename src/{ => tests}/mock/utils_cache.c (100%) rename src/{ => tests}/mock/utils_time.c (100%) rename src/{ => tests}/utils_avltree_test.c (100%) rename src/{ => tests}/utils_vl_lookup_test.c (100%) diff --git a/src/Makefile.am b/src/Makefile.am index 40114652..cba2eb20 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -1567,28 +1567,28 @@ uninstall-hook: check_PROGRAMS = common_test utils_avltree_test utils_vl_lookup_test -common_test_SOURCES = common_test.c \ +common_test_SOURCES = tests/common_test.c \ common.h common.c \ - mock/plugin.c \ - mock/utils_cache.c \ - mock/utils_time.c + tests/mock/plugin.c \ + tests/mock/utils_cache.c \ + tests/mock/utils_time.c common_test_CPPFLAGS = $(AM_CPPFLAGS) $(LTDLINCL) common_test_LDFLAGS = -export-dynamic common_test_LDADD = -utils_avltree_test_SOURCES = utils_avltree_test.c \ +utils_avltree_test_SOURCES = tests/utils_avltree_test.c \ utils_avltree.c utils_avltree.h utils_avltree_test_CPPFLAGS = $(AM_CPPFLAGS) $(LTDLINCL) utils_avltree_test_LDFLAGS = -export-dynamic utils_avltree_test_LDADD = -utils_vl_lookup_test_SOURCES = utils_vl_lookup_test.c \ +utils_vl_lookup_test_SOURCES = tests/utils_vl_lookup_test.c \ utils_vl_lookup.h utils_vl_lookup.c \ utils_avltree.c utils_avltree.h \ common.c common.h \ - mock/plugin.c \ - mock/utils_cache.c \ - mock/utils_time.c + tests/mock/plugin.c \ + tests/mock/utils_cache.c \ + tests/mock/utils_time.c utils_vl_lookup_test_CPPFLAGS = $(AM_CPPFLAGS) $(LTDLINCL) utils_vl_lookup_test_CFLAGS = $(AM_CFLAGS) utils_vl_lookup_test_LDFLAGS = -export-dynamic diff --git a/src/common_test.c b/src/tests/common_test.c similarity index 100% rename from src/common_test.c rename to src/tests/common_test.c diff --git a/src/mock/plugin.c b/src/tests/mock/plugin.c similarity index 100% rename from src/mock/plugin.c rename to src/tests/mock/plugin.c diff --git a/src/mock/utils_cache.c b/src/tests/mock/utils_cache.c similarity index 100% rename from src/mock/utils_cache.c rename to src/tests/mock/utils_cache.c diff --git a/src/mock/utils_time.c b/src/tests/mock/utils_time.c similarity index 100% rename from src/mock/utils_time.c rename to src/tests/mock/utils_time.c diff --git a/src/utils_avltree_test.c b/src/tests/utils_avltree_test.c similarity index 100% rename from src/utils_avltree_test.c rename to src/tests/utils_avltree_test.c diff --git a/src/utils_vl_lookup_test.c b/src/tests/utils_vl_lookup_test.c similarity index 100% rename from src/utils_vl_lookup_test.c rename to src/tests/utils_vl_lookup_test.c -- 2.30.2