pgvector.git / summary / log / commit / refs
commit f77b044303c2047123de68c3dc95178ac2e8f11d
Author: Andrew Kane <andrew@ankane.org>
Date: Fri Dec 09 06:11:49 2022 +0000
Simplified tests
Makefile | 2 +-
test/expected/btree.out | 2 --
test/expected/cast.out | 2 --
test/expected/copy.out | 2 --
test/expected/functions.out | 2 --
test/expected/input.out | 2 --
test/expected/ivfflat_cosine.out | 2 --
test/expected/ivfflat_ip.out | 2 --
test/expected/ivfflat_l2.out | 2 --
test/expected/ivfflat_options.out | 2 --
test/expected/ivfflat_unlogged.out | 2 --
test/sql/btree.sql | 2 --
test/sql/cast.sql | 3 ---
test/sql/copy.sql | 3 ---
test/sql/functions.sql | 3 ---
test/sql/input.sql | 3 ---
test/sql/ivfflat_cosine.sql | 2 --
test/sql/ivfflat_ip.sql | 2 --
test/sql/ivfflat_l2.sql | 2 --
test/sql/ivfflat_options.sql | 2 --
test/sql/ivfflat_unlogged.sql | 2 --
21 files changed, 1 insertion(+), 45 deletions(-)
diff --git a/Makefile b/Makefile
index 8919d065..b6a4f916 100644
--- a/Makefile
+++ b/Makefile
@@ -7,7 +7,7 @@ OBJS = src/ivfbuild.o src/ivfflat.o src/ivfinsert.o src/ivfkmeans.o src/ivfscan.
TESTS = $(wildcard test/sql/*.sql)
REGRESS = $(patsubst test/sql/%.sql,%,$(TESTS))
-REGRESS_OPTS = --inputdir=test
+REGRESS_OPTS = --inputdir=test --load-extension=vector
OPTFLAGS = -march=native
diff --git a/test/expected/btree.out b/test/expected/btree.out
index 4a215ceb..d8b6da56 100644
--- a/test/expected/btree.out
+++ b/test/expected/btree.out
@@ -1,5 +1,3 @@
-SET client_min_messages = warning;
-CREATE EXTENSION IF NOT EXISTS vector;
SET enable_seqscan = off;
CREATE TABLE t (val vector(3));
INSERT INTO t (val) VALUES ('[0,0,0]'), ('[1,2,3]'), ('[1,1,1]'), (NULL);
diff --git a/test/expected/cast.out b/test/expected/cast.out
index fe0b721c..620d717f 100644
--- a/test/expected/cast.out
+++ b/test/expected/cast.out
@@ -1,5 +1,3 @@
-SET client_min_messages = warning;
-CREATE EXTENSION IF NOT EXISTS vector;
SELECT ARRAY[1,2,3]::vector;
array
---------
diff --git a/test/expected/copy.out b/test/expected/copy.out
index 8a631a9e..36d4620d 100644
--- a/test/expected/copy.out
+++ b/test/expected/copy.out
@@ -1,5 +1,3 @@
-SET client_min_messages = warning;
-CREATE EXTENSION IF NOT EXISTS vector;
CREATE TABLE t (val vector(3));
INSERT INTO t (val) VALUES ('[0,0,0]'), ('[1,2,3]'), ('[1,1,1]'), (NULL);
CREATE TABLE t2 (val vector(3));
diff --git a/test/expected/functions.out b/test/expected/functions.out
index 930a60e2..a568e328 100644
--- a/test/expected/functions.out
+++ b/test/expected/functions.out
@@ -1,5 +1,3 @@
-SET client_min_messages = warning;
-CREATE EXTENSION IF NOT EXISTS vector;
SELECT '[1,2,3]'::vector + '[4,5,6]';
?column?
----------
diff --git a/test/expected/input.out b/test/expected/input.out
index 8be45f81..78e0b6de 100644
--- a/test/expected/input.out
+++ b/test/expected/input.out
@@ -1,5 +1,3 @@
-SET client_min_messages = warning;
-CREATE EXTENSION IF NOT EXISTS vector;
SELECT '[1,2,3]'::vector;
vector
---------
diff --git a/test/expected/ivfflat_cosine.out b/test/expected/ivfflat_cosine.out
index 92662ffa..96db5e0b 100644
--- a/test/expected/ivfflat_cosine.out
+++ b/test/expected/ivfflat_cosine.out
@@ -1,5 +1,3 @@
-SET client_min_messages = warning;
-CREATE EXTENSION IF NOT EXISTS vector;
SET enable_seqscan = off;
CREATE TABLE t (val vector(3));
INSERT INTO t (val) VALUES ('[0,0,0]'), ('[1,2,3]'), ('[1,1,1]'), (NULL);
diff --git a/test/expected/ivfflat_ip.out b/test/expected/ivfflat_ip.out
index af953083..d4fc5380 100644
--- a/test/expected/ivfflat_ip.out
+++ b/test/expected/ivfflat_ip.out
@@ -1,5 +1,3 @@
-SET client_min_messages = warning;
-CREATE EXTENSION IF NOT EXISTS vector;
SET enable_seqscan = off;
CREATE TABLE t (val vector(3));
INSERT INTO t (val) VALUES ('[0,0,0]'), ('[1,2,3]'), ('[1,1,1]'), (NULL);
diff --git a/test/expected/ivfflat_l2.out b/test/expected/ivfflat_l2.out
index 449ea734..2e8c6c25 100644
--- a/test/expected/ivfflat_l2.out
+++ b/test/expected/ivfflat_l2.out
@@ -1,5 +1,3 @@
-SET client_min_messages = warning;
-CREATE EXTENSION IF NOT EXISTS vector;
SET enable_seqscan = off;
CREATE TABLE t (val vector(3));
INSERT INTO t (val) VALUES ('[0,0,0]'), ('[1,2,3]'), ('[1,1,1]'), (NULL);
diff --git a/test/expected/ivfflat_options.out b/test/expected/ivfflat_options.out
index b7675a19..405a75d3 100644
--- a/test/expected/ivfflat_options.out
+++ b/test/expected/ivfflat_options.out
@@ -1,5 +1,3 @@
-SET client_min_messages = warning;
-CREATE EXTENSION IF NOT EXISTS vector;
SET enable_seqscan = off;
CREATE TABLE t (val vector(3));
CREATE INDEX ON t USING ivfflat (val) WITH (lists = 0);
diff --git a/test/expected/ivfflat_unlogged.out b/test/expected/ivfflat_unlogged.out
index 59b6e49a..198ea97a 100644
--- a/test/expected/ivfflat_unlogged.out
+++ b/test/expected/ivfflat_unlogged.out
@@ -1,5 +1,3 @@
-SET client_min_messages = warning;
-CREATE EXTENSION IF NOT EXISTS vector;
SET enable_seqscan = off;
CREATE UNLOGGED TABLE t (val vector(3));
INSERT INTO t (val) VALUES ('[0,0,0]'), ('[1,2,3]'), ('[1,1,1]'), (NULL);
diff --git a/test/sql/btree.sql b/test/sql/btree.sql
index 32d0e4b5..232b2881 100644
--- a/test/sql/btree.sql
+++ b/test/sql/btree.sql
@@ -1,5 +1,3 @@
-SET client_min_messages = warning;
-CREATE EXTENSION IF NOT EXISTS vector;
SET enable_seqscan = off;
CREATE TABLE t (val vector(3));
diff --git a/test/sql/cast.sql b/test/sql/cast.sql
index 8fa99dc8..3227b89f 100644
--- a/test/sql/cast.sql
+++ b/test/sql/cast.sql
@@ -1,6 +1,3 @@
-SET client_min_messages = warning;
-CREATE EXTENSION IF NOT EXISTS vector;
-
SELECT ARRAY[1,2,3]::vector;
SELECT ARRAY[1.0,2.0,3.0]::vector;
SELECT ARRAY[1,2,3]::float4[]::vector;
diff --git a/test/sql/copy.sql b/test/sql/copy.sql
index 5bf892fc..28200901 100644
--- a/test/sql/copy.sql
+++ b/test/sql/copy.sql
@@ -1,6 +1,3 @@
-SET client_min_messages = warning;
-CREATE EXTENSION IF NOT EXISTS vector;
-
CREATE TABLE t (val vector(3));
INSERT INTO t (val) VALUES ('[0,0,0]'), ('[1,2,3]'), ('[1,1,1]'), (NULL);
diff --git a/test/sql/functions.sql b/test/sql/functions.sql
index 7f397a21..2a1b6311 100644
--- a/test/sql/functions.sql
+++ b/test/sql/functions.sql
@@ -1,6 +1,3 @@
-SET client_min_messages = warning;
-CREATE EXTENSION IF NOT EXISTS vector;
-
SELECT '[1,2,3]'::vector + '[4,5,6]';
SELECT '[1,2,3]'::vector - '[4,5,6]';
diff --git a/test/sql/input.sql b/test/sql/input.sql
index a21038d5..d21e87dd 100644
--- a/test/sql/input.sql
+++ b/test/sql/input.sql
@@ -1,6 +1,3 @@
-SET client_min_messages = warning;
-CREATE EXTENSION IF NOT EXISTS vector;
-
SELECT '[1,2,3]'::vector;
SELECT '[-1,2,3]'::vector;
SELECT '[1.23456]'::vector;
diff --git a/test/sql/ivfflat_cosine.sql b/test/sql/ivfflat_cosine.sql
index cc4522ac..1fec6cfd 100644
--- a/test/sql/ivfflat_cosine.sql
+++ b/test/sql/ivfflat_cosine.sql
@@ -1,5 +1,3 @@
-SET client_min_messages = warning;
-CREATE EXTENSION IF NOT EXISTS vector;
SET enable_seqscan = off;
CREATE TABLE t (val vector(3));
diff --git a/test/sql/ivfflat_ip.sql b/test/sql/ivfflat_ip.sql
index 342f40f2..46daa4e5 100644
--- a/test/sql/ivfflat_ip.sql
+++ b/test/sql/ivfflat_ip.sql
@@ -1,5 +1,3 @@
-SET client_min_messages = warning;
-CREATE EXTENSION IF NOT EXISTS vector;
SET enable_seqscan = off;
CREATE TABLE t (val vector(3));
diff --git a/test/sql/ivfflat_l2.sql b/test/sql/ivfflat_l2.sql
index f4078a78..9349572a 100644
--- a/test/sql/ivfflat_l2.sql
+++ b/test/sql/ivfflat_l2.sql
@@ -1,5 +1,3 @@
-SET client_min_messages = warning;
-CREATE EXTENSION IF NOT EXISTS vector;
SET enable_seqscan = off;
CREATE TABLE t (val vector(3));
diff --git a/test/sql/ivfflat_options.sql b/test/sql/ivfflat_options.sql
index 1e2c1b0d..d8dc45c6 100644
--- a/test/sql/ivfflat_options.sql
+++ b/test/sql/ivfflat_options.sql
@@ -1,5 +1,3 @@
-SET client_min_messages = warning;
-CREATE EXTENSION IF NOT EXISTS vector;
SET enable_seqscan = off;
CREATE TABLE t (val vector(3));
diff --git a/test/sql/ivfflat_unlogged.sql b/test/sql/ivfflat_unlogged.sql
index 8fa426fb..ca4c6ba9 100644
--- a/test/sql/ivfflat_unlogged.sql
+++ b/test/sql/ivfflat_unlogged.sql
@@ -1,5 +1,3 @@
-SET client_min_messages = warning;
-CREATE EXTENSION IF NOT EXISTS vector;
SET enable_seqscan = off;
CREATE UNLOGGED TABLE t (val vector(3));
[parent: fab7b50c3a37]