Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
Greenplum
Gpdb
提交
9010e0e6
G
Gpdb
项目概览
Greenplum
/
Gpdb
通知
7
Star
1
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
G
Gpdb
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
9010e0e6
编写于
1月 18, 1997
作者:
B
Bryan Henderson
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Rename Makefile to GNUMakefile and add a "use GNU Make" Makefile so people
don't accidentally use non-GNU make.
上级
fdcf8b62
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
106 addition
and
92 deletion
+106
-92
src/test/regress/GNUMakefile
src/test/regress/GNUMakefile
+94
-0
src/test/regress/Makefile
src/test/regress/Makefile
+12
-92
未找到文件。
src/test/regress/GNUMakefile
0 → 100644
浏览文件 @
9010e0e6
#-------------------------------------------------------------------------
#
# Makefile--
# Makefile for regress (the regression test)
#
# Copyright (c) 1994, Regents of the University of California
#
#
# IDENTIFICATION
# $Header: /cvsroot/pgsql/src/test/regress/Attic/GNUMakefile,v 1.1 1997/01/18 08:01:30 bryanh Exp $
#
#-------------------------------------------------------------------------
SRCDIR
=
../..
include
../../Makefile.global
CFLAGS
+=
-I
$(LIBPQDIR)
-I
../../include
LDADD
+=
-L
$(LIBPQDIR)
-lpq
#
# DLOBJS is the dynamically-loaded object file. The regression test uses
# this when it does a CREATE FUNCTION ... LANGUAGE 'C').
#
DLOBJS
=
regress
$(DLSUFFIX)
#
# ... plus test query inputs
#
# INFILES is the files the regression test uses for input.
INFILES
=
$(DLOBJS)
\
create.sql queries.sql errors.sql destroy.sql security.sql
\
expected.out
#
# plus exports files
#
ifdef
EXPSUFF
INFILES
+=
$
(
DLOBJS:.o
=
$(EXPSUFF)
)
endif
# OUTFILES is the files that get created by running the regression test.
OUTFILES
=
stud_emp.data onek.data regress.out aportal.out
#
# prepare to run the test (including clean-up after the last run)
#
all
:
$(INFILES)
rm
-f
$(OUTFILES)
#
# run the test
#
runtest
:
$(INFILES) expected.out
$(SHELL)
./regress.sh 2>&1 |
tee
regress.out
@
echo
"ACTUAL RESULTS OF REGRESSION TEST ARE NOW IN FILE regress.out"
# The expected.input file is part of the distribution. It was made by hand
# from 'regress.out' from a reference run of the regression test, replacing
# installation-dependent things with names like _CWD_. The following rule
# turns those names back into real values for the instant installation to
# create a standard (expected.out) against which to compare regress.out
# from the experimental run.
#
#
expected.out
:
expected.input
if
[
-z
"
$$
USER"
]
;
then
USER
=
$$
LOGNAME
;
fi
;
\
if
[
-z
"
$$
USER"
]
;
then
USER
=
`
whoami
`
;
fi
;
\
if
[
-z
"
$$
USER"
]
;
then
echo
'Cannot deduce $USER.'
;
exit
1
;
fi
;
\
rm
-f
expected.out
;
\
MYTZ
=
`
date
|
cut
-c21
`
;
\
C
=
"
`
pwd
`
"
;
\
sed
-e
"s:_CWD_:
$$
C:g"
\
-e
"s:_OBJWD_:
$$
C:g"
\
-e
"s:_DLSUFFIX_:
$(DLSUFFIX)
:g"
\
-e
"s;
\(
[A-Z][a-z][a-z][^ ]* [A-Z][a-z][a-z] [0-9 ][0-9] [0-9][0-9]:[0-9][0-9]:[0-9][0-9] [0-9][0-9][0-9][0-9]
\)
[A-Z]
\(
[A-Z][A-Z]
\)
;
\1
$$
MYTZ
\2
;g"
\
-e
"s;
\(
[A-Z][a-z][a-z][^ ]* [A-Z][a-z][a-z] [0-9 ][0-9] [0-9][0-9]:[0-9][0-9]:[0-9][0-9]
\)
[A-Z]
\(
[A-Z][A-Z] [0-9][0-9][0-9][0-9]
\)
;
\1
$$
MYTZ
\2
;g"
\
-e
"s:_USER_:
$$
USER:g"
< expected.input
>
expected.out
@
echo
"YOUR EXPECTED RESULTS ARE NOW IN FILE expected.out."
%.sql
:
%.source
if
[
-z
"
$$
USER"
]
;
then
USER
=
$$
LOGNAME
;
fi
;
\
if
[
-z
"
$$
USER"
]
;
then
USER
=
`
whoami
`
;
fi
;
\
if
[
-z
"
$$
USER"
]
;
then
echo
'Cannot deduce $$USER.'
;
exit
1
;
fi
;
\
rm
-f
$@
;
\
C
=
`
pwd
`
;
\
sed
-e
"s:_CWD_:
$$
C:g"
\
-e
"s:_OBJWD_:
$$
C:g"
\
-e
"s:_DLSUFFIX_:
$(DLSUFFIX)
:g"
\
-e
"s/_USER_/
$$
USER/g"
<
$<
>
$@
clean
:
rm
-f
$(INFILES)
rm
-f
$(OUTFILES)
src/test/regress/Makefile
浏览文件 @
9010e0e6
#-------------------------------------------------------------------------
# The Postgres make files exploit features of GNU make that other makes
#
# do not have. Because it is a common mistake for users to try to build
# Makefile--
# Postgres with a different make, we have this make file that does nothing
# Makefile for regress (the regression test)
# but tell the user to use GNU make.
#
# Copyright (c) 1994, Regents of the University of California
# If the user were using GNU make now, this file would not get used because
#
# GNU make uses a make file named "GNUmakefile" in preference to "Makefile"
#
# if it exists. Postgres is shipped with a "GNUmakefile".
# IDENTIFICATION
# $Header: /cvsroot/pgsql/src/test/regress/Makefile,v 1.12 1997/01/05 21:17:36 bryanh Exp $
all install clean dep depend
:
#
@
echo
"You must use GNU make to use Postgres. It may be installed"
#-------------------------------------------------------------------------
@
echo
"on your system with the name 'gmake'."
SRCDIR
=
../..
include
../../Makefile.global
CFLAGS
+=
-I
$(LIBPQDIR)
-I
../../include
#
# DLOBJS is the dynamically-loaded object file. The regression test uses
# this when it does a CREATE FUNCTION ... LANGUAGE 'C').
#
DLOBJS
=
regress
$(DLSUFFIX)
#
# ... plus test query inputs
#
# INFILES is the files the regression test uses for input.
INFILES
=
$(DLOBJS)
\
create.sql queries.sql errors.sql destroy.sql security.sql
\
expected.out
#
# plus exports files
#
ifdef
EXPSUFF
INFILES
+=
$
(
DLOBJS:.o
=
$(EXPSUFF)
)
endif
# OUTFILES is the files that get created by running the regression test.
OUTFILES
=
stud_emp.data onek.data regress.out aportal.out
#
# prepare to run the test (including clean-up after the last run)
#
all
:
$(INFILES)
rm
-f
$(OUTFILES)
#
# run the test
#
runtest
:
$(INFILES) expected.out
$(SHELL)
./regress.sh 2>&1 |
tee
regress.out
@
echo
"ACTUAL RESULTS OF REGRESSION TEST ARE NOW IN FILE regress.out"
# The expected.input file is part of the distribution. It was made by hand
# from 'regress.out' from a reference run of the regression test, replacing
# installation-dependent things with names like _CWD_. The following rule
# turns those names back into real values for the instant installation to
# create a standard (expected.out) against which to compare regress.out
# from the experimental run.
#
#
expected.out
:
expected.input
if
[
-z
"
$$
USER"
]
;
then
USER
=
$$
LOGNAME
;
fi
;
\
if
[
-z
"
$$
USER"
]
;
then
USER
=
`
whoami
`
;
fi
;
\
if
[
-z
"
$$
USER"
]
;
then
echo
'Cannot deduce $USER.'
;
exit
1
;
fi
;
\
rm
-f
expected.out
;
\
MYTZ
=
`
date
|
cut
-c21
`
;
\
C
=
"
`
pwd
`
"
;
\
sed
-e
"s:_CWD_:
$$
C:g"
\
-e
"s:_OBJWD_:
$$
C:g"
\
-e
"s:_DLSUFFIX_:
$(DLSUFFIX)
:g"
\
-e
"s;
\(
[A-Z][a-z][a-z][^ ]* [A-Z][a-z][a-z] [0-9 ][0-9] [0-9][0-9]:[0-9][0-9]:[0-9][0-9] [0-9][0-9][0-9][0-9]
\)
[A-Z]
\(
[A-Z][A-Z]
\)
;
\1
$$
MYTZ
\2
;g"
\
-e
"s;
\(
[A-Z][a-z][a-z][^ ]* [A-Z][a-z][a-z] [0-9 ][0-9] [0-9][0-9]:[0-9][0-9]:[0-9][0-9]
\)
[A-Z]
\(
[A-Z][A-Z] [0-9][0-9][0-9][0-9]
\)
;
\1
$$
MYTZ
\2
;g"
\
-e
"s:_USER_:
$$
USER:g"
< expected.input
>
expected.out
@
echo
"YOUR EXPECTED RESULTS ARE NOW IN FILE expected.out."
%.sql
:
%.source
if
[
-z
"
$$
USER"
]
;
then
USER
=
$$
LOGNAME
;
fi
;
\
if
[
-z
"
$$
USER"
]
;
then
USER
=
`
whoami
`
;
fi
;
\
if
[
-z
"
$$
USER"
]
;
then
echo
'Cannot deduce $$USER.'
;
exit
1
;
fi
;
\
rm
-f
$@
;
\
C
=
`
pwd
`
;
\
sed
-e
"s:_CWD_:
$$
C:g"
\
-e
"s:_OBJWD_:
$$
C:g"
\
-e
"s:_DLSUFFIX_:
$(DLSUFFIX)
:g"
\
-e
"s/_USER_/
$$
USER/g"
<
$<
>
$@
clean
:
rm
-f
$(INFILES)
rm
-f
$(OUTFILES)
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录