* 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.
49 lines
1.3 KiB
Makefile
49 lines
1.3 KiB
Makefile
AM_CPPFLAGS = -I$(top_builddir)
|
|
AM_CPPFLAGS +=-I$(top_srcdir)/src/include
|
|
AM_CPPFLAGS +=-I$(top_srcdir)/test/utility
|
|
if HAVE_BERKELEY_DB
|
|
AM_CPPFLAGS +=-DHAVE_BERKELEY_DB
|
|
AM_CPPFLAGS +=-DBERKELEY_DB_PATH=\"$(BERKELEY_DB_PATH)\"
|
|
AM_CPPFLAGS +=-I$(BERKELEY_DB_PATH)/include
|
|
endif
|
|
|
|
noinst_PROGRAMS = t
|
|
noinst_SCRIPTS = s_dumpcmp
|
|
t_SOURCES =\
|
|
backup.c bulk.c compact.c config.c lrt.c ops.c rebalance.c \
|
|
salvage.c t.c util.c wts.c
|
|
|
|
if HAVE_BERKELEY_DB
|
|
t_SOURCES += bdb.c
|
|
endif
|
|
|
|
t_LDADD = $(top_builddir)/test/utility/libtest_util.la
|
|
t_LDADD +=$(top_builddir)/libwiredtiger.la
|
|
if HAVE_BERKELEY_DB
|
|
t_LDADD += -L$(BERKELEY_DB_PATH)/lib -ldb
|
|
endif
|
|
t_LDFLAGS = -static
|
|
|
|
#noinst_LTLIBRARIES = lzo_compress.la
|
|
|
|
# libtool hack: noinst_LTLIBRARIES turns off building shared libraries as well
|
|
# as installation, it will only build static libraries. As far as I can tell,
|
|
# the "approved" libtool way to turn them back on is by adding -rpath.
|
|
#lzo_compress_la_SOURCES = lzo_compress.c
|
|
#lzo_compress_la_LIBADD = -llzo2 -lm
|
|
#lzo_compress_la_LDFLAGS = -avoid-version -module -rpath /nowhere
|
|
|
|
s_dumpcmp: $(srcdir)/s_dumpcmp.sh
|
|
cp $(srcdir)/s_dumpcmp.sh $@
|
|
chmod +x $@
|
|
|
|
backup:
|
|
rm -rf BACKUP && cp -p -r RUNDIR BACKUP
|
|
refresh:
|
|
rm -rf RUNDIR && cp -p -r BACKUP RUNDIR
|
|
|
|
TESTS = smoke.sh
|
|
|
|
clean-local:
|
|
rm -rf RUNDIR s_dumpcmp *.core
|