AM_CPPFLAGS = \
	-I$(top_srcdir) \
	-I$(top_srcdir)/libgda \
	-I$(top_builddir) \
	$(COREDEPS_CFLAGS) \
	$(COREDEPS_WFLAGS) \
	-DROOT_DIR=\""$(top_srcdir)"\"

TESTS_ENVIRONMENT = GDA_TOP_SRC_DIR="$(abs_top_srcdir)" GDA_TOP_BUILD_DIR="$(abs_top_builddir)"
TESTS = check_parser check_validation check_normalization check_dml_comp check_script check_rewrite_for_default
check_PROGRAMS = check_parser check_validation check_normalization check_dml_comp check_script check_rewrite_for_default check_rewrite_for_null

check_parser_SOURCES = check_parser.c
check_parser_LDADD = \
	$(top_builddir)/libgda/libgda-5.0.la \
	$(COREDEPS_LIBS)

check_validation_SOURCES = check_validation.c
check_validation_LDADD = \
	$(top_builddir)/libgda/libgda-5.0.la \
	$(COREDEPS_LIBS)

check_normalization_SOURCES = check_normalization.c
check_normalization_LDADD = \
	$(top_builddir)/libgda/libgda-5.0.la \
	$(COREDEPS_LIBS)

check_dml_comp_SOURCES = check_dml_comp.c
check_dml_comp_LDADD = \
	$(top_builddir)/libgda/libgda-5.0.la \
	$(COREDEPS_LIBS)

check_script_SOURCES = check_script.c
check_script_LDADD = \
	$(top_builddir)/libgda/libgda-5.0.la \
	$(COREDEPS_LIBS)

check_rewrite_for_default_SOURCES = check_rewrite_for_default.c
check_rewrite_for_default_LDADD = \
	$(top_builddir)/libgda/libgda-5.0.la \
	$(COREDEPS_LIBS)

check_rewrite_for_null_SOURCES = check_rewrite_for_null.c
check_rewrite_for_null_LDADD = \
	$(top_builddir)/libgda/libgda-5.0.la \
	$(COREDEPS_LIBS)


EXTRA_DIST = testdata.xml testvalid.xml testscripts.xml \
	scripts/mysql_employees.sql \
	scripts/mysql_employees_partitioned.sql \
	scripts/piggydb.sql \
	scripts/e-venement.sql
