From 2a51619a12350c21689c32086c3482fb9815e260 Mon Sep 17 00:00:00 2001 From: Vincent Rischmann Date: Sat, 23 Jan 2021 19:09:01 +0100 Subject: 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. --- build.zig | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'build.zig') 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 { const target = b.standardTargetOptions(.{}); const mode = b.standardReleaseOptions(); - const in_memory = b.option(bool, "in_memory", "Should the tests run with sqlite in memory") orelse false; - const use_bundled = b.option(bool, "use_bundled", "Use the bundled sqlite3 source instead of linking the system library") orelse false; + const in_memory = b.option(bool, "in_memory", "Should the tests run with sqlite in memory (default true)") orelse true; + const use_bundled = b.option(bool, "use_bundled", "Use the bundled sqlite3 source instead of linking the system library (default false)") orelse false; // Build sqlite from source if asked if (use_bundled) { -- cgit v1.2.3