Исходный код СУБД RuDB — свободной СУБД с открытым исходным кодом на базе PostgreSQL
rudb
2 days ago bd039d1e92813358c5c5a1e346b49074baf513f2
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
#
# Makefile for isolation tests
#
 
PGFILEDESC = "pg_isolation_regress/isolationtester - multi-client test driver"
PGAPPICON = win32
 
subdir = src/test/isolation
top_builddir = ../../..
include $(top_builddir)/src/Makefile.global
 
override CPPFLAGS := -I. -I$(srcdir) -I$(libpq_srcdir) \
    -I$(srcdir)/../regress $(CPPFLAGS)
 
OBJS = \
    $(WIN32RES) \
    isolationtester.o \
    specparse.o \
    specscanner.o
 
all: isolationtester$(X) pg_isolation_regress$(X)
 
install: all installdirs
    $(INSTALL_PROGRAM) pg_isolation_regress$(X) '$(DESTDIR)$(pgxsdir)/$(subdir)/pg_isolation_regress$(X)'
    $(INSTALL_PROGRAM) isolationtester$(X) '$(DESTDIR)$(pgxsdir)/$(subdir)/isolationtester$(X)'
 
installdirs:
    $(MKDIR_P) '$(DESTDIR)$(pgxsdir)/$(subdir)'
 
uninstall:
    rm -f '$(DESTDIR)$(pgxsdir)/$(subdir)/pg_isolation_regress$(X)'
    rm -f '$(DESTDIR)$(pgxsdir)/$(subdir)/isolationtester$(X)'
 
submake-regress:
    $(MAKE) -C $(top_builddir)/src/test/regress pg_regress.o
 
pg_regress.o: | submake-regress
    rm -f $@ && $(LN_S) $(top_builddir)/src/test/regress/pg_regress.o .
 
pg_isolation_regress$(X): isolation_main.o pg_regress.o $(WIN32RES)
    $(CC) $(CFLAGS) $^ $(libpq_pgport) $(LDFLAGS) $(LDFLAGS_EX) $(LIBS) -o $@
 
isolationtester$(X): $(OBJS) | submake-libpq submake-libpgport
    $(CC) $(CFLAGS) $^ $(libpq_pgport) $(LDFLAGS) $(LDFLAGS_EX) $(LIBS) -o $@
 
# See notes in src/backend/parser/Makefile about the following two rules
specparse.h: specparse.c
    touch $@
 
specparse.c: BISONFLAGS += -d
 
# Force these dependencies to be known even without dependency info built:
specparse.o specscanner.o: specparse.h
 
clean distclean:
    rm -f isolationtester$(X) pg_isolation_regress$(X) $(OBJS) isolation_main.o
    rm -f pg_regress.o
    rm -rf $(pg_regress_clean_files)
    rm -f specparse.h specparse.c specscanner.c
 
installcheck: all
    $(pg_isolation_regress_installcheck) --schedule=$(srcdir)/isolation_schedule
 
check: all
    $(pg_isolation_regress_check) --schedule=$(srcdir)/isolation_schedule
 
# Non-default tests.  It only makes sense to run these if set up to use
# prepared transactions, via TEMP_CONFIG for the check case, or via the
# postgresql.conf for the installcheck case.
installcheck-prepared-txns: all temp-install
    $(pg_isolation_regress_installcheck) --schedule=$(srcdir)/isolation_schedule prepared-transactions prepared-transactions-cic
 
check-prepared-txns: all temp-install
    $(pg_isolation_regress_check) --schedule=$(srcdir)/isolation_schedule prepared-transactions prepared-transactions-cic