xref: /freebsd/contrib/libucl/tests/Makefile.am (revision 3dcf5eb70598c88befd62f61f81e283e568ec519)
197bd480fSBaptiste DaroussinEXTRA_DIST = $(TESTS) basic schema generate.res rcl_test.json.xz
297bd480fSBaptiste Daroussin
397bd480fSBaptiste DaroussinTESTS = basic.test \
497bd480fSBaptiste Daroussin		generate.test \
597bd480fSBaptiste Daroussin		schema.test \
6*3dcf5eb7SBaptiste Daroussin		speed.test \
7*3dcf5eb7SBaptiste Daroussin		streamline.test
897bd480fSBaptiste DaroussinTESTS_ENVIRONMENT = $(SH) \
997bd480fSBaptiste Daroussin			TEST_DIR=$(top_srcdir)/tests \
1097bd480fSBaptiste Daroussin			TEST_OUT_DIR=$(top_builddir)/tests \
1197bd480fSBaptiste Daroussin			TEST_BINARY_DIR=$(top_builddir)/tests
1297bd480fSBaptiste Daroussin
1397bd480fSBaptiste Daroussincommon_test_cflags = -I$(top_srcdir)/include \
1497bd480fSBaptiste Daroussin					-I$(top_srcdir)/src \
1597bd480fSBaptiste Daroussin					-I$(top_srcdir)/uthash
1697bd480fSBaptiste Daroussincommon_test_ldadd = $(top_builddir)/src/libucl.la
1797bd480fSBaptiste Daroussin
1897bd480fSBaptiste Daroussintest_basic_SOURCES = test_basic.c
1997bd480fSBaptiste Daroussintest_basic_LDADD = $(common_test_ldadd)
2097bd480fSBaptiste Daroussintest_basic_CFLAGS = $(common_test_cflags)
2197bd480fSBaptiste Daroussin
2297bd480fSBaptiste Daroussintest_speed_SOURCES = test_speed.c
2397bd480fSBaptiste Daroussintest_speed_LDADD = $(common_test_ldadd)
2497bd480fSBaptiste Daroussintest_speed_CFLAGS = $(common_test_cflags)
2597bd480fSBaptiste Daroussin
2697bd480fSBaptiste Daroussintest_generate_SOURCES = test_generate.c
2797bd480fSBaptiste Daroussintest_generate_LDADD = $(common_test_ldadd)
2897bd480fSBaptiste Daroussintest_generate_CFLAGS = $(common_test_cflags)
2997bd480fSBaptiste Daroussin
3097bd480fSBaptiste Daroussintest_schema_SOURCES = test_schema.c
3197bd480fSBaptiste Daroussintest_schema_LDADD = $(common_test_ldadd)
3297bd480fSBaptiste Daroussintest_schema_CFLAGS = $(common_test_cflags)
3397bd480fSBaptiste Daroussin
34*3dcf5eb7SBaptiste Daroussintest_streamline_SOURCES = test_streamline.c
35*3dcf5eb7SBaptiste Daroussintest_streamline_LDADD = $(common_test_ldadd)
36*3dcf5eb7SBaptiste Daroussintest_streamline_CFLAGS = $(common_test_cflags)
37*3dcf5eb7SBaptiste Daroussin
38*3dcf5eb7SBaptiste Daroussincheck_PROGRAMS = test_basic test_speed test_generate test_schema test_streamline