]> granicus.if.org Git - json-c/commitdiff
Simplify the tests Makefile to avoid repeating the name of each test.
authorEric Haszlakiewicz <erh+git@nimenees.com>
Sun, 23 Mar 2014 01:40:37 +0000 (21:40 -0400)
committerEric Haszlakiewicz <erh+git@nimenees.com>
Sun, 23 Mar 2014 01:40:37 +0000 (21:40 -0400)
tests/Makefile.am
tests/test_parse_int64.test [moved from tests/parse_int64.test with 100% similarity]

index 70f1fc144f02b32f9f0793d3cd77b0d929eb5c97..a388eeb993872da36b19985b2d4194bf4820c483 100644 (file)
@@ -4,31 +4,33 @@ LDADD= $(LIBJSON_LA)
 
 LIBJSON_LA=$(top_builddir)/libjson-c.la
 
-check_PROGRAMS = test1 test1Formatted 
-check_PROGRAMS += test2 test2Formatted
-check_PROGRAMS += test4
-check_PROGRAMS += testReplaceExisting
-check_PROGRAMS += test_parse_int64
-check_PROGRAMS += test_null
-check_PROGRAMS += test_cast
-check_PROGRAMS += test_parse
-check_PROGRAMS += test_locale
-check_PROGRAMS += test_charcase
+TESTS=
+TESTS+= test1.test
+TESTS+= test2.test
+TESTS+= test4.test
+TESTS+= testReplaceExisting.test
+TESTS+= test_parse_int64.test
+TESTS+= test_null.test
+TESTS+= test_cast.test
+TESTS+= test_parse.test
+TESTS+= test_locale.test
+TESTS+= test_charcase.test
+TESTS+= test_printbuf.test
+TESTS+= test_set_serializer.test
 
+check_PROGRAMS=
+check_PROGRAMS += $(TESTS:.test=)
+
+# Note: handled by test1.test
+check_PROGRAMS += test1Formatted 
 test1Formatted_SOURCES = test1.c parse_flags.c
 test1Formatted_CPPFLAGS = -DTEST_FORMATTED
 
+# Note: handled by test2.test
+check_PROGRAMS += test2Formatted
 test2Formatted_SOURCES = test2.c parse_flags.c
 test2Formatted_CPPFLAGS = -DTEST_FORMATTED
 
-TESTS = test1.test test2.test test4.test testReplaceExisting.test parse_int64.test test_null.test test_cast.test test_parse.test test_locale.test test_charcase.test
-
-TESTS+= test_printbuf.test
-check_PROGRAMS+=test_printbuf
-
-TESTS+= test_set_serializer.test
-check_PROGRAMS += test_set_serializer
-
 EXTRA_DIST=
 EXTRA_DIST += $(TESTS)