aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHolger Freyther <zecke@selfish.org>2008-12-31 23:25:05 +0000
committerHolger Freyther <zecke@selfish.org>2008-12-31 23:25:05 +0000
commitdbede4e41425901db53920524b4bb8f083d6ee44 (patch)
tree44e4245c80c0ee75796911a3f6756d9957474856
parent6dbca34bd3c39b8c9172466c73fece067c590b04 (diff)
Move the db_test.c to a specific test directory
-rw-r--r--configure.in1
-rw-r--r--src/Makefile.am5
-rw-r--r--tests/Makefile.am2
-rw-r--r--tests/db/Makefile.am8
-rw-r--r--tests/db/db_test.c (renamed from src/db_test.c)0
5 files changed, 11 insertions, 5 deletions
diff --git a/configure.in b/configure.in
index e3e8a3b89..045d7350e 100644
--- a/configure.in
+++ b/configure.in
@@ -25,4 +25,5 @@ AC_OUTPUT(
tests/timer/Makefile
tests/sms/Makefile
tests/gsm0408/Makefile
+ tests/db/Makefile
Makefile)
diff --git a/src/Makefile.am b/src/Makefile.am
index 856293798..62afff2e4 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -1,12 +1,9 @@
INCLUDES = $(all_includes) -I$(top_srcdir)/include
AM_CFLAGS=-Wall
-sbin_PROGRAMS = bsc_hack db_test
+sbin_PROGRAMS = bsc_hack
bsc_hack_SOURCES = bsc_hack.c misdn.c abis_rsl.c abis_nm.c gsm_04_08.c gsm_data.c \
gsm_subscriber.c msgb.c select.c chan_alloc.c timer.c debug.c db.c \
gsm_04_11.c
bsc_hack_LDADD = -ldl -ldbi
-
-db_test_SOURCES = db_test.c db.c
-db_test_LDADD = -ldl -ldbi
diff --git a/tests/Makefile.am b/tests/Makefile.am
index fbfc827a7..2b72c9c11 100644
--- a/tests/Makefile.am
+++ b/tests/Makefile.am
@@ -1 +1 @@
-SUBDIRS = debug timer sms gsm0408
+SUBDIRS = debug timer sms gsm0408 db
diff --git a/tests/db/Makefile.am b/tests/db/Makefile.am
new file mode 100644
index 000000000..936263b7e
--- /dev/null
+++ b/tests/db/Makefile.am
@@ -0,0 +1,8 @@
+INCLUDES = $(all_includes) -I$(top_srcdir)/include
+AM_CFLAGS=-Wall
+
+noinst_PROGRAMS = db_test
+
+db_test_SOURCES = db_test.c $(top_srcdir)/src/db.c
+db_test_LDADD = -ldl -ldbi
+
diff --git a/src/db_test.c b/tests/db/db_test.c
index 760d7ab7a..760d7ab7a 100644
--- a/src/db_test.c
+++ b/tests/db/db_test.c