mirror of
https://github.com/aljazceru/turso.git
synced 2026-01-29 04:44:23 +01:00
rename core_tester -> test
This commit is contained in:
@@ -7,9 +7,9 @@ license.workspace = true
|
||||
repository.workspace = true
|
||||
description = "Internal tester of write path"
|
||||
|
||||
[[bin]]
|
||||
name = "core_tester"
|
||||
path = "src/main.rs"
|
||||
[lib]
|
||||
name = "test"
|
||||
path = "src/lib.rs"
|
||||
|
||||
|
||||
[dependencies]
|
||||
@@ -2,7 +2,8 @@
|
||||
|
||||
set -ex
|
||||
export RUST_BACKTRACE=1
|
||||
rm test.db -f
|
||||
rm query-log.log -f
|
||||
rm -f test.db
|
||||
rm -f query-log.log
|
||||
# for now only integer primary key supported
|
||||
touch test.db
|
||||
echo "create table test (x INTEGER PRIMARY KEY);" | tee -a query-log.log | sqlite3 test.db
|
||||
@@ -39,7 +39,10 @@ mod tests {
|
||||
.output()
|
||||
.expect("failed to execute process");
|
||||
println!("finished creating db {:?}", result.stdout);
|
||||
println!("finished creating db {:?}", result.stderr);
|
||||
println!(
|
||||
"finished creating db {:?}",
|
||||
String::from_utf8(result.stderr)
|
||||
);
|
||||
let db = Database::open_file(io.clone(), path)?;
|
||||
let conn = db.connect();
|
||||
|
||||
@@ -96,13 +99,4 @@ mod tests {
|
||||
}
|
||||
Ok(())
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn simple_test() {
|
||||
assert_eq!(2 + 2, 4);
|
||||
}
|
||||
}
|
||||
|
||||
fn main() -> anyhow::Result<()> {
|
||||
Ok(())
|
||||
}
|
||||
Reference in New Issue
Block a user