rename core_tester -> test

This commit is contained in:
Pere Diaz Bou
2024-09-13 07:55:07 +02:00
parent 9d1bb4d4ea
commit 77be4a1757
4 changed files with 10 additions and 15 deletions

View File

@@ -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]

View File

@@ -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

View File

@@ -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(())
}