~ubuntu-branches/ubuntu/trusty/psqlodbc/trusty-proposed

« back to all changes in this revision

Viewing changes to test/Makefile

  • Committer: Package Import Robot
  • Author(s): Martin Pitt
  • Date: 2013-10-24 07:21:55 UTC
  • mfrom: (16.1.2 sid)
  • Revision ID: package-import@ubuntu.com-20131024072155-xlf5odyk3iblcd51
Tags: 1:09.02.0100-2ubuntu1
* Merge with Debian unstable. Remaining Ubuntu changes:
  - debian/tests: Disable iodbc test and dependency, as in Ubuntu iodbc and
    unixodbc are not installable in parallel, and iodbc is obsolete and
    should be removed at some point.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
TESTS = connect stmthandles select getresult prepare params notice \
 
2
        arraybinding insertreturning dataatexecution boolsaschar cvtnulldate \
 
3
        alter
 
4
 
 
5
TESTBINS = $(patsubst %,src/%-test, $(TESTS))
 
6
TESTSQLS = $(patsubst %,sql/%.sql, $(TESTS))
 
7
 
 
8
REGRESS = sampletables $(TESTS)
 
9
 
 
10
all: $(TESTBINS) $(TESTSQLS)
 
11
 
 
12
installcheck: all
 
13
 
 
14
override CFLAGS += -Wno-pointer-sign
 
15
 
 
16
src/common.o: src/common.c
 
17
 
 
18
# For each test file, compile the .c file, and create a .sql file that
 
19
# when executed from psql, just runs the binary.
 
20
src/%-test sql/%.sql: src/%-test.c src/common.o
 
21
        $(CC) $(CFLAGS) src/$*-test.c src/common.o -o src/$*-test -lodbc
 
22
        echo "\! ./src/$*-test" > sql/$*.sql
 
23
 
 
24
EXTRA_CLEAN = $(TESTBINS) $(TESTSQLS)
 
25
 
 
26
REGRESS_OPTS = --launcher=./launcher
 
27
 
 
28
PG_CONFIG = pg_config
 
29
PGXS := $(shell $(PG_CONFIG) --pgxs)
 
30
include $(PGXS)
 
31