开源 企业版 高校版 私有云 模力方舟 AI 队友
代码拉取完成,页面将自动刷新
捐赠
捐赠前请先登录
扫描微信二维码支付
取消
支付完成
支付提示
将跳转至支付宝完成支付
确定
取消
1 Star 0 Fork 20

peitingwei/IvorySQL

forked from IvorySQL/IvorySQL
加入 Gitee
与超过 1400万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
已有帐号? 立即登录
master
分支 (37)
标签 (552)
master
IVORY_REL_2_STABLE
IVORY_REL_1_STABLE
REL_15_STABLE
REL_13_STABLE
REL_14_STABLE
REL9_6_STABLE
REL_10_STABLE
REL_11_STABLE
REL_12_STABLE
REL9_5_STABLE
REL9_4_STABLE
REL9_3_STABLE
REL9_2_STABLE
REL9_1_STABLE
REL9_0_STABLE
REL8_2_STABLE
REL8_3_STABLE
REL8_4_STABLE
REL8_1_STABLE
Ivory_REL_2_1
Ivory_REL_1_5
Ivory_REL_1_4
Ivory_REL_1_3
Ivory_REL_1_2
Ivory_REL_1_1
Ivory_REL_1_0
REL_14_0
REL_14_RC1
REL9_6_23
REL_10_18
REL_11_13
REL_12_8
REL_13_4
REL_14_BETA3
REL_14_BETA2
REL_14_BETA1
REL9_6_22
REL_10_17
REL_11_12
master
分支 (37)
标签 (552)
master
IVORY_REL_2_STABLE
IVORY_REL_1_STABLE
REL_15_STABLE
REL_13_STABLE
REL_14_STABLE
REL9_6_STABLE
REL_10_STABLE
REL_11_STABLE
REL_12_STABLE
REL9_5_STABLE
REL9_4_STABLE
REL9_3_STABLE
REL9_2_STABLE
REL9_1_STABLE
REL9_0_STABLE
REL8_2_STABLE
REL8_3_STABLE
REL8_4_STABLE
REL8_1_STABLE
Ivory_REL_2_1
Ivory_REL_1_5
Ivory_REL_1_4
Ivory_REL_1_3
Ivory_REL_1_2
Ivory_REL_1_1
Ivory_REL_1_0
REL_14_0
REL_14_RC1
REL9_6_23
REL_10_18
REL_11_13
REL_12_8
REL_13_4
REL_14_BETA3
REL_14_BETA2
REL_14_BETA1
REL9_6_22
REL_10_17
REL_11_12
克隆/下载
克隆/下载
提示
下载代码请复制以下命令到终端执行
为确保你提交的代码身份被 Gitee 正确识别,请执行以下命令完成配置
初次使用 SSH 协议进行代码克隆、推送等操作时,需按下述提示完成 SSH 配置
1 生成 RSA 密钥
2 获取 RSA 公钥内容,并配置到 SSH公钥
在 Gitee 上使用 SVN,请访问 使用指南
使用 HTTPS 协议时,命令行会出现如下账号密码验证步骤。基于安全考虑,Gitee 建议 配置并使用私人令牌 替代登录密码进行克隆、推送等操作
Username for 'https://gitee.com': userName
Password for 'https://userName@gitee.com': # 私人令牌
master
分支 (37)
标签 (552)
master
IVORY_REL_2_STABLE
IVORY_REL_1_STABLE
REL_15_STABLE
REL_13_STABLE
REL_14_STABLE
REL9_6_STABLE
REL_10_STABLE
REL_11_STABLE
REL_12_STABLE
REL9_5_STABLE
REL9_4_STABLE
REL9_3_STABLE
REL9_2_STABLE
REL9_1_STABLE
REL9_0_STABLE
REL8_2_STABLE
REL8_3_STABLE
REL8_4_STABLE
REL8_1_STABLE
Ivory_REL_2_1
Ivory_REL_1_5
Ivory_REL_1_4
Ivory_REL_1_3
Ivory_REL_1_2
Ivory_REL_1_1
Ivory_REL_1_0
REL_14_0
REL_14_RC1
REL9_6_23
REL_10_18
REL_11_13
REL_12_8
REL_13_4
REL_14_BETA3
REL_14_BETA2
REL_14_BETA1
REL9_6_22
REL_10_17
REL_11_12
IvorySQL
/
src
/
test
/
perl
贡献代码
同步代码
对比差异 通过 Pull Request 同步
同步更新到分支
通过 Pull Request 同步
将会在向当前分支创建一个 Pull
Request,合入后将完成同步
File empty ...
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README
Perl-based TAP tests
====================
src/test/perl/ contains shared infrastructure that's used by Perl-based tests
across the source tree, particularly tests in src/bin and src/test. It's used
to drive tests for backup and restore, replication, etc - anything that can't
really be expressed using pg_regress or the isolation test framework.
The tests are invoked via perl's 'prove' command, wrapped in PostgreSQL
makefiles to handle instance setup etc. See the $(prove_check) and
$(prove_installcheck) targets in Makefile.global. By default every test in the
t/ subdirectory is run. Individual test(s) can be run instead by passing
something like PROVE_TESTS="t/001_testname.pl t/002_othertestname.pl" to make.
By default, to keep the noise low during runs, we do not set any flags via
PROVE_FLAGS, but this can be done on the 'make' command line if desired, eg:
make check-world PROVE_FLAGS='--verbose'
When a test fails, the terminal output from 'prove' is usually not sufficient
to diagnose the problem. Look into the log files that are left under
tmp_check/log/ to get more info. Files named 'regress_log_XXX' are log
output from the perl test scripts themselves, and should be examined first.
Other files are postmaster logs, and may be helpful as additional data.
The tests default to a timeout of 180 seconds for many individual operations.
Slow hosts may avoid load-induced, spurious failures by setting environment
variable PG_TEST_TIMEOUT_DEFAULT to some number of seconds greater than 180.
Developers may see faster failures by setting that environment variable to
some lesser number of seconds.
Data directories will also be left behind for analysis when a test fails;
they are named according to the test filename. But if the environment
variable PG_TEST_NOCLEAN is set, data directories will be retained
regardless of test status.
Writing tests
-------------
You should prefer to write tests using pg_regress in src/test/regress, or
isolation tester specs in src/test/isolation, if possible. If not, check to
see if your new tests make sense under an existing tree in src/test, like
src/test/ssl, or should be added to one of the suites for an existing utility.
Note that all tests and test tools should have perltidy run on them before
patches are submitted, using perltidy --profile=src/tools/pgindent/perltidyrc
Tests are written using Perl's Test::More with some PostgreSQL-specific
infrastructure from src/test/perl providing node management, support for
invoking 'psql' to run queries and get results, etc. You should read the
documentation for Test::More before trying to write tests.
Test scripts in the t/ subdirectory of a suite are executed in alphabetical
order.
Each test script should begin with:
 use strict;
 use warnings;
 use PostgreSQL::Test::Cluster;
 use PostgreSQL::Test::Utils;
 use Test::More;
then it will generally need to set up one or more nodes, run commands
against them and evaluate the results. For example:
 my $node = PostgreSQL::Test::Cluster->new('primary');
 $node->init;
 $node->start;
 my $ret = $node->safe_psql('postgres', 'SELECT 1');
 is($ret, '1', 'SELECT 1 returns 1');
 $node->stop('fast');
Each test script should end with:
	done_testing();
Test::More::like entails use of the qr// operator. Avoid Perl 5.8.8 bug
#39185 by not using the "$" regular expression metacharacter in qr// when also
using the "/m" modifier. Instead of "$", use "\n" or "(?=\n|\z)".
Test::Builder::Level controls how far up in the call stack a test will look
at when reporting a failure. This should be incremented by any subroutine
which directly or indirectly calls test routines from Test::More, such as
ok() or is():
 local $Test::Builder::Level = $Test::Builder::Level + 1;
Read the documentation for more on how to write tests:
 perldoc Test::More
 perldoc Test::Builder
For available PostgreSQL-specific test methods and some example tests read the
perldoc for the test modules, e.g.:
 perldoc src/test/perl/PostgreSQL/Test/Cluster.pm
Portability
-----------
Avoid using any bleeding-edge Perl features. We have buildfarm animals
running Perl versions as old as 5.8.3, so your tests will be expected
to pass on that.
Also, do not use any non-core Perl modules except IPC::Run. Or, if you
must do so for a particular test, arrange to skip the test when the needed
module isn't present. If unsure, you can consult Module::CoreList to find
out whether a given module is part of the Perl core, and which module
versions shipped with which Perl releases.
One way to test for compatibility with old Perl versions is to use
perlbrew; see http://perlbrew.pl . After installing that, do
 export PERLBREW_CONFIGURE_FLAGS='-de -Duseshrplib'
 perlbrew --force install 5.8.3
 perlbrew use 5.8.3
 perlbrew install-cpanm
 cpanm install Test::Simple@0.98
 cpanm install IPC::Run@0.79
 cpanm install ExtUtils::MakeMaker@6.50 # downgrade
TIP: if Test::Simple's utf8 regression test hangs up, try setting a
UTF8-compatible locale, e.g. "export LANG=en_US.utf8".
Then re-run Postgres' configure to ensure the correct Perl is used when
running tests. To verify that the right Perl was found:
 grep ^PERL= config.log
Due to limitations of cpanm, this recipe doesn't exactly duplicate the
module list of older buildfarm animals. The discrepancies should seldom
matter, but if you want to be sure, bypass cpanm and instead manually
install the desired versions of Test::Simple and IPC::Run.
举报
举报成功
我们将于2个工作日内通过站内信反馈结果给你!
请认真填写举报原因,尽可能描述详细。
请选择举报类型
取消
发送
误判申诉

此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。

如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。

取消
提交

简介

暂无描述
暂无标签
README
Apache-2.0
使用 Apache-2.0 开源许可协议
取消

发行版

暂无发行版

贡献者

全部

近期动态

不能加载更多了
编辑仓库简介
简介内容
主页
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
C
1
https://gitee.com/peitingwei/IvorySQL.git
git@gitee.com:peitingwei/IvorySQL.git
peitingwei
IvorySQL
IvorySQL
master
点此查找更多帮助

搜索帮助

评论
仓库举报
回到顶部
登录提示
该操作需登录 Gitee 帐号,请先登录后再操作。
立即登录
没有帐号,去注册

AltStyle によって変換されたページ (->オリジナル) /