Skip to content

Commit 9406099

Browse files
committed
Regression tests.
1 parent 8cfaa57 commit 9406099

20 files changed

+494
-6
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
*.so
22
*.o
3+
*.hex
34
regression.diffs
45
regression.out
56
results

Makefile

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,26 @@ MODULE_big = imgsmlr
44
OBJS = imgsmlr.o imgsmlr_idx.o
55
EXTENSION = imgsmlr
66
DATA = imgsmlr--1.0.sql
7-
#PG_CPPFLAGS = -lgd
87
SHLIB_LINK = -lgd
8+
REGRESS = imgsmlr
9+
EXTRA_CLEAN = data/*.hex
910

11+
12+
ifdef USE_PGXS
1013
PG_CONFIG = pg_config
1114
PGXS := $(shell $(PG_CONFIG) --pgxs)
1215
include $(PGXS)
16+
else
17+
subdir = contrib/imgsmlr
18+
top_builddir = ../..
19+
include $(top_builddir)/src/Makefile.global
20+
include $(top_srcdir)/contrib/contrib-global.mk
21+
endif
22+
23+
installcheck: data/1.jpg.hex data/2.png.hex data/3.gif.hex data/4.jpg.hex data/5.png.hex data/6.gif.hex data/7.jpg.hex data/8.png.hex data/9.gif.hex data/10.jpg.hex data/11.png.hex data/12.gif.hex
24+
25+
data/%.hex: data/%
26+
xxd -p $< > $@
1327

28+
maintainer-clean:
29+
rm -f data/*.hex

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ Typical installation procedure may look like this:
4444
$ cd imgsmlr
4545
$ make USE_PGXS=1
4646
$ sudo make USE_PGXS=1 install
47+
$ make USE_PGXS=1 installcheck
4748
$ psql DB -c "CREATE EXTENSION imgsmlr;"
4849

4950
Usage

data/1.jpg

20.7 KB
Loading

data/10.jpg

5.99 KB
Loading

data/11.png

11.9 KB
Loading

data/12.gif

20.1 KB
Loading

data/2.png

27 KB
Loading

data/3.gif

15.2 KB
Loading

data/4.jpg

5.57 KB
Loading

data/5.png

30.8 KB
Loading

data/6.gif

9.96 KB
Loading

data/7.jpg

12.3 KB
Loading

data/8.png

30.4 KB
Loading

data/9.gif

13 KB
Loading

0 commit comments

Comments
 (0)