| Eric Haszlakiewicz | 1e89ba6 | 2012-04-22 10:27:50 -0500 | [diff] [blame] | 1 | |
| 2 | include ../Makefile.am.inc |
| 3 | |
| Alexander Klauer | b1d61d1 | 2012-12-18 18:46:24 +0100 | [diff] [blame] | 4 | LIBJSON_LA=$(top_builddir)/libjson-c.la |
| Eric Haszlakiewicz | 1e89ba6 | 2012-04-22 10:27:50 -0500 | [diff] [blame] | 5 | |
| Eric Haszlakiewicz | 4c7f38e | 2012-04-28 14:14:26 -0500 | [diff] [blame] | 6 | check_PROGRAMS = test1 test1Formatted |
| 7 | check_PROGRAMS += test2 test2Formatted |
| 8 | check_PROGRAMS += test4 |
| Eric Haszlakiewicz | 6988f53 | 2012-07-24 23:27:41 -0500 | [diff] [blame] | 9 | check_PROGRAMS += testReplaceExisting |
| Eric Haszlakiewicz | 4c7f38e | 2012-04-28 14:14:26 -0500 | [diff] [blame] | 10 | check_PROGRAMS += test_parse_int64 |
| 11 | check_PROGRAMS += test_null |
| 12 | check_PROGRAMS += test_cast |
| 13 | check_PROGRAMS += test_parse |
| Eric Haszlakiewicz | 1e89ba6 | 2012-04-22 10:27:50 -0500 | [diff] [blame] | 14 | |
| Eric Haszlakiewicz | b80772a | 2012-04-22 10:48:30 -0500 | [diff] [blame] | 15 | test1_LDADD = $(LIBJSON_LA) |
| Eric Haszlakiewicz | 1e89ba6 | 2012-04-22 10:27:50 -0500 | [diff] [blame] | 16 | |
| Eric Haszlakiewicz | 4c7f38e | 2012-04-28 14:14:26 -0500 | [diff] [blame] | 17 | test1Formatted_LDADD= $(LIBJSON_LA) |
| 18 | test1Formatted_SOURCES = test1.c parse_flags.c |
| 19 | test1Formatted_CPPFLAGS = -DTEST_FORMATTED |
| 20 | |
| Eric Haszlakiewicz | b80772a | 2012-04-22 10:48:30 -0500 | [diff] [blame] | 21 | test2_LDADD = $(LIBJSON_LA) |
| Eric Haszlakiewicz | c1b8891 | 2012-04-22 10:33:41 -0500 | [diff] [blame] | 22 | |
| Eric Haszlakiewicz | 4c7f38e | 2012-04-28 14:14:26 -0500 | [diff] [blame] | 23 | test2Formatted_LDADD= $(LIBJSON_LA) |
| 24 | test2Formatted_SOURCES = test2.c parse_flags.c |
| 25 | test2Formatted_CPPFLAGS = -DTEST_FORMATTED |
| 26 | |
| Eric Haszlakiewicz | b80772a | 2012-04-22 10:48:30 -0500 | [diff] [blame] | 27 | test4_LDADD = $(LIBJSON_LA) |
| Eric Haszlakiewicz | c1b8891 | 2012-04-22 10:33:41 -0500 | [diff] [blame] | 28 | |
| Eric Haszlakiewicz | 6988f53 | 2012-07-24 23:27:41 -0500 | [diff] [blame] | 29 | testReplaceExisting_LDADD = $(LIBJSON_LA) |
| 30 | |
| Eric Haszlakiewicz | b80772a | 2012-04-22 10:48:30 -0500 | [diff] [blame] | 31 | test_parse_int64_LDADD = $(LIBJSON_LA) |
| Eric Haszlakiewicz | c1b8891 | 2012-04-22 10:33:41 -0500 | [diff] [blame] | 32 | |
| Eric Haszlakiewicz | b80772a | 2012-04-22 10:48:30 -0500 | [diff] [blame] | 33 | test_null_LDADD = $(LIBJSON_LA) |
| Eric Haszlakiewicz | c1b8891 | 2012-04-22 10:33:41 -0500 | [diff] [blame] | 34 | |
| Eric Haszlakiewicz | b80772a | 2012-04-22 10:48:30 -0500 | [diff] [blame] | 35 | test_cast_LDADD = $(LIBJSON_LA) |
| Eric Haszlakiewicz | c1b8891 | 2012-04-22 10:33:41 -0500 | [diff] [blame] | 36 | |
| Eric Haszlakiewicz | b80772a | 2012-04-22 10:48:30 -0500 | [diff] [blame] | 37 | test_parse_LDADD = $(LIBJSON_LA) |
| Eric Haszlakiewicz | c1b8891 | 2012-04-22 10:33:41 -0500 | [diff] [blame] | 38 | |
| Eric Haszlakiewicz | 6988f53 | 2012-07-24 23:27:41 -0500 | [diff] [blame] | 39 | TESTS = test1.test test2.test test4.test testReplaceExisting.test parse_int64.test test_null.test test_cast.test test_parse.test |
| Eric Haszlakiewicz | e5c1e87 | 2012-04-22 14:13:01 -0500 | [diff] [blame] | 40 | |
| 41 | TESTS+= test_printbuf.test |
| 42 | check_PROGRAMS+=test_printbuf |
| 43 | test_printbuf_LDADD = $(LIBJSON_LA) |
| 44 | |
| Eric Haszlakiewicz | 38f421a | 2012-09-02 15:21:56 -0500 | [diff] [blame] | 45 | TESTS+= test_set_serializer.test |
| 46 | check_PROGRAMS += test_set_serializer |
| 47 | test_set_serializer_LDADD = $(LIBJSON_LA) |
| 48 | |
| Eric Haszlakiewicz | 1e89ba6 | 2012-04-22 10:27:50 -0500 | [diff] [blame] | 49 | EXTRA_DIST= |
| 50 | EXTRA_DIST += $(TESTS) |
| 51 | |
| 52 | testsubdir=testSubDir |
| 53 | TESTS_ENVIRONMENT = top_builddir=$(top_builddir) |
| 54 | |
| 55 | distclean-local: |
| 56 | -rm -rf $(testsubdir) |