@@ -63,6 +63,9 @@ ifeq ($(VALGRIND),1)
6363 override CFLAGS += -DUSE_VALGRIND
6464 override TEST_CFLAGS += -DUSE_VALGRIND
6565endif
66+ ifeq ($(TEST_FAIL_FAST ) ,1)
67+ override TEST_CFLAGS += -DTEST_FAIL_FAST=1
68+ endif
6669
6770CLEANLIBS = $(ARLIB )
6871CLEANOBJS = $(OBJ_FILES )
@@ -237,7 +240,7 @@ examples/normalize_error: examples/normalize_error.c $(ARLIB)
237240examples/simple_plpgsql : examples/simple_plpgsql.c $(ARLIB )
238241 $(CC ) $(TEST_CFLAGS ) -o $@ -g examples/simple_plpgsql.c $(ARLIB ) $(TEST_LDFLAGS )
239242
240- TESTS = test/complex test/concurrency test/deparse test/fingerprint test/fingerprint_opts test/normalize test/normalize_utility test/parse test/parse_opts test/parse_protobuf test/parse_protobuf_opts test/parse_plpgsql test/scan test/split test/summary
243+ TESTS = test/complex test/concurrency test/deparse test/fingerprint test/fingerprint_opts test/normalize test/normalize_utility test/parse test/parse_opts test/parse_protobuf test/parse_protobuf_opts test/parse_plpgsql test/scan test/split test/summary test/summary_truncate
241244test : $(TESTS )
242245ifeq ($(VALGRIND ) ,1)
243246 $(VALGRIND_MEMCHECK) test/complex || (cat test/valgrind.log && false)
@@ -254,6 +257,7 @@ ifeq ($(VALGRIND),1)
254257 $(VALGRIND_MEMCHECK) test/scan || (cat test/valgrind.log && false)
255258 $(VALGRIND_MEMCHECK) test/split || (cat test/valgrind.log && false)
256259 $(VALGRIND_MEMCHECK) test/summary || (cat test/valgrind.log && false)
260+ $(VALGRIND_MEMCHECK) test/summary_truncate || (cat test/valgrind.log && false)
257261 # Output-based tests
258262 $(VALGRIND_MEMCHECK) test/parse_plpgsql || (cat test/valgrind.log && false)
259263 diff -Naur test/plpgsql_samples.expected.json test/plpgsql_samples.actual.json
272276 test/scan
273277 test/split
274278 test/summary
279+ test/summary_truncate
275280 # Output-based tests
276281 test/parse_plpgsql
277282 diff -Naur test/plpgsql_samples.expected.json test/plpgsql_samples.actual.json
@@ -308,6 +313,10 @@ test/summary: test/framework/main.c test/summary.c test/summary_tests.c test/sum
308313 # We have "-Isrc/postgres/include" because this test uses pg_query_summary_direct
309314 $(CC ) $(TEST_CFLAGS ) -o $@ -Isrc/postgres/include test/framework/main.c test/summary.c $(ARLIB ) $(TEST_LDFLAGS )
310315
316+ test/summary_truncate : test/framework/main.c test/summary_truncate.c $(ARLIB )
317+ # We have "-Isrc/postgres/include" because this test uses pg_query_summary_direct
318+ $(CC ) $(TEST_CFLAGS ) -o $@ -Isrc/postgres/include test/framework/main.c test/summary_truncate.c $(ARLIB ) $(TEST_LDFLAGS )
319+
311320test/parse_opts : test/parse_opts.c test/parse_opts_tests.c $(ARLIB )
312321 $(CC ) $(TEST_CFLAGS ) -o $@ test/parse_opts.c $(ARLIB ) $(TEST_LDFLAGS )
313322
0 commit comments