2020-12-23 23:01:21 +00:00
|
|
|
#! /bin/bash
|
|
|
|
|
2023-07-15 05:02:42 +00:00
|
|
|
export YES_COLOR=1
|
|
|
|
|
2022-04-30 20:05:42 +00:00
|
|
|
run_cap_test ./drive_sql "SELECT * FROM xpath('/abc[', '<abc/>')"
|
2020-12-23 23:01:21 +00:00
|
|
|
|
2022-04-30 20:05:42 +00:00
|
|
|
run_cap_test ./drive_sql "SELECT * FROM xpath('/abc', '<abc')"
|
2020-12-23 23:01:21 +00:00
|
|
|
|
2022-04-30 20:05:42 +00:00
|
|
|
run_cap_test ./drive_sql "SELECT * FROM xpath('/abc/def', '<abc/>')"
|
2020-12-23 23:01:21 +00:00
|
|
|
|
2022-04-30 20:05:42 +00:00
|
|
|
run_cap_test ./drive_sql "SELECT * FROM xpath('/abc/def[@a=\"b\"]', '<abc><def/><def a=\"b\">ghi</def></abc>')"
|
2020-12-23 23:01:21 +00:00
|
|
|
|
2022-04-30 20:05:42 +00:00
|
|
|
run_cap_test ./drive_sql "SELECT * FROM xpath('/abc/def', '<abc><def>Hello ></def></abc>')"
|
2023-07-15 05:02:42 +00:00
|
|
|
|
|
|
|
run_cap_test ${lnav_test} -n \
|
|
|
|
-c ";SELECT * FROM xpath('/catalog', (SELECT content FROM lnav_file LIMIT 1))" \
|
|
|
|
${test_dir}/invalid-books.xml
|
|
|
|
|
|
|
|
run_cap_test ${lnav_test} -n \
|
|
|
|
-c ";SELECT * FROM xpath('/cat[alog', (SELECT content FROM lnav_file LIMIT 1))" \
|
|
|
|
${test_dir}/books.xml
|