* 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.
19 lines
438 B
Makefile
19 lines
438 B
Makefile
AM_CPPFLAGS = -I$(top_builddir)
|
|
AM_CPPFLAGS +=-I$(top_srcdir)/src/include
|
|
AM_CPPFLAGS +=-I$(top_srcdir)/test/utility
|
|
|
|
noinst_PROGRAMS = t
|
|
|
|
t_SOURCES = thread.h file.c fops.c t.c
|
|
|
|
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.
|
|
TESTS = $(noinst_PROGRAMS)
|
|
LOG_COMPILER = $(TEST_WRAPPER)
|
|
|
|
clean-local:
|
|
rm -rf WT_TEST *.core
|