summaryrefslogtreecommitdiff
path: root/test/manydbs
diff options
context:
space:
mode:
authorAlex Gorrod <alexander.gorrod@mongodb.com>2016-05-23 13:13:54 -0400
committersueloverso <sue@mongodb.com>2016-05-23 13:13:54 -0400
commit9768c2db0baa654ed2953bf7a308bd7f7e2de7d6 (patch)
treea64ee76bef7d02acd5f6812fbfa15d9afc22bf24 /test/manydbs
parent0f7ae730d9ab28aaa51a938075502f639947d26f (diff)
downloadmongo-9768c2db0baa654ed2953bf7a308bd7f7e2de7d6.tar.gz
WT-2554 Add initial C test framework. (#2655)
* WT-2554 Add initial C test framework. With a few sample applications. Need to do further work to cleanup the same applications and share as much code/style as possible. * WT-2554 Fixup build errors. * Fix compiler warning. * Cleanup * Ensure each test runs in a different directory. * Update C test suite names and add copyright. * Move test code into subdirectories. * Replace test_util.i with a real utility library now that we have one. Nothing needs to be an inline function. Mostly cherry picked from 7c18420. * Use WiredTiger getopt in C test suite for platform portability. * Add a header comment to each test case. * Add a C test suite entry auto generator * Style, KNF * Implement review feedback. * Build test/utility library on Windows * Add comment to script. Fix a printf.
Diffstat (limited to 'test/manydbs')
-rw-r--r--test/manydbs/Makefile.am9
-rw-r--r--test/manydbs/manydbs.c2
2 files changed, 7 insertions, 4 deletions
diff --git a/test/manydbs/Makefile.am b/test/manydbs/Makefile.am
index d347868aa4f..2bc47ad7f2e 100644
--- a/test/manydbs/Makefile.am
+++ b/test/manydbs/Makefile.am
@@ -1,9 +1,12 @@
-AM_CPPFLAGS = -I$(top_builddir) -I$(top_srcdir)/src/include \
- -I$(top_srcdir)/test/utility
+AM_CPPFLAGS = -I$(top_builddir)
+AM_CPPFLAGS +=-I$(top_srcdir)/src/include
+AM_CPPFLAGS +=-I$(top_srcdir)/test/utility
noinst_PROGRAMS = t
t_SOURCES = manydbs.c
-t_LDADD = $(top_builddir)/libwiredtiger.la
+
+t_LDADD = $(top_builddir)/test/utility/libtest_util.la
+t_LDADD +=$(top_builddir)/libwiredtiger.la
t_LDFLAGS = -static
# Run this during a "make check" smoke test.
diff --git a/test/manydbs/manydbs.c b/test/manydbs/manydbs.c
index 4ab455f3620..d9639198c34 100644
--- a/test/manydbs/manydbs.c
+++ b/test/manydbs/manydbs.c
@@ -26,7 +26,7 @@
* OTHER DEALINGS IN THE SOFTWARE.
*/
-#include "test_util.i"
+#include "test_util.h"
#define HOME_SIZE 512
#define HOME_BASE "WT_TEST"