CodeQL / Analyze (actions) (push) Canceled after 0s
CodeQL / Analyze (python) (push) Canceled after 0s
pre-commit / pre-commit (push) Canceled after 0s
Multi-Arch CI / setup (push) Canceled after 0s
Publish build_manylinux_x86_64 images / publish_build_manylinux_x86_64 (push) Canceled after 0s
Setup (Multi-Arch) / setup (push) Canceled after 0s
Multi-Arch CI / Linux::${{ fromJSON(needs.setup.outputs.linux_build_config || '{}').build_variant_label || 'skip' }} (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Publish no_rocm_image_ubi10 image / publish_no_rocm_image_ubi10 (push) Canceled after 0s
Multi-Arch CI / Windows::${{ fromJSON(needs.setup.outputs.windows_build_config || '{}').build_variant_label || 'skip' }} (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Multi-Arch CI / Manifest Diff (push) Canceled after 0s
TheRock Manifest Diff Report / Generate Manifest Diff Report (push) Canceled after 0s
Multi-Arch CI / CI Summary (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04 (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04_ocl_rt images / publish_no_rocm_image_ubuntu24_04_ocl_rt (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_rocgdb (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04_rocgdb images / publish_no_rocm_image_ubuntu24_04_rocgdb (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_ocl_rt (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Unit Tests / Unit Tests :: ubuntu-24.04 (push) Canceled after 0s
Unit Tests / Unit Tests :: windows-2022 (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_media (push) Canceled after 0s
Unit Tests / Unit Tests Summary (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_openmpi (push) Canceled after 0s
70 lines
1.5 KiB
Plaintext
70 lines
1.5 KiB
Plaintext
# 2016-05-32
|
|
#
|
|
# The author disclaims copyright to this source code. In place of
|
|
# a legal notice, here is a blessing:
|
|
#
|
|
# May you do good and not evil.
|
|
# May you find forgiveness for yourself and forgive others.
|
|
# May you share freely, never taking more than you give.
|
|
#
|
|
#***********************************************************************
|
|
# This file contains tests for the r-tree module.
|
|
#
|
|
# Verify that no invalid SQL is run during initialization
|
|
|
|
if {![info exists testdir]} {
|
|
set testdir [file join [file dirname [info script]] .. .. test]
|
|
}
|
|
source [file join [file dirname [info script]] rtree_util.tcl]
|
|
source $testdir/tester.tcl
|
|
ifcapable !rtree { finish_test ; return }
|
|
|
|
db close
|
|
sqlite3_shutdown
|
|
test_sqlite3_log [list lappend ::log]
|
|
set ::log [list]
|
|
sqlite3 db test.db
|
|
|
|
|
|
set ::log {}
|
|
do_execsql_test rtreeG-1.1 {
|
|
CREATE VIRTUAL TABLE t1 USING rtree(id,x0,x1,y0,y1);
|
|
} {}
|
|
do_test rtreeG-1.1log {
|
|
set ::log
|
|
} {}
|
|
|
|
do_execsql_test rtreeG-1.2 {
|
|
INSERT INTO t1 VALUES(1,10,15,5,23),(2,20,21,5,23),(3,10,15,20,30);
|
|
SELECT id from t1 WHERE x0>8 AND x1<16 AND y0>2 AND y1<25;
|
|
} {1}
|
|
do_rtree_integrity_test rtreeG-1.2.integrity t1
|
|
do_test rtreeG-1.2log {
|
|
set ::log
|
|
} {}
|
|
|
|
db close
|
|
sqlite3 db test.db
|
|
do_execsql_test rtreeG-1.3 {
|
|
SELECT id from t1 WHERE x0>8 AND x1<16 AND y0>2 AND y1<25;
|
|
} {1}
|
|
do_test rtreeG-1.3log {
|
|
set ::log
|
|
} {}
|
|
|
|
do_execsql_test rtreeG-1.4 {
|
|
DROP TABLE t1;
|
|
} {}
|
|
do_test rtreeG-1.4log {
|
|
set ::log
|
|
} {}
|
|
|
|
expand_all_sql db
|
|
db close
|
|
sqlite3_shutdown
|
|
test_sqlite3_log
|
|
sqlite3_initialize
|
|
sqlite3 db test.db
|
|
|
|
finish_test
|