diff --git a/.woodpecker/debug.yaml b/.woodpecker/debug.yaml index b2e8b090..6e27e4c9 100644 --- a/.woodpecker/debug.yaml +++ b/.woodpecker/debug.yaml @@ -24,8 +24,7 @@ steps: GARAGE_TEST_INTEGRATION_EXE: result-bin/bin/garage GARAGE_TEST_INTEGRATION_PATH: tmp-garage-integration commands: - - nix-build -j4 --attr flakePackages.tests-lmdb - - nix-build -j4 --attr flakePackages.tests-sqlite + - nix-build -j4 --attr flakePackages.tests - rm result - name: integration tests diff --git a/flake.nix b/flake.nix index 2675b303..af2b4c0b 100644 --- a/flake.nix +++ b/flake.nix @@ -45,12 +45,13 @@ dev = packageFor null false; # test = cargo test - tests = testWith {}; - tests-lmdb = testWith { - GARAGE_TEST_INTEGRATION_DB_ENGINE = "lmdb"; - }; - tests-sqlite = testWith { - GARAGE_TEST_INTEGRATION_DB_ENGINE = "sqlite"; + tests = pkgs.symlinkJoin { + name = "garage-tests-multi"; + paths = map + (dbEngine: testWith { + GARAGE_TEST_INTEGRATION_DB_ENGINE = dbEngine; + }) + [ "lmdb" "sqlite" ]; }; };