mirror of
https://github.com/neondatabase/neon.git
synced 2025-12-24 22:59:59 +00:00
## Problem We want to be able to test how our infrastructure reacts on segfaults in Postgres (for example, we collect cores, and get some required logs/metrics, etc) ## Summary of changes - Add `trigger_segfauls` function to `neon_test_utils` to trigger a segfault in Postgres - Add `trigger_panic` function to `neon_test_utils` to trigger SIGABRT (by using `elog(PANIC, ...)) - Fix cleanup logic in regression tests in endpoint crashed
16 lines
308 B
Makefile
16 lines
308 B
Makefile
# pgxs/neon_test_utils/Makefile
|
|
|
|
|
|
MODULE_big = neon_test_utils
|
|
OBJS = \
|
|
$(WIN32RES) \
|
|
neontest.o
|
|
|
|
EXTENSION = neon_test_utils
|
|
DATA = neon_test_utils--1.3.sql
|
|
PGFILEDESC = "neon_test_utils - helpers for neon testing and debugging"
|
|
|
|
PG_CONFIG = pg_config
|
|
PGXS := $(shell $(PG_CONFIG) --pgxs)
|
|
include $(PGXS)
|