Added identifier to recognize the test output file

This commit is contained in:
Daniele Varrazzo 2017-04-25 15:26:35 +01:00
parent 8bdba99642
commit a7e0b6748e
4 changed files with 56 additions and 0 deletions

View File

@ -1,3 +1,18 @@
-- Test output file identifier.
SELECT CASE
WHEN split_part(version(), ' ', 2) ~ '^(10)'
THEN 'repack_2.out'
WHEN split_part(version(), ' ', 2) ~ '^(9\.6|9\.5)'
THEN 'repack.out'
WHEN split_part(version(), ' ', 2) ~ '^(9\.4|9\.3|9\.2|9\.1)'
THEN 'repack_1.out'
ELSE version()
END AS testfile;
testfile
------------
repack.out
(1 row)
SET client_min_messages = warning;
--
-- create table.

View File

@ -1,3 +1,18 @@
-- Test output file identifier.
SELECT CASE
WHEN split_part(version(), ' ', 2) ~ '^(10)'
THEN 'repack_2.out'
WHEN split_part(version(), ' ', 2) ~ '^(9\.6|9\.5)'
THEN 'repack.out'
WHEN split_part(version(), ' ', 2) ~ '^(9\.4|9\.3|9\.2|9\.1)'
THEN 'repack_1.out'
ELSE version()
END AS testfile;
testfile
--------------
repack_1.out
(1 row)
SET client_min_messages = warning;
--
-- create table.

View File

@ -1,3 +1,18 @@
-- Test output file identifier.
SELECT CASE
WHEN split_part(version(), ' ', 2) ~ '^(10)'
THEN 'repack_2.out'
WHEN split_part(version(), ' ', 2) ~ '^(9\.6|9\.5)'
THEN 'repack.out'
WHEN split_part(version(), ' ', 2) ~ '^(9\.4|9\.3|9\.2|9\.1)'
THEN 'repack_1.out'
ELSE version()
END AS testfile;
testfile
--------------
repack_2.out
(1 row)
SET client_min_messages = warning;
--
-- create table.

View File

@ -1,3 +1,14 @@
-- Test output file identifier.
SELECT CASE
WHEN split_part(version(), ' ', 2) ~ '^(10)'
THEN 'repack_2.out'
WHEN split_part(version(), ' ', 2) ~ '^(9\.6|9\.5)'
THEN 'repack.out'
WHEN split_part(version(), ' ', 2) ~ '^(9\.4|9\.3|9\.2|9\.1)'
THEN 'repack_1.out'
ELSE version()
END AS testfile;
SET client_min_messages = warning;
--
-- create table.