Files
TheRock/rocm-systems/projects/rocprofiler-sdk/external/sqlite/ext/rbu/rbusplit.test
T
derek.holloway 7502bf64a4
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
Flatten subprojects into a single base monorepo
2026-09-02 16:34:47 -07:00

94 lines
2.2 KiB
Plaintext

# 2018 April 28
#
# 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.
#
#***********************************************************************
#
#
source [file join [file dirname [info script]] rbu_common.tcl]
if_no_rbu_support { finish_test ; return }
set ::testprefix rbusplit
db close
autoinstall_test_functions
proc build_db {db} {
$db eval {
CREATE TABLE t1(a PRIMARY KEY, b, c);
CREATE TABLE t2(a PRIMARY KEY, b, c);
CREATE INDEX t1c ON t1(c);
}
}
proc build_rbu {filename} {
forcedelete $filename
sqlite3 dbRbu $filename
dbRbu eval {
CREATE TABLE data0_t1(a, b, c, rbu_control);
CREATE TABLE data1_t1(a, b, c, rbu_control);
CREATE TABLE data2_t1(a, b, c, rbu_control);
CREATE TABLE data3_t1(a, b, c, rbu_control);
CREATE TABLE data_t2(a, b, c, rbu_control);
INSERT INTO data0_t1 VALUES(1, 1, 1, 0);
INSERT INTO data0_t1 VALUES(2, 2, 2, 0);
INSERT INTO data0_t1 VALUES(3, 3, 3, 0);
INSERT INTO data0_t1 VALUES(4, 4, 4, 0);
INSERT INTO data1_t1 VALUES(5, 5, 5, 0);
INSERT INTO data1_t1 VALUES(6, 6, 6, 0);
INSERT INTO data1_t1 VALUES(7, 7, 7, 0);
INSERT INTO data1_t1 VALUES(8, 8, 8, 0);
INSERT INTO data3_t1 VALUES(9, 9, 9, 0);
INSERT INTO data_t2 VALUES(1, 1, 1, 0);
INSERT INTO data_t2 VALUES(2, 2, 2, 0);
INSERT INTO data_t2 VALUES(3, 3, 3, 0);
INSERT INTO data_t2 VALUES(4, 4, 4, 0);
INSERT INTO data_t2 VALUES(5, 5, 5, 0);
INSERT INTO data_t2 VALUES(6, 6, 6, 0);
INSERT INTO data_t2 VALUES(7, 7, 7, 0);
INSERT INTO data_t2 VALUES(8, 8, 8, 0);
INSERT INTO data_t2 VALUES(9, 9, 9, 0);
}
dbRbu close
}
foreach {tn cmd} {
1 run_rbu
2 step_rbu
} {
reset_db
build_db db
build_rbu testrbu.db
do_test 1.$tn.1 {
$cmd test.db testrbu.db
} {SQLITE_DONE}
do_execsql_test 1.$tn.1 {
SELECT * FROM t1;
} {
1 1 1 2 2 2 3 3 3 4 4 4
5 5 5 6 6 6 7 7 7 8 8 8
9 9 9
}
do_execsql_test 1.$tn.2 {
SELECT * FROM t2;
} {
1 1 1 2 2 2 3 3 3 4 4 4
5 5 5 6 6 6 7 7 7 8 8 8
9 9 9
}
}
finish_test