看到 fastcheck_single 的 makefile 定义,最终是调用pg_regress,
但是按照fastcheck_signle的逻辑,会初始化一个数据库,启动,跑测试用例,这样做一次测试太慢了,
能不能直接用pg_regress连接我已经启动的数据库实例,我试过好像不行,报错如下:
============== running regression test queries ==============
test sequence .... fopen /proc/-1/stat : No such file or directory
Could not open: [/mnt/disk01/OpenGauss/openGauss-server/src/test/regress/tmp_check/datanode1/postmaster.pid] for getting Server PID.
Could not get the Resource usage details. Internal error code: -1. regrGetServPid EC: 2. Exit flag status: 0.
Could not get the CPU Usage info!
Use of uninitialized value $1 in quotemeta at /mnt/disk01/OpenGauss/openGauss-server/src/test/regress/smartmatch.pl line 418, <$RESULT> line 387.
Use of uninitialized value $1 in quotemeta at /mnt/disk01/OpenGauss/openGauss-server/src/test/regress/smartmatch.pl line 418, <$RESULT> line 433.
Use of uninitialized value $1 in quotemeta at /mnt/disk01/OpenGauss/openGauss-server/src/test/regress/smartmatch.pl line 418, <$RESULT> line 488.
Use of uninitialized value $1 in quotemeta at /mnt/disk01/OpenGauss/openGauss-server/src/test/regress/smartmatch.pl line 418, <$RESULT> line 516.
Use of uninitialized value $1 in quotemeta at /mnt/disk01/OpenGauss/openGauss-server/src/test/regress/smartmatch.pl line 418, <$RESULT> line 567.
Use of uninitialized value $1 in quotemeta at /mnt/disk01/OpenGauss/openGauss-server/src/test/regress/smartmatch.pl line 418, <$RESULT> line 570.
Use of uninitialized value $1 in quotemeta at /mnt/disk01/OpenGauss/openGauss-server/src/test/regress/smartmatch.pl line 418, <$RESULT> line 571.
Use of uninitialized value $1 in quotemeta at /mnt/disk01/OpenGauss/openGauss-server/src/test/regress/smartmatch.pl line 418, <$RESULT> line 628.
Use of uninitialized value $1 in quotemeta at /mnt/disk01/OpenGauss/openGauss-server/src/test/regress/smartmatch.pl line 418, <$RESULT> line 637.
FAILED TIME TAKEN: [ 15.025]
======================
1 of 1 tests failed.
Total Time: 15.162499s
======================
有没有人,有同样的需求,请问你是怎么解决的?
新大陆软件 秦浩
mobile: 17625988619
e-mail:qinhao@newland.com.cn