提交 34fc493b 编写于 作者: H Heikki Linnakangas

Simplify xpath test, to not use gpfdist, and move out of bugbuster.

I don't see any reason to expect that this would behave differently with
an external table than a normal one.

Move the test from bugbuster to the normal regression suite.
上级 fdaa6b42
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
## TODO: list test sequence and test dependencies. ## TODO: list test sequence and test dependencies.
## ##
ignore: jdbc ignore: jdbc
test: load_mpph xpath test: load_mpph
# these tests depend on load_mpph # these tests depend on load_mpph
test: mpph_query mpph_aopart hashagg gpsort test: mpph_query mpph_aopart hashagg gpsort
test: mpp-11333 test: mpp-11333
......
set xmloption='document'; set xmloption='document';
set optimizer_disable_missing_stats_collection = on; set optimizer_disable_missing_stats_collection = on;
\! gpfdist -p 45555 -d bugbuster/data &> bugbuster/data/xpath_gpfdist.out &
-- apparently this is needed on darwin
\! sleep 5
\echo --start_ignore
--start_ignore --start_ignore
drop external table if exists readxml; drop table table if exists readxml;
NOTICE: table "readxml" does not exist, skipping NOTICE: table "readxml" does not exist, skipping
\echo --end_ignore
--end_ignore --end_ignore
create readable external table readxml (text xml) location ('gpfdist://localhost:45555/CD.xml') format 'TEXT' (escape 'off' newline as 'CRLF'); create table readxml (text xml);
\copy readxml from 'data/CD.xml' with escape 'off' newline as 'CRLF';
select xml_in('<a></a>'); select xml_in('<a></a>');
xml_in xml_in
--------- ---------
...@@ -761,4 +757,3 @@ select xml_is_well_formed_content('<adf>adsfasdf'); ...@@ -761,4 +757,3 @@ select xml_is_well_formed_content('<adf>adsfasdf');
f f
(1 row) (1 row)
\! ps -ef | grep "gpfdist -p 45555" | grep -v grep | awk '{print $2}' | xargs kill &> bugbuster/data/xpath_kill_gpfdist.out
...@@ -16,7 +16,7 @@ ...@@ -16,7 +16,7 @@
# #
test: variadic_parameters default_parameters function_extensions test: variadic_parameters default_parameters function_extensions
test: spi test: spi xpath
test: leastsquares opr_sanity_gp decode_expr bitmapscan bitmapscan_ao case_gp limit_gp notin percentile naivebayes join_gp union_gp gpcopy gp_create_table test: leastsquares opr_sanity_gp decode_expr bitmapscan bitmapscan_ao case_gp limit_gp notin percentile naivebayes join_gp union_gp gpcopy gp_create_table
test: filter gpctas gpdist matrix toast sublink table_functions olap_setup complex opclass_ddl information_schema guc_env_var test: filter gpctas gpdist matrix toast sublink table_functions olap_setup complex opclass_ddl information_schema guc_env_var
......
set xmloption='document'; set xmloption='document';
set optimizer_disable_missing_stats_collection = on; set optimizer_disable_missing_stats_collection = on;
\! gpfdist -p 45555 -d bugbuster/data &> bugbuster/data/xpath_gpfdist.out &
-- apparently this is needed on darwin
\! sleep 5
\echo --start_ignore --start_ignore
drop external table if exists readxml; drop table if exists readxml;
\echo --end_ignore --end_ignore
create readable external table readxml (text xml) location ('gpfdist://localhost:45555/CD.xml') format 'TEXT' (escape 'off' newline as 'CRLF'); create table readxml (text xml);
\copy readxml from 'data/CD.xml' with escape 'off' newline as 'CRLF';
select xml_in('<a></a>'); select xml_in('<a></a>');
select xml_in('<a></>'); select xml_in('<a></>');
...@@ -99,6 +97,3 @@ select xml_is_well_formed_content(text((select * from readxml))); ...@@ -99,6 +97,3 @@ select xml_is_well_formed_content(text((select * from readxml)));
select xml_is_well_formed_content('<adf>adsfasdf<adf>'); select xml_is_well_formed_content('<adf>adsfasdf<adf>');
select xml_is_well_formed_content('<adf>adsfasdf'); select xml_is_well_formed_content('<adf>adsfasdf');
\! ps -ef | grep "gpfdist -p 45555" | grep -v grep | awk '{print $2}' | xargs kill &> bugbuster/data/xpath_kill_gpfdist.out
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册