mirror of
https://github.com/percona/pg_stat_monitor.git
synced 2026-02-04 05:56:21 +00:00
Merge pull request #76 from mu-samoylov/PG-184
PG-184: New test case to test the version.
This commit is contained in:
2
Makefile
2
Makefile
@@ -11,7 +11,7 @@ PGFILEDESC = "pg_stat_monitor - execution statistics of SQL statements"
|
||||
LDFLAGS_SL += $(filter -lm, $(LIBS))
|
||||
|
||||
REGRESS_OPTS = --temp-config $(top_srcdir)/contrib/pg_stat_monitor/pg_stat_monitor.conf --inputdir=regression
|
||||
REGRESS = guc relations basic pg_stat_monitor
|
||||
REGRESS = guc relations basic pg_stat_monitor test_version
|
||||
|
||||
# Disabled because these tests require "shared_preload_libraries=pg_stat_statements",
|
||||
# which typical installcheck users do not have (e.g. buildfarm clients).
|
||||
|
||||
8
regression/expected/test_version.out
Normal file
8
regression/expected/test_version.out
Normal file
@@ -0,0 +1,8 @@
|
||||
CREATE EXTENSION pg_stat_monitor;
|
||||
SELECT pg_stat_monitor_version();
|
||||
pg_stat_monitor_version
|
||||
-------------------------
|
||||
0.7.0
|
||||
(1 row)
|
||||
|
||||
DROP EXTENSION pg_stat_monitor;
|
||||
3
regression/sql/test_version.sql
Normal file
3
regression/sql/test_version.sql
Normal file
@@ -0,0 +1,3 @@
|
||||
CREATE EXTENSION pg_stat_monitor;
|
||||
SELECT pg_stat_monitor_version();
|
||||
DROP EXTENSION pg_stat_monitor;
|
||||
Reference in New Issue
Block a user