remove redundant backup tests that have been moved to sqlcipher-backup.test
This commit is contained in:
parent
b7f660c29e
commit
9d3769e101
|
@ -801,67 +801,4 @@ db close
|
|||
dba close
|
||||
file delete -force test.db
|
||||
|
||||
do_test backup-encrypted-to-plain {
|
||||
sqlite_orig db test.db
|
||||
sqlite_orig db2 backup.db
|
||||
execsql {
|
||||
PRAGMA key = 'test';
|
||||
CREATE TABLE t1(a,b);
|
||||
INSERT INTO t1(a,b) VALUES (1,2);
|
||||
}
|
||||
list [catch { sqlite3_backup B db2 main db main } msg] $msg
|
||||
} {1 {sqlite3_backup_init() failed}}
|
||||
db close
|
||||
db2 close
|
||||
file delete -force test.db
|
||||
file delete -force backup.db
|
||||
|
||||
do_test backup-plain-to-encrypted {
|
||||
sqlite_orig db test.db
|
||||
sqlite_orig db2 backup.db
|
||||
execsql {
|
||||
CREATE TABLE t1(a,b);
|
||||
INSERT INTO t1(a,b) VALUES (1,2);
|
||||
}
|
||||
execsql {
|
||||
PRAGMA key = 'test';
|
||||
} db2
|
||||
|
||||
list [catch { sqlite3_backup B db2 main db main } msg] $msg
|
||||
} {1 {sqlite3_backup_init() failed}}
|
||||
db close
|
||||
db2 close
|
||||
file delete -force test.db
|
||||
file delete -force backup.db
|
||||
|
||||
do_test backup-encrypted-to-encrypted {
|
||||
sqlite_orig db test.db
|
||||
sqlite_orig db2 backup.db
|
||||
execsql {
|
||||
PRAGMA key = 'test';
|
||||
CREATE TABLE t1(a,b);
|
||||
INSERT INTO t1(a,b) VALUES (1,2);
|
||||
}
|
||||
execsql {
|
||||
PRAGMA key = 'test';
|
||||
} db2
|
||||
list [catch { sqlite3_backup B db2 main db main } msg] $msg
|
||||
} {1 {sqlite3_backup_init() failed}}
|
||||
db close
|
||||
db2 close
|
||||
file delete -force test.db
|
||||
file delete -force backup.db
|
||||
|
||||
do_test backup-plain-to-plain {
|
||||
sqlite_orig db test.db
|
||||
sqlite_orig db2 backup.db
|
||||
execsql {
|
||||
CREATE TABLE t1(a,b);
|
||||
INSERT INTO t1(a,b) VALUES (1,2);
|
||||
}
|
||||
sqlite3_backup B db2 main db main
|
||||
B step -1
|
||||
B finish
|
||||
} {SQLITE_OK}
|
||||
|
||||
finish_test
|
||||
|
|
Loading…
Reference in New Issue