summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Vincent Rischmann2021-01-23 19:09:01 +0100
committerGravatar Vincent Rischmann2021-01-24 01:23:09 +0100
commit2a51619a12350c21689c32086c3482fb9815e260 (patch)
tree6eb0f93a24f1393e87fdf02823a62ad3a5c45885
parentrework of the test database initialization (diff)
downloadzig-sqlite-2a51619a12350c21689c32086c3482fb9815e260.tar.gz
zig-sqlite-2a51619a12350c21689c32086c3482fb9815e260.tar.xz
zig-sqlite-2a51619a12350c21689c32086c3482fb9815e260.zip
build: default to in-memory tests
Now that we use `std.testing.tmpDir` we're actually hitting the disk, which made me realize that the tests run significantly slower than before, because on my system `/tmp` is a tmpfs which is already in memory.
-rw-r--r--build.zig4
1 files changed, 2 insertions, 2 deletions
diff --git a/build.zig b/build.zig
index be2a729..b48f43d 100644
--- a/build.zig
+++ b/build.zig
@@ -16,8 +16,8 @@ pub fn build(b: *std.build.Builder) void {
16 const target = b.standardTargetOptions(.{}); 16 const target = b.standardTargetOptions(.{});
17 const mode = b.standardReleaseOptions(); 17 const mode = b.standardReleaseOptions();
18 18
19 const in_memory = b.option(bool, "in_memory", "Should the tests run with sqlite in memory") orelse false; 19 const in_memory = b.option(bool, "in_memory", "Should the tests run with sqlite in memory (default true)") orelse true;
20 const use_bundled = b.option(bool, "use_bundled", "Use the bundled sqlite3 source instead of linking the system library") orelse false; 20 const use_bundled = b.option(bool, "use_bundled", "Use the bundled sqlite3 source instead of linking the system library (default false)") orelse false;
21 21
22 // Build sqlite from source if asked 22 // Build sqlite from source if asked
23 if (use_bundled) { 23 if (use_bundled) {