Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
Greenplum
Gpdb
提交
682bb3a8
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,发现更多精彩内容 >>
提交
682bb3a8
编写于
9月 25, 2019
作者:
A
Adam Berlin
提交者:
Adam Berlin
9月 26, 2019
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Extract bdd library from main test script.
上级
1b7e6077
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
48 addition
and
29 deletion
+48
-29
contrib/pg_upgrade/test/integration/Makefile
contrib/pg_upgrade/test/integration/Makefile
+4
-0
contrib/pg_upgrade/test/integration/bdd-library/bdd.h
contrib/pg_upgrade/test/integration/bdd-library/bdd.h
+9
-0
contrib/pg_upgrade/test/integration/bdd-library/upgrade-bdd.c
...rib/pg_upgrade/test/integration/bdd-library/upgrade-bdd.c
+34
-0
contrib/pg_upgrade/test/integration/greenplum_five_to_greenplum_six_upgrade_test.c
...ntegration/greenplum_five_to_greenplum_six_upgrade_test.c
+1
-29
未找到文件。
contrib/pg_upgrade/test/integration/Makefile
浏览文件 @
682bb3a8
...
...
@@ -9,6 +9,7 @@ OBJS = scripts/gpdb5-cluster.o \
utilities/gpdb6-cluster.o
\
utilities/query-helpers.o
\
utilities/upgrade-helpers.o
\
bdd-library/upgrade-bdd.o
\
greenplum_five_to_greenplum_six_upgrade_test.o
EXS
=
scripts/gpdb6-cluster scripts/gpdb5-cluster
...
...
@@ -21,6 +22,7 @@ all: scripts/gpdb5-cluster scripts/gpdb6-cluster
utilities_CPPFLAGS
=
-I
$(pg_upgrade_directory)
\
-I
$(libpq_srcdir)
\
-I
.
\
#
...
...
@@ -37,6 +39,7 @@ scripts/gpdb6-cluster: scripts/gpdb6-cluster.o utilities/gpdb6-cluster.o
utilities/gpdb5-cluster.o
\
utilities/gpdb6-cluster.o
\
utilities/query-helpers.o
\
bdd-library/upgrade-bdd.o
\
greenplum_five_to_greenplum_six_upgrade_test.o
:
override CPPFLAGS += $(utilities_CPPFLAGS)
#
...
...
@@ -46,6 +49,7 @@ test_dependencies = utilities/gpdb5-cluster.o \
utilities/gpdb6-cluster.o
\
utilities/query-helpers.o
\
utilities/upgrade-helpers.o
\
bdd-library/upgrade-bdd.o
\
$(CMOCKERY_OBJS)
...
...
contrib/pg_upgrade/test/integration/bdd-library/bdd.h
0 → 100644
浏览文件 @
682bb3a8
#ifndef BDD_LIBRARY_H
#define BDD_LIBRARY_H
void
given
(
void
(
*
arrangeFunction
)
(
void
));
void
when
(
void
(
*
actFunction
)
(
void
));
void
then
(
void
(
*
assertionFunction
)
(
void
));
void
and
(
void
(
*
assertionFunction
)
(
void
));
#endif
/* BDD_LIBRARY_H */
contrib/pg_upgrade/test/integration/bdd-library/upgrade-bdd.c
0 → 100644
浏览文件 @
682bb3a8
#include "bdd.h"
#include "utilities/gpdb5-cluster.h"
#include "utilities/gpdb6-cluster.h"
void
given
(
void
(
*
arrangeFunction
)
(
void
))
{
startGpdbFiveCluster
();
arrangeFunction
();
stopGpdbFiveCluster
();
}
void
when
(
void
(
*
actFunction
)
(
void
))
{
actFunction
();
}
void
then
(
void
(
*
assertionFunction
)
(
void
))
{
startGpdbSixCluster
();
assertionFunction
();
stopGpdbSixCluster
();
}
void
and
(
void
(
*
assertionFunction
)
(
void
))
{
/* and has the same behavior as then */
then
(
assertionFunction
);
}
contrib/pg_upgrade/test/integration/greenplum_five_to_greenplum_six_upgrade_test.c
浏览文件 @
682bb3a8
...
...
@@ -14,6 +14,7 @@
#include "utilities/gpdb6-cluster.h"
#include "utilities/upgrade-helpers.h"
#include "utilities/query-helpers.h"
#include "bdd-library/bdd.h"
static
void
setup
(
void
**
state
)
...
...
@@ -312,35 +313,6 @@ anAdministratorPerformsAnUpgrade()
performUpgrade
();
}
static
void
given
(
void
(
*
arrangeFunction
)
(
void
))
{
startGpdbFiveCluster
();
arrangeFunction
();
stopGpdbFiveCluster
();
}
static
void
then
(
void
(
*
assertionFunction
)
(
void
))
{
startGpdbSixCluster
();
assertionFunction
();
stopGpdbSixCluster
();
}
static
void
when
(
void
(
*
actFunction
)
(
void
))
{
actFunction
();
}
static
void
and
(
void
(
*
assertionFunction
)
(
void
))
{
/* and has the same behavior as then */
then
(
assertionFunction
);
}
static
void
test_a_heap_table_with_data_can_be_upgraded
(
void
**
state
)
{
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录